pacman --sync
Synchronize packages from remote repositories. More information: https://manned.org/pacman.8.
- Install a new package:
sudo pacman -S
- [S]ynchronize and refresh ([y]) the package database along with a sys[u]pgrade (add
--downloadonlyto only download the packages and not update them):
sudo pacman -Syu
- Update and [u]pgrade all packages and install a new one without prompting:
sudo pacman -Syu --noconfirm
- [s]earch the package database for a
regexor keyword:
pacman -Ss ""
- Display [i]nformation about a package:
pacman -Si
- Overwrite conflicting files during a package update:
sudo pacman -Syu --overwrite
- Remove not installed packages and unused repositories from the cache (use the flags
Sccto [c]lean all packages):
sudo pacman -Sc
- Specify the package version that should be installed:
sudo pacman -S =
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
