From 710c7bcf705f12d1cbe6e214be302a01101676e1 Mon Sep 17 00:00:00 2001 From: Theotime LEVEQUE Date: Tue, 20 Jan 2015 01:42:26 +0100 Subject: [PATCH 1/2] Add cheat for dpkg --- cheat/cheatsheets/dpkg | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cheat/cheatsheets/dpkg diff --git a/cheat/cheatsheets/dpkg b/cheat/cheatsheets/dpkg new file mode 100644 index 0000000..212ac31 --- /dev/null +++ b/cheat/cheatsheets/dpkg @@ -0,0 +1,11 @@ +# Install the package or upgrade it +dpkg -i test.deb + +# Remove a package including configuration files +dpkg -P test.deb + +# List all installed packages with versions and details +dpkg -I + +# Find out if a Debian package is installed or not +dpkg -s test.deb | grepStatus \ No newline at end of file From d9df28e3f2b7edcffdf5e76cae502dd7ee25972f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9otime=20L=C3=A9v=C3=AAque?= Date: Tue, 20 Jan 2015 12:22:47 +0100 Subject: [PATCH 2/2] Update dpkg --- cheat/cheatsheets/dpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat/cheatsheets/dpkg b/cheat/cheatsheets/dpkg index 212ac31..76eca1b 100644 --- a/cheat/cheatsheets/dpkg +++ b/cheat/cheatsheets/dpkg @@ -8,4 +8,4 @@ dpkg -P test.deb dpkg -I # Find out if a Debian package is installed or not -dpkg -s test.deb | grepStatus \ No newline at end of file +dpkg -s test.deb | grep Status