Aptitude: show which package the packet is sent from, listing the contents of the repo

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

By default, AWS yum does not have access to the Fabric distribution for installation, so I tried to figure out where Aptitude would get Fabric from.

I can't figure out how to get what the repo uses using Aptitude or Yum.

Also, on a similar note, if I have the URL of a specific repo, how do I go about listing all the packages available to him?

+10
source share
3 answers

I did not know that this is possible with aptitude, I always used apt-cache policy to get this information ( aptitude uses the same repositories as in apt-cache policy ).

You can use

 apt-cache policy fabric 

show the version and repository of fabric packaging information.

As indicated in another answer, you can also use

 aptitude versions fabric 

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

+10
source

To show the 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, as well as a list of policy priorities at the end. Perhaps also check / etc / apt / sources.list

+3
source

Not quite sure what the problem is: the system administrator seems to be more than a software issue. In any case, I'm also not sure if you can use Aptitude with YUM: Aptitude usually uses apt-get on Debian apt-get based platforms, while yum is usually used on Fedora / Red Hat platforms.

From the command line on the computer with the package installed, you can usually:

dpkg -l | grep <package> dpkg -l | grep <package> to display all the relevant installed packages, and then apt-cache madison <packagename> to find out which repo the package was sent from.

+1
source

All Articles