How to Remove PPAs from Ubuntu

PPA repositories are unofficial repositories that provide a way to add third-party applications to the Ubuntu OS. With PPAs, you can install any software that is missing from your system’s default repositories. Installing and removing a package via its PPA is very simple. All you need is to add the PPA repository and then you can simply install/remove the package in the same way that you install/remove a standard package. But how do you remove those PPAs that were used to install the packages? There are multiple ways to remove the PPAs added to your system.

In this article, we will explain how to remove PPA from your Ubuntu system using both the GUI and the command line. We have explained the procedure mentioned in this article on the Ubuntu 20.04 system.

List PPAs

To see which PPA repositories are available on your system, simply run the following command in Terminal:

$ apt policy

An alternative way to see the repositories available on your system is by listing the /etc/apt/sources.list.d directory like this:

$ ls /etc/apt/sources.list.d

Remove PPA via GUI using the Software & Updates utility

In the following method, we will see how to remove the PPA by using the Software & Updates utility in the Ubuntu system.

Launch the Software & Updates utility by searching it through the Activities search bar.

In the Software & Updates utility, go to Other Software tab. Here you will see a list of PPA repositories available on your system. Select the PPA that you want to remove and click the Remove button.

The system will then ask for authentication. Enter the password and click the Authenticate button, after which the selected PPA will be removed from your system.

Remove PPA via command line

You can remove the PPA from your system in different ways using the command line. To open the command line Terminal application in your system, use the Ctrl+Alt+T keyboard shortcut.

Using the add-apt-repository command

The add-apt-repository command is used to add or remove the PPA repositories to the /etc/apt/sources.list.d directory. In order to remove a PPA repository from your system, simply use the add-apt-repository in the following format:

$ sudo add-apt-repository -r ppa:ppa_name


$ sudo add-apt-repository –r ppa:webupd8team/y-ppa-manager

This command will remove the PPA for the Y PPA Manager from the system.

Using the /etc/apt/sources.list.d Directory

The /etc/apt/sources.list.d directory contains the repositories available in your system in the form of separate files.

To remove a PPA from this directory, simply use the rm command followed by the PPA file name like this:

$ sudo rm /etc/apt/sources.list.d/ppa-file


$ sudo rm /etc/apt/sources.list.d/skype-stable.list

It will remove the skype PPA from the /etc/apt/sources.list.d directory.

Using the PPA Purge Command

All the methods we have discussed above only remove the PPA from the system. They do not remove the application that was installed using the PPA. In the following method, we are going to use the PPA purge utility that not only removes the PPA, but also removes the application installed using this PPA.

The PPA purge utility is not installed by default on Ubuntu. You can install it with the following command in Terminal:

$ sudo apt install ppa-purge

Once installed, use the ppa-purge command to purge any PPA from your system. Here is the syntax to do so:

$ ppa-purge ppa:ppa_name

This command will remove the PPA as well as the application installed from this PPA.


$ sudo ppa-purge ppa:webupd8team/y-ppa-manager

When you run the above command, the system might ask for confirmation by providing a Y/n option. Hit y to continue, after which the removal process will be started on your system.

In this article, we have discussed different ways through which you can remove PPA from the Ubuntu system. Using either of the above-discussed methods; whether it is GUI or command line based, you can easily remove the PPA. All the above methods except the PPA purge just remove the PPA from the system, while the PPA purge also removes the application from the system.

About the author

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.