Read This! | | Quick Links | Algorithms | AssemblyLanguage | BASH | C-Programmming | Computer Security | Databases | Emacs | Exploitation | Functional Programming | Firewalls | Git | Haskell | Javascipt | Julia | Social Engineering | Picolisp | Pharo Smalltalk | Linux | Python | Operating Systems | Machine Learning | Metasploit | Open Data Science | Networking | Machine Learning | Racket | Scheme | Unity | vim | Web Development | Windows WSL

pacman

pacman -Syu
S stands for sync, y is for refresh (local cache), u is for system update.
pacman -R package_name_ ;to remove a package
To remove a package and its dependencies which are not required by any other installed package:
pacman -Rs _package_name_
pacman -Qdtq | pacman -Rs -
Search Packages Locally
pacman -Q  boost-libs    #Display version
pacman -Ql boost-libs    #Display file list provided by local package
pacman -Qk boost-libs    #Check the local package database
pacman -Qo /path/to/file #Check if the file is owned by any package
Search For Package on Net
pacman -Ss package
To search for package file names in remote packages:
pacman -F _string1_ _string2_ ...
To view the dependency tree of a package:
pactree _package_naenter code hereme_
Clear the Cache:
paccache -r
To remove all the cached packages that are not currently installed, and the unused sync database, execute:
pacman -Sc
To remove all files from the cache, use the clean switch twice, this is the most aggressive approach and will leave nothing in the cache folder:
pacman -Scc


Sources

  • Pacman-Command
  • http:///wiki/?pacman

    23aug22   admin