A Digital Life Gaming, Developing & Technology

25Jan/12Off

Ubuntu – Remove PPA via the Command Line

Identify PPAs on your Ubuntu install via the command line

  • Open a terminal (CTRL+ALT+T)
  • cd /etc/apt/sources.list.d/
  • ls -l

You have move into the directory where the PPA lists are stored (/etc/apt/sources.list.d/) and should have a list of the PPA installed. You can open the individual .list entries to identify the PPA address with vim/nano/gedit.

Removing an Old PPA

There is a handy program called ppa-purge that will remove the PPAs from your sytem and return it to its origianl state.

  • sudo apt-get install ppa-purge

ppa-purge can be used by entering the ppa that you wish to purge much like you add a ppa with add-apt-repository. If you can not remember the PPA address then you can check it by opening the list file using the steps above.

  • sudo ppa-purge ppa:<PPA>

This will remove all traces of the PPA and reinstall any packages that may have been updated with the original versions.

Tagged as: , Comments Off
   

Switch to our mobile site