Last active
June 3, 2024 18:54
-
-
Save Lyvendia/dba3730c6db7afa3162e6814455b6256 to your computer and use it in GitHub Desktop.
Revisions
-
Lyvendia revised this gist
Jun 3, 2024 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,6 +30,11 @@ More aggressive way to auto purge packages apt -o 'Apt::AutoRemove::SuggestsImportant=false' autopurge ``` Even more aggressive way to auto purge packages ```bash apt -o 'Apt::AutoRemove::SuggestsImportant=false' -o 'Apt::AutoRemove::RecommendsImportant=false' autopurge ``` Find leftover configuration files ```bash find /etc -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.merge-error' -
Lyvendia revised this gist
Dec 11, 2023 . 1 changed file with 35 additions and 7 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,34 +1,62 @@ # Debian notes ## Package management List manually installed packages ```bash apt-mark showmanual apt list '~i!~M' ``` List and remove packages with remaining configuration files ```bash apt list '~c' apt purge '~c' ``` List and remove packages not found in repositories ```bash apt list '~o' apt purge '~o' ``` Show holds ```bash apt-mark showhold ``` More aggressive way to auto purge packages ```bash apt -o 'Apt::AutoRemove::SuggestsImportant=false' autopurge ``` Find leftover configuration files ```bash find /etc -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.merge-error' ``` ## DNS over TLS Install systemd-resolved ```bash sudo apt install systemd-resolved ``` Configure the following in /etc/systemd/resolved.conf ```ini DNS=194.242.2.4#base.dns.mullvad.net DNSOverTLS=yes Domains=~. ``` Disable IPv4 and IPv6 Auto DNS in the Settings GUI, then switch the network off and on for these settings to take effect Restart systemd-resolved and NetworkManager ```bash sudo systemctl restart systemd-resolved NetworkManager ``` Verify the DNS settings ```bash resolvectl status ``` -
Lyvendia created this gist
Dec 7, 2023 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ ## Debian notes ### List manually installed packages ```bash apt-mark showmanual apt list '~i!~M' ``` ### List and remove packages with remaining configuration files ```bash apt list '~c' apt purge '~c' ``` ### List and remove packages not found in repositories ```bash apt list '~o' apt purge '~o' ``` ### Show holds ```bash apt-mark showhold ``` ### More aggressive way to auto purge packages ```bash apt -o 'Apt::AutoRemove::SuggestsImportant=false' autopurge ``` ### Find leftover configuration files ```bash find /etc -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.merge-error' ```