Snap packages are rapidly turning into the first method that Ubuntu customers eat software program. Regardless of Snaps dominating Ubuntu, many customers nonetheless choose to keep away from Snap packages in favor of Apt packages which have lengthy been accessible in Ubuntu.
If you happen to’re not an enormous fan of Snap packages, however love utilizing Ubuntu, this information is for you. In it, we’ll go over how one can take away Snap out of your Ubuntu system and make it in order that your system will not have entry to the Snap retailer or something like that.
Uninstall pre-installed Snap packages from Ubuntu
Each launch of Ubuntu Linux has just a few Snap packages pre-installed. The explanation that some Snaps come put in is that Ubuntu builders like Snaps and need to present customers what it may possibly do.
Take away pre-installed Snaps
Earlier than we will take care of eradicating the Snap runtime from the system, and making it in order that it’s completely disabled, we’d like to take away these Snaps. In Ubuntu 20.04, there are 6 pre-installed Snap packages. These packages are Core, Core18, the Gnome bundle, frequent themes, Snapd, and the Snap retailer.
Sadly, in contrast to Apt, it isn’t doable to uninstall all of those packages in bulk. You need to manually take away every one in all these packages by hand.
Word: hold in thoughts, you’ll have Snaps put in in your system that we don’t cowl in the tutorial. To view all put in snaps, do snap checklist. Then, snap take away packagename.
To uninstall the Core Snap, run sudo snap take away on the “core” bundle. Please be aware that you could be want to uninstall Core final or shut to final, as among the pre-installed Snaps depend on it.
sudo umount /snap/core* -lf
sudo snap take away core
To eliminate Core18, run the uninstall command on the “core18” bundle. Please be aware that this Snap might have to be eliminated final, as lots of the pre-installed Snaps work together with it as a dependency.
sudo snap take away core18
To eliminate Gnome, run the uninstallation command on the “gnome-3-1804” bundle.
sudo snap take away gnome-3-34-1804
To take away the frequent GTK theme snap out of your system, it’s essential to run the uninstallation command on the “gtk-common-themes” bundle.
sudo snap take away gtk-common-themes
To eliminate the Snapd snap, run the uninstallation command on “Snapd.”
sudo snap take away snapd
Lastly, to take away the Snap bundle retailer out of your Ubuntu pc, you’ll want to run the uninstallation command on the “snap-store” bundle.
sudo snap take away snap-store
Uninstall different Snap packages
As soon as the entire pre-installed Snaps are taken off of the system, run the snap checklist command. Be certain no different packages exist in the checklist. If there are extra Snp packages proven in the checklist, you have to to uninstall them. You can’t disable Snap if current Snaps are mounted and in use. Bear in mind, you’ll be able to simply uninstall a Snap by doing the next.
Step 1: Run snap checklist.
Step 2: Look in the “Name” column for the title of the bundle.
Step 3: Run snap uninstall nameofsnap.
Take away Snapd from Ubuntu
Now that the entire pre-installed Snap packages are eliminated out of your Ubuntu PC, it’s time to purge Snapd. Snapd is the background program that handles your entire Snaps, and if you don’t take away it, Snaps will nonetheless be enabled on Ubuntu.
To purge Snapd, open up a terminal window by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, when the terminal window is open, run the sudo apt take away snapd –purge command.
The take away command will delete Snapd from the system and uninstall it from Ubuntu’s bundle checklist. The –purge flag will inform Ubuntu to not solely uninstall it however to erase all configuration information and associated information from Ubuntu. Purging is important as a result of, with out it, Snapd will go away system information throughout your PC.
sudo apt take away snapd --purge
When the command is full, you’ll have purged the Snap retailer and any capability to run Snaps out of your Ubuntu PC.
Deleting folders
As soon as the Snapd runtime is eliminated out of your Ubuntu system, your Ubuntu PC will not have entry to the Snap retailer or find a way to run Snaps through snap set up. Nonetheless, the uninstallation isn’t full. You continue to want to delete the Snap folders from your own home listing.
First, it’s essential to delete the “snap” listing in your own home folder. This folder handles your entire system settings for Snap apps. To delete it, run the rm -rf command under.
sudo rm -rf ~/snap
Subsequent, the /var/snap/
folder wants to be deleted. To delete it, run the rm -rf command with the sudo command.
sudo rm -rf /var/snap
Lastly, the /var/lib/snapd
folder wants to be deleted. To eliminate it, you’ll want to run rm -rf command with the sudo command.
sudo rm -rf /var/lib/snapd
When all three of those folders are faraway from the system, reboot Ubuntu. As soon as Ubuntu comes again on-line, it’ll be Snap free! Get pleasure from!