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

How To Install Synaptic With GTK3 Support In Ubuntu [PPA]

The latest Synaptic Package Manager from BZR has been ported to GTK3 and the new version will probably be available in the Ubuntu 13.04 repositories. Since many of us are still using Ubuntu 12.10 or 12.04, I’ve uploaded the latest Synaptic with GTK3 support to a PPA so you can easily install it.
Synaptic GTK3 Ubuntu 12.10Synaptic built with GTK3
On a first look, it seems like nothing has changed – that’s because the toolbar was supposed to be dark for GTK3 applications using Ambiance, but it looks like Synaptic is using a custom toolbar, at least for now. But you should notice the difference (e.g. buttons, checkboxes, etc.) once you start using it.
Further more, besides the GTK3 port, the latest Synaptic from BZR has got a lot of bug fixes – a complete list can be found here.

Install Synaptic Package Manager with GTK3 support in Ubuntu
Synaptic Package Manager built with GTK3 is available in the WebUpd8 Unstable PPA, for Ubuntu 12.04, 12.10 and 13.04. Currently, there are no other packages for these Ubuntu versions, so the PPA is safe, but at some point I might add some other unstable packages.
Also, this version of Synaptic is currently considered experimental. So use it at your own risk! I can’t guarantee everything will work for you, but I can tell you that I’m using it right now in Ubuntu 12.10 and everything works fine.
To add the PPA and install Synaptic with GTK3 support in Ubuntu 12.04, 12.10 or 13.04, use the following commands:sudo add-apt-repository ppa:webupd8team/unstable
sudo apt-get update
sudo apt-get install synaptic
Alternatively, you can download the Synaptic deb from our PPA.

If you want to built it from source, you can grab it via Launchpad.

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



Category: Ubuntu | Comments Off on How To Install Synaptic With GTK3 Support In Ubuntu [PPA]