Skip to content

Instantly share code, notes, and snippets.

@tonejito
Created March 20, 2013 23:55
Show Gist options
  • Save tonejito/5209605 to your computer and use it in GitHub Desktop.
Save tonejito/5209605 to your computer and use it in GitHub Desktop.
Get installed packages in Debian 64-bit
#!/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