Last active
September 7, 2017 14:50
-
-
Save jeansch/e374046836082aed5851f9015d1b21eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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