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

, par  noreply@blogger.com (Andrew) , popularité : 1%

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. 

To find out the PPA to which a package belongs to, simply run the following command in a terminal (this only works for packages which are already installed and doesn’t work for packages available in the PPA repository but which are not installed on your system) :

apt-cache policy <b>PACKAGE_NAME</b>

replacing "PACKAGE_NAME" with the package you want to find out the PPA for.



Example :

apt-cache policy oracle-java7-installer



Here’s how the command output looks like :



apt-cache pollicy



As you can see, the command output displays the PPA url, which, right after "ppa.launchpad.net" contains the PPA you’ve used to install the package ("webupd8team/java" in my example above).

This, of course, also works with packages from the official Ubuntu repositories as well as packages from non-Launchpad repositories. For instance, here’s how the output of "apt-cache policy opera" looks like (Opera is installed through its own repository) :

apt-cache pollicy

If the repository url is missing, it means you’ve installed the deb manually, not through a repository (and the package is not available in any repository on your system) or that the repository has been disabled or removed after the package installation.

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

counter.php?sc_project=4594652&java=0&sewebupd8?i=iwwcbxZ4Frk:dJY_GFaNWus:JO5tD9 webupd8?d=yIl2AUoC8zA webupd8?i=iwwcbxZ4Frk:dJY_GFaNWus:F7zBnM webupd8?d=qj6IDK7rITs webupd8?d=GpuqGqRPqxU webupd8?d=3k7XFKuwfg0 webupd8?d=KGf-JMduG9I webupd8?d=Y9kCARWg6Fw webupd8?i=iwwcbxZ4Frk:dJY_GFaNWus:gIN9vF
iwwcbxZ4Frk

Cet article est repris du site http://feedproxy.google.com/~r/webu...

Sites favoris Tous les sites

84 sites référencés dans ce secteur