23

I'm testing PPAs, so I commonly use ppa-purge, that restores my default versions. But I always have problem with the ppa name. What do I need to put as argument for ppa-purge?

I always used my browser to check name on launchpad, but what about when I'm without internet and I can't start X. Org server?

For xorg-edgers I know that ppa:xorg-edgers/ppa what about others? Let's say, I know that I have PPA of X-Updates. How do I find out the name of this PPA so I could use with ppa-purge, without using browser

So the name should be something like ppa:NAME/ppa? How to get this NAME?

jrg
  • 60,611
gsedej
  • 4,914

2 Answers2

8

This command will list all the PPA repositories you have configured

grep ppa /etc/apt/sources.list /etc/apt/sources.list.d/*

Alternatively, you can check the repository of a given package

apt-cache policy [package-name]
Adam Byrtek
  • 9,811
  • 6
    Thanks for answer, but I still don't get the "string" I need. Line :deb http://ppa.launchpad.net/zeitgeist/ppa/ubuntu lucid main #Zeitgeist PPA helps me nothing in my case... – gsedej Mar 31 '11 at 16:14
  • 3
    In this case the full repository name can be shortened to ppa:zeitgeist/ppa. Hope you see the pattern. – Adam Byrtek Mar 31 '11 at 21:06
  • 2
    @AdamByrtek how did you know that? – Dims Aug 09 '20 at 17:06
  • 5
    Sorry to warm up this 10 years old topic. However, I am stuck at the exactly same situation, I am unable to identify the necessary "PPA name" for ppa-purge. In my case, I want to purge the official winehq stable PPA for Ubuntu 18.04? The original PPA install link was sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' Any help is welcome. ;-) – Clemens Apr 29 '21 at 20:02
3

I recommend using "Y PPA Manager" which has (among others) one nifty feature: it can list all packages from a ppa enabled on your computer.

ygns
  • 61