mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 07:35:42 +02:00
dpkg-{deb, query}: add option placeholders (#16449)
This commit is contained in:
parent
70b9d678a0
commit
16ae79e2c7
2 changed files with 10 additions and 10 deletions
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Display information about a package:
|
||||
|
||||
`dpkg-deb --info {{path/to/file.deb}}`
|
||||
`dpkg-deb {{[-I|--info]}} {{path/to/file.deb}}`
|
||||
|
||||
- Display the package's name and version on one line:
|
||||
|
||||
`dpkg-deb --show {{path/to/file.deb}}`
|
||||
`dpkg-deb {{[-W|--show]}} {{path/to/file.deb}}`
|
||||
|
||||
- List the package's contents:
|
||||
|
||||
`dpkg-deb --contents {{path/to/file.deb}}`
|
||||
`dpkg-deb {{[-c|--contents]}} {{path/to/file.deb}}`
|
||||
|
||||
- Extract package's contents into a directory:
|
||||
|
||||
`dpkg-deb --extract {{path/to/file.deb}} {{path/to/directory}}`
|
||||
`dpkg-deb {{[-x|--extract]}} {{path/to/file.deb}} {{path/to/directory}}`
|
||||
|
||||
- Create a package from a specified directory:
|
||||
|
||||
`dpkg-deb --build {{path/to/directory}}`
|
||||
`dpkg-deb {{[-b|--build]}} {{path/to/directory}}`
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- List all installed packages:
|
||||
|
||||
`dpkg-query --list`
|
||||
`dpkg-query {{[-l|--list]}}`
|
||||
|
||||
- List installed packages matching a pattern:
|
||||
|
||||
`dpkg-query --list '{{libc6*}}'`
|
||||
`dpkg-query {{[-l|--list]}} '{{libc6*}}'`
|
||||
|
||||
- List all files installed by a package:
|
||||
|
||||
`dpkg-query --listfiles {{libc6}}`
|
||||
`dpkg-query {{[-L|--listfiles]}} {{libc6}}`
|
||||
|
||||
- Show information about a package:
|
||||
|
||||
`dpkg-query --status {{libc6}}`
|
||||
`dpkg-query {{[-s|--status]}} {{libc6}}`
|
||||
|
||||
- Search for packages that own files matching a pattern:
|
||||
|
||||
`dpkg-query --search {{/etc/ld.so.conf.d}}`
|
||||
`dpkg-query {{[-S|--search]}} {{/etc/ld.so.conf.d}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue