I have been unable to find anything through google (though most likely just because I don't know what to search for), so... is there any kind of API I could use to get info about installed packages on the system? I want to build a package tree dynamically based on user input, so just querying dpkg a lot of times is kinda out of the question. So, where do I best start looking?
I know that I could just read the code for debfoster (since it does this too and is quite short), but I rather wouldn't... there's exactly 10 words of comments for 500 lines of code in one relevant source file that I looked at, which is not exactly encouraging
Thanks a lot in advance for any directions,