From 16ae79e2c7759192bdad2076c6efc710e7964873 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 10 May 2025 19:55:01 +0300 Subject: [PATCH] dpkg-{deb, query}: add option placeholders (#16449) --- pages/linux/dpkg-deb.md | 10 +++++----- pages/linux/dpkg-query.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/linux/dpkg-deb.md b/pages/linux/dpkg-deb.md index cbccfa7229..657e59b9cc 100644 --- a/pages/linux/dpkg-deb.md +++ b/pages/linux/dpkg-deb.md @@ -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}}` diff --git a/pages/linux/dpkg-query.md b/pages/linux/dpkg-query.md index 80fd4afd79..45b217e98d 100644 --- a/pages/linux/dpkg-query.md +++ b/pages/linux/dpkg-query.md @@ -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}}`