mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
pkg: add shorthand options, new example (#20169)
This commit is contained in:
committed by
GitHub
parent
4255d22168
commit
31aecaa957
+17
-5
@@ -5,20 +5,32 @@
|
||||
|
||||
- Upgrade all installed packages:
|
||||
|
||||
`pkg upgrade`
|
||||
`pkg {{[up|upgrade]}}`
|
||||
|
||||
- List currently installed packages:
|
||||
|
||||
`pkg {{[list-i|list-installed]}}`
|
||||
|
||||
- Install a package:
|
||||
|
||||
`pkg install {{package}}`
|
||||
`pkg {{[i|install]}} {{package}}`
|
||||
|
||||
- Uninstall a package:
|
||||
|
||||
`pkg uninstall {{package}}`
|
||||
`pkg {{[un|uninstall]}} {{package}}`
|
||||
|
||||
- Reinstall a package:
|
||||
|
||||
`pkg reinstall {{package}}`
|
||||
`pkg {{[rei|reinstall]}} {{package}}`
|
||||
|
||||
- Search for a package:
|
||||
|
||||
`pkg search {{package}}`
|
||||
`pkg {{[se|search]}} {{package}}`
|
||||
|
||||
- Show information about specific package:
|
||||
|
||||
`pkg {{[sh|show]}} {{package}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pkg {{[h|help]}}`
|
||||
|
||||
Reference in New Issue
Block a user