Save the following script to disc and run it. It should give you the
names of all manually installed packages:

#!/usr/bin/env python
import apt_pkg
from apt.progress import OpProgress

progress = OpProgress()
cache = apt_pkg.GetCache(progress)
depcache = apt_pkg.GetDepCache(cache)

for pkg in cache.Packages:
    if depcache.IsAutoInstalled(pkg):
            print pkg.Name

-- 
Import/export list of programs
https://bugs.launchpad.net/bugs/20049
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to