Skip to content

A BASH script that removes Snap packages and add support for Flatpak apps in Ubuntu based distros using kde-plasma desktop environment.

License

Notifications You must be signed in to change notification settings

sudeepbm/snap-to-flatpak-kde

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo

snap-to-flatpak-kde

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 September 1,2023.

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

If you need gnome software center instead of kde 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-kde.git

git clone

Then move to the snap-to-flatpak-kde directory

cd snap-to-flatpak-kde

Make the script executable by the following command.

chmod +x snap-to-flatpak-kde

chmod

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

sudo ./snap-to-flatpak-kde

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.

execution

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