Wednesday, January 16, 2013

Add and Remove PPAs Using Terminal or Y PPA Manager

Personal Package Archives From The Command-Line
One thing I love about Linux is the ability to easily try new applications. After all we are open source and they are being created all the time. The command-line makes it easy to add and remove Personal Package Archives. However their is a tool which will let you add, remove, search, manage Personal Package Archives(PPA) and more. Just a little easier, I will talk about it below. First the basics. You can easily add a PPA from the command-line with the following commands.
add-apt-repository ppa:<ppa_name>

For exaple in three easy commands I can install the application CLI Companion:
sudo add-apt-repository ppa:clicompanion-devs/clicompanion-nightlies
sudo apt-get update
sudo apt-get install clicompanion

Because of my endless tinkering and checking out the latest software our FOSS developers have created I ended up with quite a large collection of Personal Package Archives(PPA). Some of which I no longer used.

At first I was unsure how to get rid of these. Today I did a little research and wanted to share with you what I found. This includes a cool new application called Y PPA Manager. Whether it is the command-line or a fancy GUI app we will have you cleaning up your collection of Personal Package Archives in no time.

From the terminal you can use a very similar command that you used to add the PPA.
sudo add-apt-repository --remove ppa:<ppa_name>

Then run the following to download the package lists from the repositories and "update" them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs

sudo apt-get update

Saved The Best For Last
I  came across a project which made a top application list on a popular website. The features definetly peeked my interest. The application is Y PPA Manager. Y PPA Manager is a tool which simplifies this process of managing Personal Package Archives (PPA). It allows adding, deleting and purging PPAs easily. You can also search and install PPAs from Launchpad repositories by entering the name of an application. I gave it a spin today and I have to say so far I like it. You can install Y PPA Manager with the following commands,
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

The main interface is quite self explanatory. You can Add a new PPA from the Add button and delete added sources from the Remove button. To get a list of your packages from “List Packages”. The Advanced option allows backing up, restoring and purging PPAs.

Y PPA Manager
Main interface
What makes this application really useful is its PPA search ability. To easily find a Launchpad PPA, click on Search all Launchpad PPAs and enter an application name. You can also enable the Deep Search option for a more advanced search.

Whichever option you choose your PPPas will now be much more manageable.

3 comments:

Tiago Carrondo said...

Great post!

please correct: apt-add-repository

duanedesign said...

Thanks for the input. I tested both apt-add-repository and add-apt-repository. Both commands work on my Ubuntu install. If this is not your experience please let me know.

Dan Scott said...

Thanks for the post! I stumbled upon Y PPA Manager a little while back and finally got around to installing it tonight. Problem is I am running Crunchbang Linux (#! for short) which uses the Openbox windows manager which doesn't automatically add new apps to the menus. I've not been able to find the CL command for it in the /usr/share/applications folder or anywhere else. Any help would be amazing!