Bug 15508 - RFE: rpm CLI needs a dependency solver
Summary: RFE: rpm CLI needs a dependency solver
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2000-08-05 18:43 UTC by Pekka Savola
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-30 18:23:26 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Pekka Savola 2000-08-05 18:43:32 UTC
This happens with both RPM 3.0.5 and RPM 4.0.0-0.59.

rpm -F doesn't add packages that are Required: among the upgrade/install

An example:

samba-2.0.3-8 installed.

Running 'rpm -F *.rpm' in directory containing:
-rw-rw-r--    1 pekkas   pekkas    1744775 Sep 27  1999
-rw-rw-r--    1 pekkas   pekkas     434243 Sep 27  1999
-rw-rw-r--    1 pekkas   pekkas     343001 Sep 27  1999

Causes the message:
error: failed dependencies:
        samba-common = 2.0.5a is needed by samba-2.0.5a-12

Apparently RPM does not examine 'Provides:', 'Requires:' etc. headers
at all (or not soon enough) and dependecies fail because RPM won't install

This is an essential feature and should definitely be included.

Comment 1 Jeff Johnson 2000-08-06 21:15:08 UTC
FWIW, "rpm -F ..." has never added other packages, so this is a RFE.

Comment 2 Pekka Savola 2000-08-06 21:25:46 UTC
True, thus 'enhancement'. :)

Comment 3 Jeff Johnson 2001-01-09 16:54:22 UTC
Getting closer to a chance to implement, but up2date is the cat's pajamas at the
moment (sigh)

Comment 4 Aleksey Nogin 2001-08-16 20:45:38 UTC
up2date does not completely solve this problem - what if I want to upgrade from
some custom list of packages (and some of them may be local or 3rd party)?

Comment 5 Jeff Johnson 2002-04-13 22:48:24 UTC
bash$ sudo rpm -Uvh curl-devel-7.9.5-2.i386.rpm 
warning: curl-devel-7.9.5-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID
error: Failed dependencies:
	curl = 7.9.5-2 is needed by curl-devel-7.9.5-2
    Suggested resolutions:
bash$ rpm --version
RPM version 4.1

There's more to do of course

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