Ubuntu 20.04 LTS secara default menggunakan snap, padahal menurut sebagian orang snap performanya kurang bagus dan membebani kinerja boot. Bagaimana cara menghapus snap di Ubuntu 20.04 LTS? Apakah Aman Menghapus Snap dari Ubuntu 20.04 LTS?
Daftar aplikasi saya yang menggunakan snap di Ubuntu 20.04 LTS
Saya uninstall:
sudo snap remove eclipse
eclipse removed
sudo snap remove wine-platform-5-stable
wine-platform-5-stable removed
sudo snap remove snap-store
snap-store removed
sudo snap remove wine-platform-runtime
wine-platform-runtime removed
sudo snap remove gtk-common-themes
gtk-common-themes removed
sudo snap remove gnome-3-34-1804
gnome-3-34-1804 removed
sudo snap remove core18
core18 removed
sudo snap remove gtk2-common-themes
gtk2-common-themes removed
Unmount the snap core service
You'll need to replace the xxxx
with the actual ID inside the core
directory on your system, which you can find out by running df
sudo umount /snap/core/9066
sudo umount /snap/core/9289
sudo apt purge snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
snapd*
0 upgraded, 0 newly installed, 1 to remove and 39 not upgraded.
After this operation, 105 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 226494 files and directories currently installed.)
Removing snapd (2.44.3+20.04) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
(Reading database ... 226425 files and directories currently installed.)
Purging configuration files for snapd (2.44.3+20.04) ...
Stopping snap-core-9066.mount
Stopping unit snap-core-9066.mount
Waiting until unit snap-core-9066.mount is stopped [attempt 1]
snap-core-9066.mount is stopped.
Removing snap core and revision 9066
Removing snap-core-9066.mount
Stopping snap-core-9289.mount
Stopping unit snap-core-9289.mount
Waiting until unit snap-core-9289.mount is stopped [attempt 1]
snap-core-9289.mount is stopped.
Removing snap core and revision 9289
Removing snap-core-9289.mount
Stopping snap-snapd-7264.mount
Stopping unit snap-snapd-7264.mount
Waiting until unit snap-snapd-7264.mount is stopped [attempt 1]
snap-snapd-7264.mount is stopped.
Removing snap snapd and revision 7264
Removing snap-snapd-7264.mount
Stopping snap-snapd-7777.mount
Stopping unit snap-snapd-7777.mount
Waiting until unit snap-snapd-7777.mount is stopped [attempt 1]
snap-snapd-7777.mount is stopped.
Removing snap snapd and revision 7777
Removing snap-snapd-7777.mount
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
Remove any lingering snap directories
rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd
Enjoy a snap-free Ubuntu
It's that simple, now your Ubuntu 20.04 system is free of Snaps! 🙂
sumber: https://www.kevin-custer.com/blog/disabling-snaps-in-ubuntu-20-04/
0 comments:
Post a Comment