Skip to content

sudeepbm/snap-to-flatpak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

snap-to-flatpak

logo
logo1

Get rid of snap packages and install flatpak apps support

Introduction

This script helps in removing the snap packages and install support for flatpak apps.

This script will be helpful for those users who prefer flatpaks over snaps.

Status of this script

This script is released as v1.0 on August 30,2023.

This script has been tested on Ubuntu linux 23.04. This script will work on any Ubuntu based linux distro with snaps using gnome desktop environment.

P.S.: This script will work on any other Ubuntu based linux distro using desktop managers other than 'gnome' but be prepared for the 'gtk apps'.

If you need kde software center instead of gnome software center, you can check out this repo.

Running the script

Clone this repo or download the zip from releases section and unzip it.

releases

git clone https://github.com/sudeepbm/snap-to-flatpak.git

git clone

Then move to the snap-to-flatpak directory

cd snap-to-flatpak

Make the script executable by the following command.

chmod +x snap-to-flatpak

chmod

Then run snap-to-flatpak.sh script as a sudo user.

sudo ./snap-to-flatpak

After this confirm to execute the script by typing Y or y or YES or yes. If you want to terminate the execution of the script at this stage, type N or n or NO or no.

execute

Note : Please make sure to execute this script as a sudo user.

Working of the script

  1. The script will list all snap packages installed and remove them one by one until all snaps are removed completely. Then it will remove the snapd package permanently. It will then create a preference file to prevent the downloading of snaps in future.

  2. The script will then install Gnome Software Centre.

  3. Firefox will be installed from the official mozilla repositories and creates a preference file to give priority to the mozilla repositories for future updates of Firefox.

  4. Flatpak support will be added by installing flatpak plugin for the gnome software centre and adding the flatpak repo.

  5. Wait patiently for the script to complete it's work.

script complete

Note : This script will delete all data of snap packages and will not be recoverable unless you have taken an earlier backup

Feedback

If you have any feedback, please reach out to me at Mail

Authors

Friendly notice

It is important to clarify that the intention here is not to criticize the quality of Snaps or to cause any form of harm. The provided script intends to offer assistance to individuals who hold a preference for Flatpaks.

Disclaimer

This script is provided as-is. Use it at your own risk. it worked on my system so idk if it will work on yours.

License

Licensed under MIT LICENSE

If you found this repo useful, don't hesitate to share with others.
Feel free to report issues if any.