How to completely remove snapd and flatpak from Manjaro?

How to completely remove snapd and flatpak from Manjaro, including all the configuration files?

Will sudo pacman -R snapd will remove snapd, but will it remove all the configuration files?

(Note: The answer to this was there in the old forum, but I cannot access it with the wayback machine)

Are you referring to files in the ~home directory? AFAIK these can only be removed manually. You could also try a minimal installation of wtvr flavor you use. If you are referring to backup configuration then use sudo pacman -Rsun snapd This command can sometimes be dangerous and I recommend making a backup before doing it.

No, I was referring to the directory in / where snapd installs all the snaps. In Ubuntu, apt remove snapd only removes snapd, but all the files that were downloaded for running the snaps are still there. (Removing snap from home is easy).

In Ubuntu, one has to do sudo apt autoremove --purge snapd to remove snapd along with all the snaps and config files installed by snapd. I was looking for a similar command in Manjaro, for both snapd and flatpak.

Ah.

pamac remove snapd

sudo rm -r /var/lib/snapd

https://wiki.manjaro.org/index.php?title=Snap

pamac remove flatpak

sudo rm -r /var/lib/flatpak

rm -r ~/.local/share/flatpak

https://wiki.manjaro.org/index.php?title=Flatpak

2 Likes
  • pacman is the Arch utility and is for experts.

  • pamac is for beginners like me the friendly Manjaro version and:

    pamac remove --no-save snapd 
    

does exactly what you want (I.E. not keep any configuration files IOW it deletes them for you)

:innocent:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.