Skip to content

Instantly share code, notes, and snippets.

@benjaminbauer
Last active August 29, 2015 14:09
Show Gist options
  • Save benjaminbauer/1d21fe066efad302fa9b to your computer and use it in GitHub Desktop.
Save benjaminbauer/1d21fe066efad302fa9b to your computer and use it in GitHub Desktop.
Get all files explicitly installed via packman WITHOUT packages in base and base-devel
# This will create a list of all packages, that are installed, except the ones that were installed during the initial Arch-Setup.
# It can be used to restore an Arch installation or to review installed packages during a little spring cleaning.
# Get all packages in base and base-devel
pacman -Sqg base base-devel > /tmp/basepackages
# Get all installed packages without depenencies
pacman -Qqen > /tmp/allpackages
# Get all explicitly installed packages without base
cat /tmp/{all,base}packages | sort | uniq -u > /tmp/mypackages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment