Skip to content

Instantly share code, notes, and snippets.

@jeansch
Last active September 7, 2017 14:50
Show Gist options
  • Save jeansch/e374046836082aed5851f9015d1b21eb to your computer and use it in GitHub Desktop.
Save jeansch/e374046836082aed5851f9015d1b21eb to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# https://gist.github.com/jeansch/e374046836082aed5851f9015d1b21eb
import apt
print "\n".join(p.name for p in apt.Cache() if p.installed
and not p.versions[p.installed].origins[0].trusted
and len(p.versions) > 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment