Wednesday, September 7, 2022

Remove Snap Apps and Daemon on Kubuntu 22.10

Removing snap apps and snapd frees lot of space on HDD => + 10 GB of free space. Also it eliminates lot's of annoying mount points listed in Krusader => Ctrl+M.

snap list

sudo snap remove --purge firefox // and other applications

sudo snap remove --purge snapd

sudo apt autoremove snapd

sudo apt purge snapd // final step!!!

sudo rm -rf ~/snap /snap /var/snap /var/lib/snapd // remove associated folders


sudo nano /etc/apt/preferences.d/nosnap.pref

# To prevent repository packages from triggering the installation of snap,

# this file forbids snapd from being installed by APT.


Package: snapd

Pin: release a=*

Pin-Priority: -32768


Package: snapd

Pin: origin *

Pin-Priority: -32768


sudo apt update

apt-cache policy snapd

snapd:

  Installed: (none)

  Candidate: (none)


sudo apt-mark hold snapd // prevent update of already installed package


https://linuxhint.com/turn-off-snap-ubuntu/

https://hackaday.com/2020/06/24/whats-the-deal-with-snap-packages/

Free disk space on Linux system

No comments:

Post a Comment