Created
February 28, 2019 20:30
-
-
Save bmaupin/98d402e53aabb66cc371f6f0d7fab4e4 to your computer and use it in GitHub Desktop.
Remove installed .deb files in local directory
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
# List the packages to be removed | |
for file in *.deb; do echo $file | cut -d _ -f 1; done | sort -u | |
# Purge them | |
sudo dpkg --purge $(for file in *.deb; do echo $file | cut -d _ -f 1; done | sort -u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment