1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 04:02:09 +02:00
tldr/pages/linux/pacman-sync.md
K.B.Dharun Krishna 2135714193
pages/*, style-guide: update contents, fix Markdown (#10492)
* pages/*, style-guide: update pages, fix Markdown (commit 1)

* Update pages

* style-guide.de: update page

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* pip3: remove search command

* rpm: update path placeholder

Co-authored-by: pixel <pixel+github@chrissx.de>

* Update pages/linux/pkgfile.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: pixel <pixel+github@chrissx.de>
2023-08-26 23:00:06 +05:30

1.1 KiB

pacman --sync

Arch Linux package manager utility. See also: pacman. More information: https://man.archlinux.org/man/pacman.8.

  • Install a new package:

sudo pacman --sync {{package}}

  • 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}}

  • Search the package database for a regular expression or keyword:

pacman --sync --search "{{search_pattern}}"

  • Display information about a package:

pacman --sync --info {{package}}

  • 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}}

  • Remove not installed packages and unused repositories from the cache (use two --clean flags to clean all packages):

sudo pacman --sync --clean