Created
March 20, 2013 23:55
-
-
Save tonejito/5209605 to your computer and use it in GitHub Desktop.
Get installed packages in Debian 64-bit
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 | |
# Andres Hernandez - tonejito | |
# Get installed packages in Debian 64-bit | |
egrep '^Install' /var/log/apt/history.log | \ | |
sed -e 's/Install: //g' -e 's/),\ /)\n/g' | \ | |
egrep -E '(:amd64 )?\(.*\)' | \ | |
grep -v automatic | \ | |
sed -e 's/\(:amd64\ \)\?(.*)//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment