I've added many PPAs using the add-apt-repository
command. Is there a simple way to remove these PPAs? I've checked in /etc/apt/sources.list
for the appropriate deb lines but they aren't there.
This is on a server system so a command line solution would be great!
Best Answer
There are a number of options:
Use the
--remove
flag, similar to how the PPA was added:You can also remove PPAs by deleting the
.list
files from/etc/apt/sources.list.d
directory.As a safer alternative, you can install ppa-purge:
And then remove the PPA, downgrading gracefully packages it provided to packages provided by official repositories:
Note that this will uninstall packages provided by the PPA, but not those provided by the official repositories. If you want to remove them, you should tell it to apt:
Last but not least, you can also disable or remove PPAs from the "Software Sources" section in Ubuntu Settings with a few clicks of your mouse (no terminal needed).