Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aptitude: Show What Repo a Package is From, Listing Contents of a Repo

I am trying to prepare an AWS instance by installing some software, one of which is Fabric for Python, a SSH connection library.

By default, AWS's yum doesn't have access to a Fabric distribution to install, so I was attempting to figure out where Aptitude would get Fabric from.

I can't figure out a way to get what repo Fabric is in using Aptitude, or Yum for that matter.

Also, on a similar note, if I do have the url of a specific repo, how would I go about listing all of the packages it has available?

like image 750
kand Avatar asked May 12 '11 00:05

kand


1 Answers

I didn't know this was possible with aptitude, I always used apt-cache policy to get that information (aptitude uses the same repositories as shown with apt-cache policy).

You can use

apt-cache policy fabric

to show version and repository information about the fabric package.

As pointed out in another answer, you can also use

aptitude versions fabric

to get the same information (in a slightly different format).

like image 64
Dario Seidl Avatar answered Sep 24 '22 01:09

Dario Seidl