Skip to content

Instantly share code, notes, and snippets.

@scndthe2nd
Created January 28, 2016 17:11
Show Gist options
  • Save scndthe2nd/8eca2698d1fea9ad1af2 to your computer and use it in GitHub Desktop.
Save scndthe2nd/8eca2698d1fea9ad1af2 to your computer and use it in GitHub Desktop.
## Removes everything but base. Don't use F-kit unless you really mean to.
## Warning
## This isn't my code
## I found this and need to make sure i keep it.
## ArchLinux F-Kit
pacman -R $(comm -23 <(pacman -Qq|sort) <((for i in $(pacman -Qqg base); do pactree -ul $i; done)|sort -u|cut -d ' ' -f 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment