From d7696612276835826210b051b6993ff022c6a75c Mon Sep 17 00:00:00 2001 From: abe Date: Mon, 3 Sep 2018 11:28:06 +0100 Subject: [PATCH] dpkg: add -c option (list local deb file contents) Add example for listing package contents of a downloaded `.deb` file, because `dpkg -L` only works with the `apt` name of the package (and only when installed). --- pages/linux/dpkg.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/linux/dpkg.md b/pages/linux/dpkg.md index 3901b2ac6..c0821a6b5 100644 --- a/pages/linux/dpkg.md +++ b/pages/linux/dpkg.md @@ -4,7 +4,7 @@ - Install a package: -`dpkg -i {{/path/to/file}}` +`dpkg -i {{path/to/file.deb}}` - Remove a package: @@ -18,6 +18,10 @@ `dpkg -L {{package_name}}` +- List contents of a local package file: + +`dpkg -c {{path/to/file.deb}}` + - Find out which package owns a file: `dpkg -S {{file_name}}`