How to purge a PPA
Purging a PPA means not only to disable the PPA, but also to downgrade any packages you've upgraded from that PPA, to the version available in the official Ubuntu repositories.
how to purge a PPA Ubuntu
Here's an example: let's say you've added the Unity Staging PPA in Ubuntu 12.04 and upgraded to the latest Unity from trunk. Something goes wrong and you want to go back to the Unity version available in the official Ubuntu 12.04 repositories - in this case, you can use PPA Purge to purge the Unity Staging PPA and all the packages upgraded from this PPA should return to the version available in the official Ubuntu 12.04 repositories.
To be able to purge a PPA, you need to install "ppa-purge":
To purge a PPA, you must use the following command:
For example, to purge the Unity Staging PPA, you would use:
Code: Select all
sudo ppa-purge ppa:unity-team/staging
If the 'ppa-purge' command fails for some reason, you can't run 'ppa-purge' again unless you re-enable the PPA - see how to re-enable it above (under "How to disable a PPA").
Purging a PPA can be a bit tricky sometimes, because if a package installed from a PPA doesn't exist in the official Ubuntu repositories, it can't be downgraded and PPA Purge won't remove it either, so you'll have to remove it manually. But the PPA Purge purpose is to restore the original packages from the Ubuntu repositories in case something goes wrong when upgrading some packages from a PPA, and for this purpose, PPA Purge usually works great.