10

I have installed the following repository:

sudo add-apt-repository ppa:gnome3-team/gnome3

How do I uninstall it now? Thanks.

Sildoreth
  • 1,883
  • 1
  • 25
  • 38
user1796624
  • 3,665
  • 7
  • 38
  • 65

2 Answers2

14

Use the --remove flag.

sudo apt-add-repository --remove ppa:repo_name/subdirectory

lazysoundsystem
  • 2,039
  • 23
  • 23
5

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

virtualxtc
  • 390
  • 4
  • 21
  • 1
    Is that for "add-apt-repository" or "apt-add-repository"? Both show the --remove option in the man page, as far as I can see. – lazysoundsystem Sep 25 '14 at 14:06