2021-02-25 22:21:26 +00:00
|
|
|
# pacman --sync
|
|
|
|
|
|
|
|
> Arch Linux package manager utility.
|
2023-05-14 12:41:37 +01:00
|
|
|
> See also: `pacman`.
|
2021-02-25 22:21:26 +00:00
|
|
|
> More information: <https://man.archlinux.org/man/pacman.8>.
|
|
|
|
|
|
|
|
- Install a new package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`sudo pacman --sync {{package}}`
|
2021-02-25 22:21:26 +00:00
|
|
|
|
|
|
|
- Synchronize and update all packages (add `--downloadonly` to download the packages and not update them):
|
|
|
|
|
|
|
|
`sudo pacman --sync --refresh --sysupgrade`
|
|
|
|
|
|
|
|
- Update all packages and install a new one without prompting:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`sudo pacman --sync --refresh --sysupgrade --noconfirm {{package}}`
|
2021-02-25 22:21:26 +00:00
|
|
|
|
|
|
|
- Search the package database for a regular expression or keyword:
|
|
|
|
|
|
|
|
`pacman --sync --search "{{search_pattern}}"`
|
|
|
|
|
|
|
|
- Display information about a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pacman --sync --info {{package}}`
|
2021-02-25 22:21:26 +00:00
|
|
|
|
|
|
|
- Overwrite conflicting files during a package update:
|
|
|
|
|
|
|
|
`sudo pacman --sync --refresh --sysupgrade --overwrite {{path/to/file}}`
|
|
|
|
|
|
|
|
- Synchronize and update all packages, but ignore a specific package (can be used more than once):
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`sudo pacman --sync --refresh --sysupgrade --ignore {{package}}`
|
2021-02-25 22:21:26 +00:00
|
|
|
|
|
|
|
- Remove not installed packages and unused repositories from the cache (use two `--clean` flags to clean all packages):
|
|
|
|
|
|
|
|
`sudo pacman --sync --clean`
|