18

I've added multiple third party PPAs and there are bunch of PPAs which I don't need any more. Is there simple way to remove a PPA?

27

There are multiple ways to remove a PPA.

Option 1 :

Open the Applications menu ( super + space ) and search for Software and Updates

In the Software and Updates app, select the Other Software tab and select the desired PPA from the list. Click Remove to remove it.

software and update

Option 2:

In Terminal, use the -r or --remove flag to remove, similar to how the PPA was added. -r flag will only remove the said PPA. It will not revert any packages.

sudo add-apt-repository -r ppa:repository-name/ppa

Option 3:

PPAs are stored inside /etc/apt/sources.list.d. To list all the installed PPAs:

ls /etc/apt/sources.list.d

Note the name of PPA you want to remove (e.g.google-chrome.list), and remove it in Terminal using:

sudo rm -i /etc/apt/sources.list.d/google-chrome.list

Option 4:

In Terminal, use ppa-purge. It automatically downgrades any packages supplied by the PPA, and then removes the PPA.

sudo apt-get install ppa-purge
sudo ppa-purge ppa:repository-name/ppa
  • 4
    I think more needs to be added here about how PPA-Purge is the only option that will correctly downgrade packages. – Lewis Goddard Jul 10 '15 at 13:26
  • @LewisGoddard Thanks for the suggestion. I have added some explanation. – Sanjay Karki Jul 11 '15 at 3:27
1

You can use y-ppa manager

To install open terminal and run:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

It is GUI tool to remove, purge etc. PPA. It is also used to remove duplicate PPAs and to import missing gpg keys etc.,

Imgur

Imgur

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.