From 79afcd8cfd244fe72b359aba8b6cbfac85a12e00 Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Thu, 1 Jul 2021 11:04:42 +0100 Subject: [PATCH] Add apt-config sheet & a couple of examples --- sheets/apt-config | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sheets/apt-config diff --git a/sheets/apt-config b/sheets/apt-config new file mode 100644 index 0000000..d67a004 --- /dev/null +++ b/sheets/apt-config @@ -0,0 +1,10 @@ +# apt-config +# APT Configuration Query program + +# List all APT (and related) configuration options and their values. +apt-config dump + +# List regular expressions used to match packages to be ignored by apt-get(8)'s +# `autoremove` functionality. Assumes `;` or some other undesired character +# will be at the end of the string. +apt-config dump | awk '/^APT::NeverAutoRemove::/ {print(substr($2, 0, length($2) - 1))}'