Created
September 4, 2016 11:55
-
-
Save colwilson/ab2a87e2f2ffbb02802e5ce7e195569f to your computer and use it in GitHub Desktop.
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
<code> | |
grep Remove /var/log/apt/history.log | tail -1 | sed -e 's|Remove: ||g' -e 's|([^)]*)||g' -e 's|:[^ ]* ||g' -e 's|,||g' > removed_packages.txt | |
sudo apt-get install $(cat removed_packages.txt) | |
<code> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment