You are not logged in.
Hi, the title pretty sums it up:
I want to know how can I see the repository an installed package belongs to, for example if I have the Firefox package I want to know if it belongs to core, extra, community, AUR or a custom repository.
I want to do that because I have a couple of custom repositories and sometimes pacman warns me that the local version of some package is newer than the one located on one of the oficial repositories.
The repository is not displayed in the info provided by "pacman -Qi <package>"
Thanks in advance!
Last edited by Shadow_Reaper13 (2014-09-20 01:54:33)
Offline
$ pacman -Ss ^firefox$
extra/firefox 32.0.1-1 [installed]
Standalone web browser from mozilla.org"extra" infront is repository name and then [installed] means installed from this repository
So the one with installed will be the right repository.
Last edited by amish (2014-09-20 01:40:58)
Offline
$ pacman -Ss ^firefox$ extra/firefox 32.0.1-1 [installed] Standalone web browser from mozilla.org"extra" infront is repository name and then [installed] means installed from this repository
So the one with installed will be the right repository.
Thank you very much!!
Offline
pacman does not track which repository a package was installed from. [installed] indicates only that a package with that name is installed, not that it came from that particular repository.
Offline
pacman does not track which repository a package was installed from. [installed] indicates only that a package with that name is installed, not that it came from that particular repository.
Oh I see, it would be good if pacman could track the repository of a package so it can be shown maybe with "pacman -Qi <package>"
Thanks anyway.
Offline
Ah if firefox was in two repositories, it would show [installed] next to both?!
Unfortunately, /var/lib/pacman/local/PKGNAME-PKGVERSION does not have any information about repository.
Offline
Update: Deleted the post.
Because my previous answer was still correct.
Assuming no two repositories will have same version, [installed] is supposed to two appear next to version which matches the locally installed package.
Last edited by amish (2014-09-20 07:17:22)
Offline
If you're using a different version, pacman will tell you this:
$ pacman -Ss ^firefox$
extra/firefox 32.0.1-1 [installed: 28.0-1]
Standalone web browser from mozilla.orgHow many packages have the same name as the ones in the repos? Can you post your pacman.conf?
Offline
If you're using a different version, pacman will tell you this:
$ pacman -Ss ^firefox$ extra/firefox 32.0.1-1 [installed: 28.0-1] Standalone web browser from mozilla.orgHow many packages have the same name as the ones in the repos? Can you post your pacman.conf?
I just need this because sometimes pacman warns me about packages whose local version is newer than the one in X repo, so I need to know which repository did the local package came from, thats it, I just have 1 custom repo, but I need this because I want to know if those packages were installed as dependencies from this custom repo or from the AUR
Offline
I believe that if you place your custom repository's entry ahead of the rest in /etc/pacman.conf, you won't receive those errors. I could be wrong, though.
Offline
The same package cannot be in two different repositories at the same time. The repository list prioritizes according to the order in the conf file.
Offline
The same package cannot be in two different repositories at the same time. The repository list prioritizes according to the order in the conf file.
Just because earlier repositories take precedence does not mean a package can not exist in more than one at a time.
If a package name exists in more than one repository, the repository can be explicitly specified to clarify the package to install: pacman -S testing/qt. You can also specify version requirements: pacman -S "bash>=3.2".
Offline
You can specify yourself as the PACKAGER in /etc/makepkg.conf, so you know which packages came from the AUR.
Offline
Awebb wrote:The same package cannot be in two different repositories at the same time. The repository list prioritizes according to the order in the conf file.
Just because earlier repositories take precedence does not mean a package can not exist in more than one at a time.
`man pacman` wrote:If a package name exists in more than one repository, the repository can be explicitly specified to clarify the package to install: pacman -S testing/qt. You can also specify version requirements: pacman -S "bash>=3.2".
That was a poor choice of words on my side, indeed.
You can specify yourself as the PACKAGER in /etc/makepkg.conf, so you know which packages came from the AUR.
No need for that. AUR packages are "manually installed" and can be filtered with the -m switch.
Last edited by Awebb (2014-09-22 11:04:46)
Offline
karol wrote:You can specify yourself as the PACKAGER in /etc/makepkg.conf, so you know which packages came from the AUR.
No need for that. AUR packages are "manually installed" and can be filtered with the -m switch.
-m lists packages that are not available in a repository; if pacman is complaining about the installed package being newer than the version available in a repository, -m can not possibly help determine whether it was originally installed from the AUR or a repository. The only install information that pacman tracks is when the package was installed, nothing about how it was installed.
Offline