https://github.com/sudeepbm/snap-to-flatpak
A BASH script that removes Snap packages and add support for Flatpak apps
https://github.com/sudeepbm/snap-to-flatpak
bash bash-script bash-scripting flatpak gnome gnome-desktop linux linux-shell-script snap-to-flatpak snap2flatpak unsnap
Last synced: 16 days ago
JSON representation
A BASH script that removes Snap packages and add support for Flatpak apps
- Host: GitHub
- URL: https://github.com/sudeepbm/snap-to-flatpak
- Owner: sudeepbm
- License: mit
- Created: 2023-08-13T18:15:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T17:14:57.000Z (over 2 years ago)
- Last Synced: 2024-01-26T08:45:57.014Z (about 2 years ago)
- Topics: bash, bash-script, bash-scripting, flatpak, gnome, gnome-desktop, linux, linux-shell-script, snap-to-flatpak, snap2flatpak, unsnap
- Language: Shell
- Homepage: https://github.com/sudeepbm/snap-to-flatpak
- Size: 539 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
snap-to-flatpak
Get rid of snap packages and install flatpak apps support
## Introduction
This script helps in removing the [**`snap`**](https://ubuntu.com/blog/whats-in-a-snap) packages and install support for [**`flatpak`**](https://flatpak.org) 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](https://github.com/sudeepbm/snap-to-flatpak-kde).
## Running the script
Clone [this](https://github.com/sudeepbm/snap-to-flatpak.git) repo or download the zip from [releases](https://github.com/sudeepbm/snap-to-flatpak/releases) section and unzip it.

``` {.bash}
git clone https://github.com/sudeepbm/snap-to-flatpak.git
```

Then move to the snap-to-flatpak directory
``` {.bash}
cd snap-to-flatpak
```
Make the script executable by the following command.
``` {.bash}
chmod +x snap-to-flatpak
```

Then run `snap-to-flatpak.sh` script as a sudo user.
``` {.bash}
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`.

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.
1. The script will then install [**`Gnome Software Centre`**](https://wiki.gnome.org/Apps/Software).
1. `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.
1. **[`Flatpak`](https://flatpak.org)** support will be added by installing flatpak plugin for the gnome software centre and adding the flatpak repo.
1. Wait patiently for the script to complete it's work.

_**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](mailto:contact-me_github.w4cp8@aleeas.com)
## Authors
- [@sudeepbm](https://www.github.com/sudeepbm)
## 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](LICENSE)
##
_**If you found this repo useful, don't hesitate to share with others.
Feel free to report issues if any.**_