Last active
April 1, 2020 18:54
-
-
Save rof20004/955517cc7821a8055c59a55eacbf0302 to your computer and use it in GitHub Desktop.
Undo previous apt-get install
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/bash | |
apt purge $(grep "Install:" /var/log/apt/history.log | tail -n 1 | tr " " "\n" | grep -E ":amd64|:i386|:arm" | tr "\n" " ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment