How To Remove A Snap Package From Ubuntu 24.04 LTS
You’re in the right place if you’re looking for instructions on how to uninstall a Snap Package from Ubuntu 24.04 LTS. We’ll demonstrate how to quickly uninstall Snap packages from Ubuntu 24.04 LTS in this article.
How To Remove A Snap Package From Ubuntu 24.04 LTS
Run the following command to list down the snap packages installed on Ubuntu 24.04 LTS:
sudo snap list
Now, run the following command to remove any snap package from Ubuntu 24.04 LTS:
sudo snap remove package-name-that-need-to-be-remove
For example, to remove Firefox, Run the following command:
sudo snap remove firefox
Remove PPA Repository from the Terminal in Ubuntu 24.04 LTS
There are several methods by which you can remove the PPA repository from the Ubuntu terminal and they are:
Remove PPA Repository from the Source List
Go to the source list file with this command first:
cd /etc/apt/source.list.d
Now, run the following command to view the list of PPA repositories:
ls
Now, you can easily remove any repos from the source file with the following command:
sudo rm <repository-name>
Remove PPA Repository from add-apt Repository Command
Run the following command to remove the PPA repository from the add-apt-repository command in Ubuntu 24.04 LTS:
sudo add-apt-repository --remove ppa:<repository_name>
Remove PPA Repository PPA-Purge Tool
First, run the following command to install the PPA-Purge command tool in Ubuntu.
sudo apt install ppa-purge -y
Now, run the following command to remove the PPA repository using the PPA-purge tool. This command not only removes snapd
but also deletes its configuration files.
sudo ppa-purge ppa:<repository_name>