how cleanly do snap packages uninstall?
by sp222 from LinuxQuestions.org on (#5DDH7)
I have a question about how cleanly snap packages uninstall.
I'm running Ubuntu 20.04 LTS and am trying out a lot of software (both snap packages and .deb packages), most of which I don't intend to keep. I'm running the software that I'm trying out on a KVM virtual machine so that I can fully and cleanly get rid of installed packages without hassle.
However, with respect to the snap packages that I'm trying out, I'm wondering whether it's necessary to install and run them under a VM to ensure that I can fully get rid of them. Since snap packages are run out of their own container, does that mean that they uninstall more cleanly than a .deb? I understand that after uninstalling a .deb package (i.e., sudo apt purge) there still may be changes to the system as compared to before the .deb was installed. Is it the case that the removal of snap packages (i.e., sudo snap remove) is more clean because snap packages are containerized? In other words, after uninstalling a snap package (that was installed directly on the machine, not on a VM), will my system be virtually identical to what it was like prior to the snap installation?
I'm primarily worried about cleanly removing apps that I don't want to keep after trying them out. (I'm not too worried about malware because I'm only trying out software from the Ubuntu repository and from the snap store.) If I want to ensure a clean uninstall of snap packages, is there any benefit to having installed them on a VM? Or is it the case that since they're containerized they delete fully and cleanly, meaning that it's not necessary to use a VM to ensure clean removal?
Any thoughts or advice on this matter would be appreciated.


I'm running Ubuntu 20.04 LTS and am trying out a lot of software (both snap packages and .deb packages), most of which I don't intend to keep. I'm running the software that I'm trying out on a KVM virtual machine so that I can fully and cleanly get rid of installed packages without hassle.
However, with respect to the snap packages that I'm trying out, I'm wondering whether it's necessary to install and run them under a VM to ensure that I can fully get rid of them. Since snap packages are run out of their own container, does that mean that they uninstall more cleanly than a .deb? I understand that after uninstalling a .deb package (i.e., sudo apt purge) there still may be changes to the system as compared to before the .deb was installed. Is it the case that the removal of snap packages (i.e., sudo snap remove) is more clean because snap packages are containerized? In other words, after uninstalling a snap package (that was installed directly on the machine, not on a VM), will my system be virtually identical to what it was like prior to the snap installation?
I'm primarily worried about cleanly removing apps that I don't want to keep after trying them out. (I'm not too worried about malware because I'm only trying out software from the Ubuntu repository and from the snap store.) If I want to ensure a clean uninstall of snap packages, is there any benefit to having installed them on a VM? Or is it the case that since they're containerized they delete fully and cleanly, meaning that it's not necessary to use a VM to ensure clean removal?
Any thoughts or advice on this matter would be appreciated.