Created
December 8, 2015 06:46
-
-
Save ChatchaiJ/2409c5379de06c9c004d to your computer and use it in GitHub Desktop.
Remove Orphaned Packages
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
#!/bin/sh | |
# --------------------------------------------------------------------- # | |
# pkgorphremove : Remove Orphaned Packages. # | |
# Loop repeate removing/purging orphan packages # | |
# # | |
# version 0.1 : 2004-08-08 (cj) initial. # | |
# --------------------------------------------------------------------- # | |
while [ "`deborphan`" ] | |
do | |
deborphan | xargs sudo apt-get -y --purge remove | |
done | |
# --------------------------------------------------------------------- # | |
# end of file # | |
# --------------------------------------------------------------------- # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment