zhaoJian's Tech Notes

arch/manjaro Common Commands: Install, Upgrade, Clear Cache with pacman/yay

Technology ~1330 words · 4 min read - views

pacman -S package_name # Install software pacman -S extra/package_name # Install version from a different repository pacman -Syyu # Upgrade the entire system, y updates the database, yy forces update, u upgrades software pacman -Ss string # Search for software in the package database pacman -Si package_name # Display detailed information about software pacman -Sc # Clear software cache, i.e., files in /var/cache/pacman/pkg directory pacman -R package_name # Remove a single software pacman -Rs package_name # Remove specified software and its dependencies not used by other installed software pacman -Qs string # Query installed packages pacman -Qi package_name # Query detailed information about locally installed packages pacman -Ql package_name # Get list of files contained in installed software pacman -U package.tar.zx # Install from local file pactree package_name # Display software dependency tree

Interactively search and install packages from repositories and AUR: yay Sync and update all packages from repositories and AUR: yay Only sync and update AUR packages: yay -Sua Install a new package from repositories and AUR: yay -S Search for keywords in package database from repositories and AUR: yay -Ss Display statistics of installed packages and system health: yay -Ps Uninstall software yay -Rns package_name #

Share:

Comments