mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 21:46:02 +02:00
pacman: use long arguments and replace -Qo example (#6083)
This commit is contained in:
parent
542b4bf1c3
commit
0314a12409
1 changed files with 10 additions and 10 deletions
|
@ -5,32 +5,32 @@
|
|||
|
||||
- Synchronize and update all packages:
|
||||
|
||||
`pacman -Syu`
|
||||
`pacman --sync --refresh --sysupgrade`
|
||||
|
||||
- Install a new package:
|
||||
|
||||
`pacman -S {{package_name}}`
|
||||
`pacman --sync {{package_name}}`
|
||||
|
||||
- Remove a package and its dependencies:
|
||||
|
||||
`pacman -Rs {{package_name}}`
|
||||
`pacman --remove --recursive {{package_name}}`
|
||||
|
||||
- Search the package database for a regular expression or keyword:
|
||||
|
||||
`pacman -Ss "{{search_pattern}}"`
|
||||
`pacman --sync --search "{{search_pattern}}"`
|
||||
|
||||
- List installed packages and versions:
|
||||
|
||||
`pacman -Q`
|
||||
`pacman --query`
|
||||
|
||||
- List only the explicitly installed packages and versions:
|
||||
|
||||
`pacman -Qe`
|
||||
`pacman --query --explicit`
|
||||
|
||||
- Find which package owns a certain file:
|
||||
- List orphan packages (installed as dependencies but not actually required by any package):
|
||||
|
||||
`pacman -Qo {{filename}}`
|
||||
`pacman --query --unrequired --deps --quiet`
|
||||
|
||||
- Empty package cache to free up space:
|
||||
- Empty the entire pacman cache:
|
||||
|
||||
`pacman -Scc`
|
||||
`pacman --sync --clean --clean`
|
||||
|
|
Loading…
Add table
Reference in a new issue