Added apt notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-04-17 20:12:37 +02:00
parent 174b3b3031
commit cae2ec4a28
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# Linux-releated knowledge base
The documents contained here can only (or mostly) be used on GNU/Linux systems.

View File

@@ -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