From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830 Description of problem: rpmfind.net is a powerful query tool for available packages. One of the nice features about rpmfind.net is the ability to find a package that contains a certain file. up2date should also provide this feature, initially, in the console mode of the application. RHN receives the query and provides a list of packages to up2date that can satisfy the user's request _OR_ tell the user no Red Hat packages contain the file requested. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. # up2date /usr/bin/jed Actual Results: Fetching package list for channel: redhat-linux-i386-8.0... ######################################## Fetching Obsoletes list for channel: redhat-linux-i386-8.0... ######################################## Fetching rpm headers... None of the packages you requested were found, or they are already updated. Expected Results: Fetching package list for channel: redhat-linux-i386-8.0... ######################################## Fetching Obsoletes list for channel: redhat-linux-i386-8.0... ######################################## Fetching rpm headers... RHN reports: /usr/bin/jed is contained in jed-0.99.15-3.i386.rpm jed-0.99.15-3 has no additional dependencies for your system. Continue? (Y/n): Y Testing package set / solving RPM inter-dependencies... ######################################## jed-0.99.15-3.i386.rpm: ########################## Done. Preparing ########################################### [100%] Installing... 1:jed ########################################### [100%] Additional info:
Have you tried: up2date --whatprovides /usr/bin/joe This will show you the name, version and release of the package providing that file. You can then up2date that package. Would this work for you?
I'm familiar with the --whatprovides option. However, I think either adding the ability to say: # up2date --whatprovides /usr/bin/jed jed-0.99.15-3 No additional dependencies are necessary to install this package. Continue with installation (Y/n) : __ OR __ Something that up2date does not currently allow: # up2date --whatprovides stty sh-utils-2.0.12-3 No additional dependencies are necessary to install this package. Continue with installation (Y/n) : Currently, it does not report anything (since I did not resolve the path). Some users will not understand that some things are placed in /usr/bin, /usr/sbin, /bin, /sbin. If, for some reason, a file name is located in two different spots (and owned by two different packages) - the ambiguity is reported to the user and tells them the name of the packages that contain that file name. The aforementioned abilities should be provided in the graphical client since most users will use the Gnome frontend to up2date. See Bug 78610. It would be easy for the user to determine which package to select, eliminating the ambiguity, by allowing them to read the package description. I just thought of another reason this is kind of important. "Gnome Pilot" is packaged in "gnome-pilot", but most of the executable files are all named starting with gpilot or gpilotd. Having RHN search its database for all packages containing "gpilotd" within an architecture would simplify package installation.
up2date --solvedeps /usr/bin/jed will find what solves the dep, and all it's deps, and install it. Theres no gui component of this as yet, though I currently working on something along that line.