From 5cc5b025f9e54e703e08972eba5eb374450f6ee4 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Thu, 25 Feb 2021 19:21:26 -0300 Subject: [PATCH] pacman-sync: add page (#5268) --- pages/linux/pacman-sync.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/linux/pacman-sync.md diff --git a/pages/linux/pacman-sync.md b/pages/linux/pacman-sync.md new file mode 100644 index 000000000..dffe02cac --- /dev/null +++ b/pages/linux/pacman-sync.md @@ -0,0 +1,36 @@ +# pacman --sync + +> Arch Linux package manager utility. +> More information: . + +- 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`