SNAP:Removing snapd: Difference between revisions
Appearance
Created page with "*First, let’s list all the snaps installed on your system with the following command: <syntaxhighlight lang="shell"> snap list </syntaxhighlight> *Let’s also stop snapd (snap daemon) services: <syntaxhighlight lang="shell">sudo systemctl disable snapd.service</syntaxhighlight> <syntaxhighlight lang="shell">sudo systemctl disable snapd.socket</syntaxhighlight> <syntaxhighlight lang="shell">sudo systemctl disable snapd.seeded.service</syntaxhighlight> *Then remov..." |
No edit summary |
||
| Line 1: | Line 1: | ||
*First, let’s list all the snaps installed on your system with the following command: | *First, let’s list all the snaps installed on your system with the following command: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash"> | ||
snap list | snap list | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 7: | Line 7: | ||
*Let’s also stop snapd (snap daemon) services: | *Let’s also stop snapd (snap daemon) services: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo systemctl disable snapd.service</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo systemctl disable snapd.socket</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo systemctl disable snapd.seeded.service</syntaxhighlight> | ||
*Then remove each snap. It’s best to do so one-by-one, rather than all in one apt remove line. So something like: | *Then remove each snap. It’s best to do so one-by-one, rather than all in one apt remove line. So something like: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo snap remove firefox</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo snap remove snap-store</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo snap remove gtk-common-themes</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo snap remove gnome-3-38-2004</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo snap remove core18</syntaxhighlight> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo snap remove snapd-desktop-integration</syntaxhighlight> | ||
*Now, let’s delete any leftover snap cached data: | *Now, let’s delete any leftover snap cached data: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo rm -rf /var/cache/snapd/</syntaxhighlight> | ||
*Then purge or remove completely snapd using the following command: | *Then purge or remove completely snapd using the following command: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">sudo apt autoremove --purge snapd</syntaxhighlight> | ||
*Finally, using purge doesn’t touch your home directory, so you can optionally delete any files previously created in <code>~/snap</code>. | *Finally, using purge doesn’t touch your home directory, so you can optionally delete any files previously created in <code>~/snap</code>. | ||
| Line 39: | Line 39: | ||
To do this, use the following command: | To do this, use the following command: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash">rm -rf ~/snap</syntaxhighlight> | ||
==Source== | ==Source== | ||
*[https://haydenjames.io/remove-snap-ubuntu-22-04-lts/ haydenjames.io] | *[https://haydenjames.io/remove-snap-ubuntu-22-04-lts/ haydenjames.io] | ||
[[Category:Linux]] | |||
[[Category:Ubuntu]] | |||
[[Category:Software]] | |||
[[Category:Tutorial]] | |||
Latest revision as of 11:19, 3 November 2022
- First, let’s list all the snaps installed on your system with the following command:
snap list
- Let’s also stop snapd (snap daemon) services:
sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service
- Then remove each snap. It’s best to do so one-by-one, rather than all in one apt remove line. So something like:
sudo snap remove firefox
sudo snap remove snap-store
sudo snap remove gtk-common-themes
sudo snap remove gnome-3-38-2004
sudo snap remove core18
sudo snap remove snapd-desktop-integration
- Now, let’s delete any leftover snap cached data:
sudo rm -rf /var/cache/snapd/
- Then purge or remove completely snapd using the following command:
sudo apt autoremove --purge snapd
- Finally, using purge doesn’t touch your home directory, so you can optionally delete any files previously created in
~/snap.
To do this, use the following command:
rm -rf ~/snap