Skip to content

Instantly share code, notes, and snippets.

@allisson
Last active September 5, 2024 02:45
Show Gist options
  • Save allisson/7ff8487b696fd30c4767341d3d797595 to your computer and use it in GitHub Desktop.
Save allisson/7ff8487b696fd30c4767341d3d797595 to your computer and use it in GitHub Desktop.
Ubuntu 22.04 remove snap

Remove snaps

sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge core20
sudo snap remove --purge bare
sudo snap remove --purge snapd
sudo apt remove -y --purge snapd
sudo apt-mark hold snapd # avoid install snapd again

Install gnome-software

sudo apt-mark hold gnome-software-plugin-snap # avoid install this plugin
sudo apt install -y gnome-software gnome-software-plugin-flatpak

Install firefox from ppa

# tip from https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
sudo add-apt-repository -y ppa:mozillateam/ppa
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox
sudo apt install firefox -y

Install firefox from flathub (flatpak)

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.mozilla.firefox
@greydmiyu
Copy link

Beautiful, you are awesome.

@mitrams
Copy link

mitrams commented May 1, 2022

Who removes snap just to use Flatpak, which is no better?
What's the problem with flatpak?

@sorquan
Copy link

sorquan commented Feb 20, 2023

The following packages will be REMOVED:
  snapd* ubuntu-server-minimal*

Nice try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment