So, for now, let's say we only need this to work for debian-based systems (but I will need to be able to do it for
yum in the future).
The best I have right now is
dpkg-query. So, for example, if I run this:
I'll get a list like this (with a few thousand entries):
There is no naming convention though. Some of the packages have the version number in them, some of them have the architecture. ex
gcc-4.9-base:amd64, but what I want would only have
gcc 4.9. Ideally, I would like to be able to get vendor, product, and version information for all of the software installed. Is there any way to do this natively, or does it have to be some kind of "fuzzy" match?
I'm open to alternative ways of querying the package manager, or some other method that I am not thinking of. I am not able to install additional packages to accomplish this goal (though, I would be interested to see how they work if that exists).