Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command which returns the ppa which was used to install a certain package? Some command that searches a package in the ppa's.

I know that I could find this info out by looking into synaptic manager, and analysing the package info.

But I would like a command for that.

I use 12.04

share|improve this question
up vote 6 down vote accepted
apt-cache policy <package-name>

enter image description here

share|improve this answer
thx. exactly what I was looking for. – bioShark Oct 25 '12 at 19:55

I normally use the following command.

apt-cache policy <package-name>

For example if I want to know the ppa info for winusb I run the following.

apt-cache policy winusb

enter image description here


Super User

share|improve this answer

The two commands I use to get info about a package are


apt-cache policy <package name>


apt-cache show <package name>

The second command is more detailed and I use it a lot.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.