Skip to content

Instantly share code, notes, and snippets.

@mkwardakov
Created September 21, 2016 10:48
Show Gist options
  • Save mkwardakov/e7b82ca0eb9be30a329599f872052ebf to your computer and use it in GitHub Desktop.
Save mkwardakov/e7b82ca0eb9be30a329599f872052ebf to your computer and use it in GitHub Desktop.
Get csv-formatted list of installed packages
rpm --queryformat "%{NAME},%{VERSION},%{ARCH},%{RELEASE}\n" -qa
dpkg-query --show --showformat='${Package},${Version},${Architecture}\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment