Hi,
thanks for your bugreort.
To make it work, please use:
import apt_pkg
apt_pkg.InitConfig()
apt_pkg.InitSystem()
cache=apt_pkg.GetCache()
depcache=apt_pkg.GetDepCache(cache)
for pkg in cache.Packages:
if pkg.CurrentVer and depcache.IsAutoInstalled(pkg):
print pkg.Name
Or the high
Package: python-apt
Version: 0.7.13.3
Severity: normal
Run this code:
import apt_pkg
apt_pkg.InitConfig()
apt_pkg.InitSystem()
cache=apt_pkg.GetCache()
for pkg in cache.Packages:
if pkg.CurrentVer and pkg.Auto != 0:
print pkg.Name
This prints only:
Reading package lists... Done
Bui
2 matches
Mail list logo