Skip to content

Instantly share code, notes, and snippets.

@sosukeinu
Forked from pmbuko/installed_packages.sh
Created January 25, 2013 20:11
Show Gist options
  • Save sosukeinu/4637434 to your computer and use it in GitHub Desktop.
Save sosukeinu/4637434 to your computer and use it in GitHub Desktop.
BASH list installed packages
#!/bin/bash
for log in $(/bin/ls -r /var/log/install.log*); do
bzgrep 'Writing receipt' $log | awk '{print $1,$2,$3,$10}'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment