We help IT Professionals succeed at work.

yum install is not reconciling correct dependencies

mickt
mickt asked
on
I have a kickstart server, which I use as a repository.  I created the repository, 'createrepo /opt/kickstart/mnt'.

httpd.conf configuration on kickstart server:

DocumentRoot "/opt/kickstart"

<Directory "/opt/kickstart">
     Order allow,deny
     Allow from all
     Options Indexes FollowSymLinks
</Directory>

Alias /mnt/ "/opt/kickstart/mnt/"


/opt/kickstart/mnt contains multiple version directories, e.g. 5.0, 5.1 etc. in which I place my RPMs.  There are various dependencies with the RPMs that are fine when not installing using yum.  When I install via yum however the dependencies do not work and the latest version is taken.

E.g.

rpm -i <S/W>-5.5.rpm     <- this installs 5.5 including all 5.5 dependencies.

yum install <S/W>-5.5.rpm      <- this install 5.5 RPM but the latest 5.8 dependencies.


Client configuration, /etc/yum.repos.d/ams.repo:

[kickstart]
name=Kickstart mnt
gpgcheck=0
enabled=1
baseurl=http://10.10.12.254/mnt

I can work around by specifying all 5.5 RPMs with yum install, e.g. yum install <S/W>-5.5.rpm <S/W1>-5.5.rpm etc. but I'd like to know why yum does not perform the dependency check as with rpm -i.

Can anyone help?
Comment
Watch Question

Top Expert 2015
Commented:
Use mnt/5.5/ as baseurl (make sure to createrepo there too first)

Author

Commented:
I had repos in each version directory but it continued to behave as described.