pacman-sync: add page (#5268)

translation-badges
Axel Navarro 2021-02-25 19:21:26 -03:00 committed by GitHub
parent 473b1ac11a
commit 5cc5b025f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# pacman --sync
> Arch Linux package manager utility.
> More information: <https://man.archlinux.org/man/pacman.8>.
- Install a new package:
`sudo pacman --sync {{package_name}}`
- 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:
`sudo pacman --sync --refresh --sysupgrade --noconfirm {{package_name}}`
- Search the package database for a regular expression or keyword:
`pacman --sync --search "{{search_pattern}}"`
- Display information about a package:
`pacman --sync --info {{package_name}}`
- 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):
`sudo pacman --sync --refresh --sysupgrade --ignore {{package_name}}`
- Remove not installed packages and unused repositories from the cache (use two `--clean` flags to clean all packages):
`sudo pacman --sync --clean`