1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

pacman-f: add alias page; pacman-files: update page (#14858)

This commit is contained in:
Angad Singh Grover 2024-11-30 09:49:04 +08:00 committed by GitHub
parent b70772cd22
commit a75d875fa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 11 deletions

7
pages/linux/pacman-f.md Normal file
View file

@ -0,0 +1,7 @@
# pacman -F
> This command is an alias of `pacman --files`.
- View documentation for the original command:
`tldr pacman files`

View file

@ -6,24 +6,24 @@
- Update the package database:
`sudo pacman --files --refresh`
`sudo pacman -Fy`
- Find the package that owns a specific file:
- Find the package that owns a specific [F]ile:
`pacman --files {{filename}}`
`pacman -F {{filename}}`
- Find the package that owns a specific file, using a regular expression:
- Find the package that owns a specific [F]ile, using a regular e[x]pression:
`pacman --files --regex '{{regular_expression}}'`
`pacman -Fx '{{regular_expression}}'`
- List only the package names:
`pacman --files --quiet {{filename}}`
`pacman -Fq {{filename}}`
- List the files owned by a specific package:
- [l]ist the [F]iles owned by a specific package:
`pacman --files --list {{package}}`
`pacman -Fl {{package}}`
- Display help:
- Display [h]elp:
`pacman --files --help`
`pacman -Fh`

View file

@ -10,7 +10,7 @@ OUTPUT_FILE="inconsistent-filenames.txt"
rm -f "$OUTPUT_FILE"
touch "$OUTPUT_FILE"
IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman r" "pacman s")
IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman f" "pacman r" "pacman s")
set -e