[Yum] How yum distingushes update packages from base packages

P Li pli888 at gmail.com
Tue Apr 8 16:02:00 UTC 2008


Greetings,

We set up a yum-server for educational purpose.

In the RPMS  directory on the yum-server, there are two packages:

test-versioned-app-1.0-0.noarch.rpm
test-simple-app-1.0-0.noarch.rpm

In the updates directory on the yum-server, there are two updates:

test-versioned-app-1.0-1.noarch.rpm
test-simple-app-1.0-1.noarch.rpm

We created the repository using the createrepo command. The repodata
directories and xml files were generated under RPMS and updates.

The problem is that when we ran "yum list" on the client machine, only
the packages in the [updates] group were listed. The packages in the
[base] group would not appear unless the [updates] stanza is disabled.
We also tried using two repo files, still the packages in the [base]
group would not be listed as "Available Packages" unless the repo file
for [updates] is disabled.

How does yum distinguish update packages from base packages? Version
numbers? Timestamps?

When "yum list" is executed on a normal Fedora or CentOS box, both
base packages and update packages are listed. What may cause  the
problem mentioned above?

I would appreciate any hints. Our test.repo file is attached. Thanks very much!


[root at localhost yum.repos.d]#cat test.repo

[base]
name=Base
baseurl=ftp://yum-server/pub/RPMS
enabled=1
gpgcheck=0

[updates]
name=Updates
baseurl=ftp://yum-server/pub/updates
enabled=1
gpgcheck=0



More information about the Yum mailing list