How do I find out which repository a package comes from?




Last Updated February 20, 2017 21:02 PM

Is there a method or command which can tell from which repository a package is coming from?

Answers 6

sudo grep *packagename* /var/lib/apt/lists/* | grep "Filename:"


October 20, 2010 21:29 PM

Sadly, this information is not recorded during package installation. You can make a decent guess if the repository is still in the source list and the repository still has the package:

grep -l PKG /var/lib/apt/lists/*

Even synaptic cannot tell if you disable the repository and update.

October 20, 2010 21:37 PM

Commands Needed:

dpkg -s - allows you to find the version of that you have installed. (source) apt-cache showpkg - will show a list of Versions of the package available. For each version, the source of the package, in the form of an index file name, will be given.

If you want to find the source of the package that's currently...

0 0

This simply means APT does not think the package with the name matching exactly what you entered is available in any repository your local APT knows of.

What does this mean? One of these two things:

The package you'd like to find has some other name; The repository the package with that exact name is not known to APT.

What can you do about this?

First, try to search the package cache (the list of all the packages from the repositories known to APT on your system) for a less precise name, something like

apt-cache search libgmp

or even

apt-cache search gmp

might do the trick (you might want to pipe the output to less to be able to search further through it). For instance, the package might include a version in it, like libgmp4-dev (meaning there might be libgmp3-dev available or something like this).

Next, be sure APT knows about the repository containing that package.

On my Wheezy system, I have:

$ apt-cache search libgmp-dev...
0 0

If the package was installed recently, you can look in /var/cache/yum.

Within that directory, there is a directory for each repo, and in that a packages directory. So, you would do something like:

find /var/cache/yum -name [package-name]*

However, cache has to be enabled in your /etc/yum.conf file:

cachedir=/var/cache/yum keepcache=1

Note that a yum clean [packages|all] will clear out the cache directory.

If the cache directory is empty, there is an alternative way. The information that is read by yum info [package] comes from /var/cache/yum/[repo]/primary.xml.gz

You can look through the file by entering:

gunzip -d -c /var/cache/yum/[repo]/primary.xml.gz | grep '[package]'

However, on machines where yum info [package] does not display "From repo : ", as indicated by 'theotherreceive', it is because it is not in the file primary.xml, so there will be no way to retrieve that information. Therefore, if the package is in two or more primary.xml...

0 0

Commands Needed:

dpkg -s - allows you to find the version of that you have installed. (source) apt-cache showpkg - will show a list of Versions of the package available. For each version, the source of the package, in the form of an index file name, will be given.

If you want to find the source of the package that's currently installed, you'll need the output of dpkg -s . Otherwise, you can simply look at the newest version output by apt-cache showpkg .


$ dpkg -s liferea Package: liferea Status: install ok installed Priority: optional Section: web Installed-Size: 760 Maintainer: Ubuntu Developers Architecture: i386 Version: 1.6.2-1ubuntu6 ... $ apt-cache showpkg liferea Package: liferea Versions: 1.6.2-1ubuntu6.1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid-updates_main_binary-i386_Packages) Description Language: File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_lucid-updates_main_binary-i386_Packages MD5:...
0 0

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:

apt-cache policy PACKAGE_NAME

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


apt-cache policy oracle-java7-installer

Here's how the command output looks like:

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

This, of course, also works with packages from...

0 0

When updating in 12.04, this is what I see:

But then I get this:

I have the following PPAs installed:

Which PPA, do you think, could be causing my update error? And what is the problematic PPA (Video4Linux?). I've had these PPAs installed for a while without problems.

Any advice / troubleshooting would be great, thanks.

apt-cache showpkg should give you an output that allows you to understand where the packages are comming from.

This is what I get when I run apt-cache showpkg gedit:

Package: gedit Versions: 3.4.1-0ubuntu1 (/var/lib/apt/lists/nl.archive.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages) (/var/lib/dpkg/status) Description Language: File: /var/lib/apt/lists/nl.archive.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages MD5: 5091aaf6659e6bf7ca9b32695a59f9cd Description Language: en File:...
0 0


I'm curious to find the repository where dev-python/cryptography-0.9-r1000 is pulled from.

I checked the log but unfortunately there are only references to the staging repo (which apparently is not public)

# git log cryptography-0.9-r1000.ebuild commit 8f623b52b94bb842ae439f4c368f0080c75fe6d7 Author: Daniel Robbins Date: Wed May 27 16:24:45 2015 +0000 merged from funtoo-staging merged: funtoo-staging: 08c2e2031707b845142d932cdcc5d3def1633e76

On this note, would be possible revert to the old-style of commits where individual SHAs were shown for each repository?

So far, dev-python/cryptography-0.9-r1000 it doesn't seem to be in "funtoo-overlay" or vanilla Gentoo-port tree . I've also checked the Repositories but it's not there either.

Searching on Google, I could only find references to "zugaina", but I believe we don't have that overlay in Funtoo right?

EDIT: actually I've found it by manually going through each of the...

0 0

I need to determine which version of GTK+ is installed on Ubuntu

Man does not seem to help

How do I find what GTK version is installed on Solaris?

How do I find what version of GTK I have installed on a Solaris box?

How do you find out which packages installed has `apache2` as its dependency?

When installing softwares like nginx on an Ubuntu 12.04 server, apache2 appears to be installed as one of the dependency which is not what we need. Question: How do you find out which packages install

Susy gem: How to find out which version of Susy is installed?

Does any one know how can I found which version of Susy is installed on my windows system? For example you can write in the command line compass -v to find out which version of Compass is installed on

Find OpenCV Version Installed on Ubuntu [duplicate]

This question already has an answer here: How to check for openCV 2 answers I would like to find out what version of...

0 0

Today, a friend of mine asked me how to check the latest available version of a package in the Ubuntu repositories. He just wanted to know the package’s version without installing it. I never knew that before, so I immediately went to askubuntu forums, and search for the answer. This is my first preferred site where I regularly search for Ubuntu related help. Luckily, someone has already asked the same question, and got the solution. I wanted to share those instructions for the OSTechNix readers, and keep it myself for future reference.

If you wanted to check available version of a package in Ubuntu repositories, read on. It’s not that difficult. We can do this two methods.

The command line way Graphical way

1. Check available version of a package in Ubuntu repositories from command line

This is the easiest and quickest way to find a package version from command line.

Open your Terminal, and run the following command:

apt-cache policy


0 0

The United States Postal Service, UPS, and FedEx all offer online dashboards where you can see exactly what packages (and letters, in the case of the US Postal Service) are scheduled to arrive at your address. They’ll even email and send you text message notifications so you can stay on top of things.

These are all free services, although UPS and FedEx have a few additional paid features. For example, you can sometimes pay to schedule a precise package delivery time with UPS or FedEx, but you can always keep tabs on incoming packages for free.

United States Postal Service

The US Postal Service offers a free service named “Informed Delivery.” It’s an online dashboard that automatically informs you about mail and packages being sent to your address, and it also provides email notifications.

There are two features here. There’s a “Mailpieces” tab that shows you scanned copies of the front of any letters you have arriving in your mailbox. Letters...

0 0

What is EPEL?

EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.

As part of the Fedora packaging community, EPEL packages are 100% free/libre open source software (FLOSS).

A large number of contributors and users of Fedora and Enterprise Linux want to work within Fedora to provide these packages.

The Fedora Project is a user of EPEL packages within the Fedora infrastructure itself. The Fedora Project is in a position to know the pain of not having a desired piece of software included in the RHEL distribution, and also a unique position to do something about it. Although RHEL is derived from Fedora, only a commercially supported subset of Fedora derived packages are included in the RHEL distribution. By...

0 0

These are the questions related to the currently supported versions. For older questions, see below.

General questions: ¶

What is Subversion? Why does it exist? ¶

Subversion is an open-source, centralized version control system. See Our Vision on our front page to know why Subversion exists. Want to take a quick look? See Quick Start.

Is Subversion proprietary software? ¶

No, Subversion is open source / free software. Several companies (CollabNet, WANdisco, VisualSVN, elego, ...) pay or have payed the salaries of some full-time developers, but the software carries an Apache License which is fully compliant with the Debian Free Software Guidelines. In other words, you are free to download, modify, and redistribute Subversion as you please; no permission from any company or any person is required.

How stable is Subversion? ¶

Subversion is very stable. It is mature software, with strong compatibility guarantees. The...

0 0
0 0