PDA

View Full Version : How Do I Find The Repository That Provides a Specific Package



Cerin
16th September 2008, 11:46 AM
I have two Fedora 8 installations, A and B. Machine A has python-tidy.noarch installed, while machine B does not. I thought I installed python-tidy from a standard repo, but doing "yum install python-tidy" on machine B reports the package cannot be not found. How do I find what repo (if any) provides the python-tidy.noarch package, so I can add it to machine B? I can't find any option in yum to simply tell me where it's finding the packages it lists.

newiLuvatar
16th September 2008, 11:51 AM
you can find the repository-info in /etc/yum.repos.d/*.repo

glennzo
16th September 2008, 12:04 PM
I'm running Fedora 9, not 8. At any rate you can use yum list. For me its shown in the Fedora repo.

[glenn@coolhand ~]$ yum list python-tidy
Loaded plugins: fastestmirror, presto, refresh-packagekit
Setting up and reading Presto delta metadata
No Presto metadata available for livna
No Presto metadata available for fedora
No Presto metadata available for updates-newkey
No Presto metadata available for updates
Excluding Packages in global exclude list
Finished
Available Packages
python-tidy.noarch 0.2-3.fc9 fedora

Nokia
16th September 2008, 12:22 PM
I'm running Fedora 9, not 8. At any rate you can use yum list. For me its shown in the Fedora repo.

[glenn@coolhand ~]$ yum list python-tidy
Loaded plugins: fastestmirror, presto, refresh-packagekit
Setting up and reading Presto delta metadata
No Presto metadata available for livna
No Presto metadata available for fedora
No Presto metadata available for updates-newkey
No Presto metadata available for updates
Excluding Packages in global exclude list
Finished
Available Packages
python-tidy.noarch 0.2-3.fc9 fedora

Unfortunately, it's only valid for "available" meaning "not installed" packages. All packages installed appear simply as "installed" and there's no way to know where it might have come from unless it's removed first. (Or if there's another way, I didn't find it yet)

bob
16th September 2008, 12:42 PM
Somewhat clumsy method, but http://rpm.pbone.net/

glennzo
16th September 2008, 12:42 PM
Just the same, the package is in the Fedora repo, at least for Fedora 9.

[glenn@johnbonham ~]$ yum info python-tidy
Loaded plugins: fastestmirror, refresh-packagekit
Excluding Packages in global exclude list
Finished
Available Packages
Name : python-tidy
Arch : noarch
Version : 0.2
Release : 3.fc9
Size : 15 k
Repo : fedora
Summary : Python wrapper for tidy, from the HTML tidy project
URL : http://utidylib.berlios.de/
License : MIT
Description: Python wrapper (bindings) for tidylib, this allows you to tidy HTML files through a Pythonic
: interface.
Still, we're not answering the original question.

Cerin
16th September 2008, 12:49 PM
glenzo, thanks, that's what I was looking for.

Turns out my second Fedora install was just out-of-date and had a release transition to install. Once I did that, python-tidy showed up in the standard repo.

glennzo
16th September 2008, 12:52 PM
You're welcome Cerin.