mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 10:42:07 +02:00

* 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>
38 lines
956 B
Markdown
38 lines
956 B
Markdown
# pacman
|
|
|
|
> Arch Linux package manager utility.
|
|
> See also: `pacman-database`, `pacman-deptest`, `pacman-files`, `pacman-key`, `pacman-mirrors`, `pacman-query`, `pacman-remove`, `pacman-sync`, `pacman-upgrade`.
|
|
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
|
> More information: <https://man.archlinux.org/man/pacman.8>.
|
|
|
|
- Synchronize and update all packages:
|
|
|
|
`sudo pacman -Syu`
|
|
|
|
- Install a new package:
|
|
|
|
`sudo pacman -S {{package}}`
|
|
|
|
- Remove a package and its dependencies:
|
|
|
|
`sudo pacman -Rs {{package}}`
|
|
|
|
- Search the database for packages containing a specific file:
|
|
|
|
`pacman -F "{{file_name}}"`
|
|
|
|
- List installed packages and versions:
|
|
|
|
`pacman -Q`
|
|
|
|
- List only the explicitly installed packages and versions:
|
|
|
|
`pacman -Qe`
|
|
|
|
- List orphan packages (installed as dependencies but not actually required by any package):
|
|
|
|
`pacman -Qtdq`
|
|
|
|
- Empty the entire pacman cache:
|
|
|
|
`sudo pacman -Scc`
|