[rhn-users] Up2date doesn't know about Local dir in /etc/sysconfig/rhn/sources

Shawn Protsman SProtsman at isoft.com
Wed Aug 25 01:03:26 UTC 2004


I added the following to /etc/sysconfig/rhn/sources:

### an local directory full of packages
### format
dir localrpms /var/spool/RPMS/

When I run the following command it cannot find ant-1.6.1 in
/var/spool/RPMS/:

[root at server1 RPMS]# up2date -i ant-1.6.1
Fetching Obsoletes list for channel: rhel-i386-es-3...
Fetching Obsoletes list for channel: rhel-i386-es-3-extras...
Fetching Obsoletes list for channel: rhel-i386-es-3-devsuite...
Fetching Obsoletes list for channel: localrpms...

Fetching rpm headers...
########################################

Name                                    Version        Rel
----------------------------------------------------------

The following packages you requested were not found:
ant-1.6.1


Have I wrongly assumed that up2date would recognize that this RPM is
located in /var/spool/RPMS?  Is it possible to have up2date know of new
RPMs being placed in this dir?

If I issue "up2date -u" it recognizes that ant-1.6.1 is in
/var/spool/RPMS/ and it wants to upgrade the 1.5 version currently
installed.  Unfortunately up2date is unable to resolve the dependencies:

[root at server1 RPMS]# up2date -u

Fetching Obsoletes list for channel: rhel-i386-es-3...
Fetching Obsoletes list for channel: rhel-i386-es-3-extras...
Fetching Obsoletes list for channel: rhel-i386-es-3-devsuite...
Fetching Obsoletes list for channel: localrpms...

Fetching rpm headers...
########################################

Name                                    Version        Rel
----------------------------------------------------------
ant                                     1.6.1          1jpp_3rh
noarch

Testing package set / solving RPM inter-dependencies...
There was a package dependency problem. The message was:

Unresolvable chain of dependencies:
jakarta-commons-modeler  1.1-2jpp_4rh    requires jmxri
mx4j  1.1.1-6                            requires
lib-javax-xml-parsers-2.2.1.so
mx4j  1.1.1-6                            requires
lib-javax-xml-transform-2.4.1.so
mx4j  1.1.1-6                            requires
lib-org-w3c-dom-2.2.1.so

What do I need to do to correct this so that up2date can recognize
/var/spool/RPMS and resolve dependencies if the RPMs are also located in
that same directory?

Regards,
Shawn





More information about the rhn-users mailing list