An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


snap-to-flatpak


logo


logo1

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.

releases

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

git clone

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
```

chmod

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`.

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.

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.

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](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.**_