15

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?

kand
  • 2,268
  • 6
  • 31
  • 43

3 Answers3

13

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).

Dario Seidl
  • 4,140
  • 1
  • 39
  • 55
3

To show available repository using aptitude you can try:

$ aptitude versions fabric 
Package fabric:                        
p   1.4.3-1                                                   testing,unstable                       990 

This should display all available repositories for the package and it will also list the policy priority at the end. Maybe also check /etc/apt/sources.list

alleyoopster
  • 1,194
  • 7
  • 6
1

Not quite sure this is a stack overflow problem: seems more a system admin than a software dev question. In any case, I'm also not sure you can use Aptitude with YUM: Aptitude typically uses apt-get on Debian-based platforms, while yum is generally for Fedora/Red-hat platforms.

From a command line on a machine with the package installed you can typically do:

dpkg -l | grep <package> to list all matching installed packages and then do apt-cache madison <packagename> to see what repo the package came from.

Femi
  • 64,273
  • 8
  • 118
  • 148