How to safely remove PPA Repository from Ubuntu

We sometimes find what we are looking for while searching for something completely different. This happened to me recently. I was searching for a way to  fix some graphic performance issues being experienced on kubuntu, when I stumbled upon (no pun intended) a packaged named ppa-purge. The name is self explanatory and it sounded like something that a dude like me who can be on the bleeding edge at times would need. I went on to install it. Like the name suggests, ppa-purge allows you to easy remove a PPA from your repository sources.

There’s a PPA for that
PPA is means Personal Package Archive. It provides a way to easily install application which can not be found in the Ubuntu official repository on Ubuntu ( since the Ubuntu official repo takes a conservative approach to updates and number of applications it includes in its official repository with focus on stability over latest and greatest packages.) PPA is one of the coolest thing about Ubuntu. It creates an avenue for developers, packagers and even users to create their own personal repositories and include their packages which can easily be added and installed on Ubuntu.

The down-side of all these is that most of the applications contained in a PPA can be quite too bleeding edge and not as well tested as  what comes with the Ubuntu repos, so the users would sometimes want to revert back to the official Ubuntu packages. This is where PPA-Purge comes in handy

PPA-PURGE:    ppa-purge will reset all packages from a PPA to the standard versions released for your distribution.  So basically its like a way to restore your system back to the way it was before you installed packages from a PPA.

Installation: ppa-purge is very easy to install. You can grab a deb executable file directly from the web page of the xorg-edgers repository

Ubuntu 9.04 (Jaunty Jackalope)

Ubuntu 9.10 (Karmic Koala)

Usage

ppa-purge is very easy to use.How this works is e.g If I wanted to remove say the blueman PPA I just go to terminal and paste the following

sudo ppa-purge ppa:blueman/ppa/

A break down of how this work is

sudo ppa-purge ppa:repository-name/subdirectory

e.g ‘deb http://ppa.launchpad.net/blueman/ppa/ubuntu karmic main’ the part in bold is the part you need to add to

sudo ppa-purge ppa:

to make it

sudo ppa-purge ppa:blueman/ppa

I actually tried the tool after I installed the xorg-edger repository to see if it would solve my graphic display issues, unfortunately it only made things worse, thankfully I was able to use ppa-purge to remove the PPA and reset (downgrade) my packages back to the default version on karmic.

So there you have it. You can go on installing all the latest and greatest packages using the Ubuntu PPA. knowing full well you have something to fall back on. I hope someone finds this useful.

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

This entry was posted in Guides, Linux Admin, Ubuntu and tagged , , . Bookmark the permalink.
  • warenli

    It is certainly tip. Thanks for posting the description.

    • http://bigbrovar.aoizora.org/ bigbrovar

      Thanks, am glad you found it useful

  • Stephen Wilson

    Actually, the Karmic deb will not install. I get a message about broken dependencies, but no details about what is broken exactly.

    • http://bigbrovar.aoizora.org/ bigbrovar

      Weird because In have it install fine on my kubuntu karmic. I will try it on a fresh ubuntu karmic life cd and get back to you.

    • http://bigbrovar.aoizora.org/ bigbrovar

      I just tried it on a ubuntu karmic live CD and it installed without any dependency issue. I think its a problem with your system, but the package

  • ethnopunk

    Been looking for this, with nagging doubts about the new ppa method which might be faster but doesn't give users much control. Thanks. Wish there was a GUI.

    • http://bigbrovar.aoizora.org/ bigbrovar

      The new way for adding ppa is really meant to make the process easier for new users. I still prefer the old way though. about the GUI. it would be nice to have a gui.. but I always prefer the commandline anyway.. I find it faster :)

      • some_kid

        There is a GUI. Its in the software center. Software Center > Edit > Software Sources > Other Software

  • ethnopunk

    CLI might be quicker if you know exactly what it is that you want to do, but what if you don't know which ppa it is that you want to move? A GUI would allow one to browse the ppa installed on the system. In fact a better way of doing all of this would be great. Current method is cumbersome. I have a sources.list with 20 extra ppas, and then there are the ppas installed via the new method, so it's all split up. WIsh there was a more holistic consolidation which gave us icons and other information for each ppa. Maybe Synaptic needs an overhaul?

  • jacob finstein

    Arigatto this was very helpful! I am having graphics problem (radeon driver doesn't render gnomenu correctly) so this really helps!

  • cnfss

    I appreciate this, I’ve tried the same, with the x-updates ppa, because of the x-crashes… but when I reboot the pc, no x started (huge-humongous-crash :P )

    Thank you very much!!

  • JetPac

    This saved my butt. digiKam working again. BIT THANKS! :-)

  • Emeris

    Thanks, this was super useful!

  • kadzany

    Nice tutorial, thanks.
    Do you have any idea how about purging from mirrored ppa?

  • http://www.facebook.com/people/Bimal-Rekhadiya/1209363099 Bimal Rekhadiya

    This is what I was searching.. thanks

  • Alsnaani

    thanks , its useful

  • http://pulse.yahoo.com/_NWJDJJQVMO5MWEZZVP54AW6JQM zugita

    btw..where can I download ppa-purge ?