1
0
Fork 0
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:
Managor 2025-05-10 19:55:01 +03:00 committed by GitHub
parent 70b9d678a0
commit 16ae79e2c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -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}}`

View file

@ -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}}`