Report question

Question: How to use libapt (or libept) in debian-like system to list packages and get their infos?