I’m trying to do some package manipulation (a la dpkg) and while I can just popen or subprocess.call I’d rather do things the python way if possible.
Unfortunately I’ve been unable to find a python module to do the trick.
I’ve seen reference to python-deb but it appears to be defunct. python-apt might seem like a potential solution, but AFAICT it cannot handle individual .deb files.
Anyone know of a good dpkg python solution?
Actually,
python-aptallows you to work with these files directly. Here’s an example:Output:
It’s not as complete as I would like sadly, but it has a bunch of functionality.
(more info)