How to delete a PPA repository in Ubuntu

Repositories in Ubuntu

If you are regular readers of this blog, you will have noticed that there are many programs and functions that can be obtained thanks to a PPA repository. These are easy to add and use, but sometimes we don't need them anymore or they become obsolete, and in this case it is best to remove them from the system so that it does not create problems when upgrading the distribution or in another process. To do this we have two methods, one easy and one difficult.

The easy method surely you have seen at some time, ideal for beginners and for those who want very graphic methods. We have to go to the application drawer and open the Software and Updates app. In this program we go to the "Other software" tab and there we mark or unmark the PPA repositories that we need or want. This method is simple and once we want to have it again, we just have to mark the PPA repository again.

The terminal method deletes the PPA repository in question from the system

But there is another method, one more difficult for novices and more radical. That is, once we remove it we will not have it in the system to redial but we will have to add it. This method is done through a terminal in which we write:

sudo add-apt-repository --remove ppa:nombre-ppa/ppa

So to show an example, removing the webupd8 repository would look something like this:

sudo add-apt-repository --remove ppa:nilarimogard/webupd8

Esto will completely remove the PPA repository from the system, something that could also be useful for those who want to remove the PPA repository from their system through the easy method. However, as we said, it completely deletes the repository, so to get it back you will have to write the add-apt-repository command again and accept the key.