How To List Packages From A PPA / Repository In Ubuntu

A few weeks ago, we saw how to find out to which PPA / repository a package belongs to in Ubuntu / Debian. But how about getting a list of packages available in a PPA / repository?

Synaptic
To get a list of packages available in a PPA / repository enabled on your system (if the repository is disabled or not added on your system, it won’t show up here), firstly install Synaptic if you haven’t already:
sudo apt-get install synaptic
(or install Synaptic GTK3)

Then open Synaptic, select “Origin” on the bottom left, then select a PPA or repository on the left and it should list all packages in that PPA / repository for your Ubuntu version, both installed and not installed:
Synaptic origin
In the latest Synaptic built with GTK3, there are two entries for each PPA here, one that uses “/now” at the end, which displays the packages you’ve installed from a repository and another one which displays all the packages available in that repository.
Important: if the exact same package (including the package version) exists in two or more PPAs / repositories, it will only be listed for one repository entry in Synaptic. That’s why I’ve added other ways of doing this (see below), which list all the packages, even if the package exists in other PPAs / repositories.

Command line
You can also do this using a command like the one below, but this will only list the package names, without any additional info (no version, description, etc.):awk ‘$1 == “Package:” { if (a[$2]++ == 0) print $2; }’ /var/lib/apt/lists/*PPA-FIRST-PART*PPA-SECOND-PART*Packages
where “PPA-FIRST-PART” is the first part of a PPA, e.g. for the ppa:nilarimogard/webupd8 PPA, “PPA-FIRST-PART” is “nilarimogard” and “PPA-SECOND-PART” is “webupd8”.

Let’s try it out:
awk ‘$1 == “Package:” { if (a[$2]++ == 0) print $2; }’ /var/lib/apt/lists/*nilarimogard*webupd8*Packages
And here’s the terminal output:

list packages ppa terminal
(I’ve tweaked the original command – see the credits -, to remove duplicate lines which would occur on 64bit systems with multi-arch support).
This works for regular repositories too, e.g. to see all the packages available in the proposed repository:awk ‘$1 == “Package:” { if (a[$2]++ == 0) print $2; }’ /var/lib/apt/lists/*proposed*Packages
Or, to see the packages available in the security multiverse repository:
awk ‘$1 == “Package:” { if (a[$2]++ == 0) print $2; }’ /var/lib/apt/lists/*security*multiverse*Packages

Using Y PPA Manager
Y PPA Manager, a small application I’ve created, can list all the packages available in each PPA added on your system. It doesn’t work with regular repositories (just Launchpad PPAs) though and the PPA needs to be enabled on your system for this to work. So it’s not perfect.
But there are advantages over Synaptic / the command above:
unlike Synaptic, it lists all the packages in a PPA, even if the exact same package (exact version) is available in multiple PPAs;unlike the command above, Y PPA Manager displays the package version next to the package name.
List packages PPA Y PPA Manager
To lists all the packages in a PPA, install Y PPA Manager:
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager
Then launch Y PPA Manager, double click “Manage PPAs”, select the PPA and click “List packages”.

some info via AskUbuntu & UsemosLinux

Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.



Category: Ubuntu | Comments Off on How To List Packages From A PPA / Repository In Ubuntu

Install PPA-Purge With Multi-Arch Support In Ubuntu

The ppa-purge package available in the official Ubuntu repositories is not multi-arch aware, so purging PPAs like xorg-edgers or gnome3 doesn’t work correctly on 64bit systems.
A few hours ago, thanks to Tim Lunn’s work, a branch that adds multiarch support has been merged into the main ppa-purge branch, fixing this bug. The fix should be available in Ubuntu 13.04 Raring Ringtail soon, but I don’t know if it will be backported for older Ubuntu versions so to make this fix available for Ubuntu 12.10 and 12.04 users, I’ve uploaded the latest ppa-purge from BZR to the main WebUpd8 PPA.

For those not familiar with PPA Purge, this is a command line tool that downgrades all the packages installed from a PPA to the versions available in the official Ubuntu repositories.

Category: Ubuntu | Comments Off on Install PPA-Purge With Multi-Arch Support In Ubuntu

Install PPA-Purge With Multi-Arch Support In Ubuntu

The ppa-purge package available in the official Ubuntu repositories is not multi-arch aware, so purging PPAs like xorg-edgers or gnome3 doesn’t work correctly on 64bit systems.
A few hours ago, thanks to Tim Lunn’s work, a branch that adds multiarch support has been merged into the main ppa-purge branch, fixing this bug. The fix should be available in Ubuntu 13.04 Raring Ringtail soon, but I don’t know if it will be backported for older Ubuntu versions so to make this fix available for Ubuntu 12.10 and 12.04 users, I’ve uploaded the latest ppa-purge from BZR to the main WebUpd8 PPA.

For those not familiar with PPA Purge, this is a command line tool that downgrades all the packages installed from a PPA to the versions available in the official Ubuntu repositories.

Category: Ubuntu | Comments Off on Install PPA-Purge With Multi-Arch Support In Ubuntu

How To Find Out To Which PPA Repository A Package Belongs To

There are various reasons why you may need to find out to which PPA a package belongs to, for instance, in case a package in a PPA breaks something on your system, if you want to install a package which is already installed on your computer on some other machine but you don’t know the PPA you’ve used to install it and so on.

So here’s a quick tip on how to find out to which PPA a package belongs to.

Category: Ubuntu | Comments Off on How To Find Out To Which PPA Repository A Package Belongs To

Y PPA Manager 0.0.9.2 Released With New Features

y-ppa-managerY PPA Manager, like the name says, is a tool to manage PPAs: add, remove, purge PPAs, search for packages in Launchpad PPAs, list packages in a PPA and lots more, all from a single user interface. For a complete feature list, see the Y PPA Manager Launchpad page.
Today I’m releasing Y PPA Manager 0.0.9.2, which comes with new features and many under the hood changes:Transient notifications for GNOME ShellInitial support for Launchpad PPAs (only Launchpad!) added to /etc/apt/sources.list instead of /etc/apt/sources.list.d/ (experimental). Note: the duplicate PPAs removal, “Re-enable working PPAs after Ubuntu upgrade” and “Update release name in working PPAs” features don’t yet support this.Some features like Remove PPA, Purge PPA or List Packages in PPAs have been merged into a single “Manage PPAs” dialog. Also, in this dialog, the PPA name is now displayed (e.g.: ppa:webupd8team/gthumb) instead of the PPA .list file nameManage PPAs: new option to view/edit the .list source fileManage PPAs: new option to update a single PPA. This was already implemented in Y PPA Manager and was used when adding a PPA, but there wasn’t a GUI implementation to manually update single PPAs.Many “update-ppa” improvements (this is the command line tool used to update single PPAs; use “update-ppa –help for more info), including a fix for Linux Mint or support for more repository formats, e.g. “update-ppa http://archive.ubuntu.com/ubuntu quantal main”.Also, Policykit (pkexec) is now used instead of gksu / kdesu for Ubuntu versions newer than 11.04. This brings consistency between desktop environments and for example, you get a native password dialog in GNOME Shell. With this change, you only have to enter the root password when you start Y PPA Manager and you won’t be prompted each time you want to perform an action.
A complete list of changes can be found at Launchpad.

y ppa manager
I have to thank Satya for his help with this release: he’s the one who has implemented “update-ppa” to update single PPAs and he’s also implemented most of the gksu to pkexec transition, along with bug fixes, testing and more.

Install Y PPA Manager
Ubuntu / Linux Mint users can install Y PPA Manager using the following commands:sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager
Because of the many changes in this release, you may find more bugs than usual – remember to report them @ Launchpad!

Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.



Category: Ubuntu | Comments Off on Y PPA Manager 0.0.9.2 Released With New Features