Created
December 8, 2023 14:47
-
-
Save bodqhrohro/5a65deeb59491112d1757a9c7bd60d46 to your computer and use it in GitHub Desktop.
Cancel last apt installation
This file contains hidden or 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
apt remove $(cat /var/log/apt/history.log |grep '^Install'|tail -n 1|sed 's/([^)]\+),\?//g'|sed 's/^Install://') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment