Ubuntu/snapd: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with "== Termindate snapd with prejudice == snap list sudo snap list | awk '{print $1}' | xargs -L 1 sudo snap remove --purge sudo apt remove --purge snapd sudo apt-mark hold snapd Find and terminate any snapd directories: ## /home→‎/snap sudo find /home -type d -name snap sudo find /home -regex '/home/[a-zA-Z0-9.]: snap' -type d -name snap # sudo find /home -regex '/home/[a-zA-Z0-9.]*/snap' -type d -name snap -exec rm -rf {} \; ## other candidates - this could ta...")
 
No edit summary
Line 24: Line 24:


  sudo apt install firefox
  sudo apt install firefox
== Snaps ==
Introduction to snaps | Ubuntu
https://ubuntu.com/core/services/guide/snaps-intro
== Install Snap Service ==
sudo apt update
sudo apt install snapd
== Install hello-world Snap ==
sudo snap install hello-world
Test:
hello-world
This installed to
/snap/bin/hello-world
== search Snaps ==
snap search hello-world
== List Snaps ==
snap list
== Remove Snap Service ==
sudo apt remove snapd
== keywords ==

Revision as of 23:40, 9 August 2026

Termindate snapd with prejudice

snap list
sudo snap list | awk '{print $1}' | xargs -L 1 sudo snap remove --purge
sudo apt remove --purge snapd
sudo apt-mark hold snapd

Find and terminate any snapd directories:

## /home/*/snap
sudo find /home -type d -name snap
sudo find /home -regex '/home/[a-zA-Z0-9.]*/snap' -type d -name snap
# sudo find /home -regex '/home/[a-zA-Z0-9.]*/snap' -type d -name snap -exec rm -rf {} \;
## other candidates - this could take a long time
sudo find / -xdev -type d -name snap

See https://www.reddit.com/r/Ubuntu/comments/1chilj4/completely_remove_snap_from_ubuntu_2404/

Replace Firefox Snap with PPA

Note: Replace Firefox with PPA version

sudo add-apt-repository ppa:mozillateam/ppa
sudo apt install firefox

Snaps

Introduction to snaps | Ubuntu
https://ubuntu.com/core/services/guide/snaps-intro

Install Snap Service

sudo apt update
sudo apt install snapd

Install hello-world Snap

sudo snap install hello-world

Test:

hello-world

This installed to

/snap/bin/hello-world

search Snaps

snap search hello-world

List Snaps

snap list

Remove Snap Service

sudo apt remove snapd

keywords