1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-11 23:15:43 +02:00

xbps*: add option placeholders (#16548)

This commit is contained in:
Managor 2025-05-21 10:19:35 +03:00 committed by GitHub
parent f513dcf0c3
commit 44de6b14a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -10,4 +10,4 @@
- Synchronize and update all packages:
`xbps-install --sync --update`
`xbps-install {{[-S|--sync]}} {{[-u|--update]}}`

View file

@ -6,20 +6,20 @@
- Search for a package in remote repositories using a regular expression or a keyword (if `--regex` is omitted):
`xbps-query --search {{regular_expression|keyword}} --repository --regex`
`xbps-query {{[-s|--search]}} {{regular_expression|keyword}} --repository --regex`
- Show information about an installed package:
`xbps-query --show {{package}}`
`xbps-query {{[-S|--show]}} {{package}}`
- Show information about a package in remote repositories:
`xbps-query --show {{package}} --repository`
`xbps-query {{[-S|--show]}} {{package}} --repository`
- List packages registered in the package database:
`xbps-query --list-pkgs`
`xbps-query {{[-l|--list-pkgs]}}`
- List explicitly installed packages (i.e. not automatically installed as dependencies):
`xbps-query --list-manual-pkgs`
`xbps-query {{[-m|--list-manual-pkgs]}}`

View file

@ -10,12 +10,12 @@
- Remove a package and its dependencies:
`xbps-remove --recursive {{package}}`
`xbps-remove {{[-R|--recursive]}} {{package}}`
- Remove orphan packages (installed as dependencies but no longer required by any package):
`xbps-remove --remove-orphans`
`xbps-remove {{[-o|--remove-orphans]}}`
- Remove obsolete packages from the cache:
`xbps-remove --clean-cache`
`xbps-remove {{[-O|--clean-cache]}}`