Use the --remove
flag.
sudo apt-add-repository --remove ppa:repo_name/subdirectory
Question
I have installed the following repository:
sudo add-apt-repository ppa:gnome3-team/gnome3
How do I uninstall it now? Thanks.
Solution
Use the --remove
flag.
sudo apt-add-repository --remove ppa:repo_name/subdirectory
OTHER TIPS
The --remove flag produces an error:
Usage: add-apt-repository [options] repository
add-apt-repository: error: no such option: --remove
Instead use the rm command to remove the file corresponding to the added repository from your sources.list.d folder; if you are using saucy, the command would look like this:
sudo rm /etc/apt/sources.list.d/gnome3-team-gnome3-saucy.list