1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-14 16:35:50 +02:00
tldr/pages/linux/pacman-sync.md
Angad Singh Grover e1f4daa6ef
pacman-s: add alias page; pacman-sync: update page (#14658)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2024-11-11 16:03:04 +02:00

37 lines
1 KiB
Markdown

# pacman --sync
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.
- Install a new package:
`sudo pacman -S {{package}}`
- [S]ynchronize and refresh ([y]) the package database along with a sys[u]pgrade (add `--downloadonly` to 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 {{package}}`
- Search ([s]) the package database for a regular expression or keyword:
`pacman -Ss "{{search_pattern}}"`
- Display [i]nformation about a package:
`pacman -Si {{package}}`
- Overwrite conflicting files during a package update:
`sudo pacman -Syu --overwrite {{path/to/file}}`
- [S]ynchronize and [u]pdate all packages, but ignore a specific package (can be used more than once):
`sudo pacman -Syu --ignore {{package}}`
- Remove not installed packages and unused repositories from the cache (use the flags `Scc` to [c]lean all packages):
`sudo pacman -Sc`