From cae2ec4a2845300dbe920817c5a1bce3fcc342b5 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 17 Apr 2022 20:12:37 +0200 Subject: [PATCH] Added apt notes to the knowledge base --- knowledge base/linux/README.md | 3 +++ knowledge base/linux/apt.md | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 knowledge base/linux/README.md create mode 100644 knowledge base/linux/apt.md diff --git a/knowledge base/linux/README.md b/knowledge base/linux/README.md new file mode 100644 index 0000000..b93bd05 --- /dev/null +++ b/knowledge base/linux/README.md @@ -0,0 +1,3 @@ +# Linux-releated knowledge base + +The documents contained here can only (or mostly) be used on GNU/Linux systems. diff --git a/knowledge base/linux/apt.md b/knowledge base/linux/apt.md new file mode 100644 index 0000000..9d589bf --- /dev/null +++ b/knowledge base/linux/apt.md @@ -0,0 +1,19 @@ +# The APT package manager + +## TL;DR + +```shell +# mark all packages as non-explicitly installed +apt-mark auto $(sudo apt-mark showmanual) + +# remove orphaned packages +apt autoremove --purge +``` + +## Further readings + +- [Apt configuration] +- [Configuring Apt sources] + +[apt configuration]: https://wiki.debian.org/AptConfiguration +[configuring apt sources]: https://wiki.debian.org/SourcesList