Skip to content

Instantly share code, notes, and snippets.

@jvdi
Last active April 3, 2024 18:25
Show Gist options
  • Save jvdi/b3c67484214570cbd79ee23a157cedff to your computer and use it in GitHub Desktop.
Save jvdi/b3c67484214570cbd79ee23a157cedff to your computer and use it in GitHub Desktop.
Manage Package or Clean Arch after update
  1. Clean package cache: $ sudo pacman -Sc

2.Remove unused packages: $ sudo pacman -Rns $(pacman -Qdtq)

3.Fully remove a Package with unrequire dependencys $ sudo pacman -Rns PAK_NAME

  1. get list of package with description
for package in $(pacman -Qetq); do
    description=$(expac -S '%d' $package)
    echo "$package: $description"
done > explicitly_installed_packages_with_descriptions.txt
  1. get pack with dependencys (as tree) $ for package in $(pacman -Qetq); do pactree $package; done

  2. for check package and dependenci status of a package:

pacman -Qi PAC_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment