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?
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.
In Terminal, use the
--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
PPAs are stored inside
/etc/apt/sources.list.d. To list all the installed PPAs:
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
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