blob: beb749b3641dc54285580b8ac312445c17073c91 (
plain)
1
2
3
4
5
6
7
8
|
#!/usr/bin/python3
import apt_pkg
Parse = apt_pkg.TagFile(open("/var/lib/dpkg/status"))
while Parse.step() == 1:
print(Parse.section.get("Package"))
print(apt_pkg.parse_depends(Parse.section.get("Depends", "")))
|