Bug 78608 - [RFE] up2date should allow users to download packages by specifying a file name
[RFE] up2date should allow users to download packages by specifying a file name
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: up2date (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Red Hat Satellite QA List
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-26 08:57 EST by Michael Lee Yohe
Modified: 2007-04-18 12:48 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-08-06 18:55:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael Lee Yohe 2002-11-26 08:57:53 EST
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:
Comment 1 Mihai Ibanescu 2002-11-26 09:08:57 EST
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?
Comment 2 Michael Lee Yohe 2002-11-26 09:17:49 EST
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.
Comment 3 Adrian Likins 2003-01-27 19:48:31 EST
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. 

Note You need to log in before you can comment on or make changes to this bug.