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