Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fluential/e49241268d89acc138890d8685611096 to your computer and use it in GitHub Desktop.
Save fluential/e49241268d89acc138890d8685611096 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment