[Yum] How yum-arch works ?(Was: Some issues/questions regarding maintaining a local yum repository).

Sanjay Arora smailbox at hotpop.com
Wed Jun 30 16:46:03 UTC 2004


On Mon, 2004-06-28 at 22:38, Garrick Staples wrote:
> On Mon, Jun 28, 2004 at 07:20:44PM +0530, Sanjay Arora alleged:
> > My Yum.conf
> > 
> > [main]
> > cachedir=/var/cache/yum
> > debuglevel=10
> > errorlevel=2
> > logfile=/var/log/yum.log
> > pkgpolicy=newest
> > distroverpkg=redhat-release
> > tolerant=1
> > exactarch=1
> 
> Just for fun, set exactarch to 0 and try again.

I am having a problem, where yum is not getting the dependencies present
in one of the directories of the local repository.

Structure...same as dulug.duke mirror, is as:

[base]
redhat/$releasever/$relesearch

	-> Files of base are however, in i386, i586, i686 & noarch directories
which are in redhat/9/ directory
	-> Headers directory is in redhat/9/

[updates]
redhat/updates/$releasever

	-> Files of the updates are in i386,i586, i686 & noarch directories
which are in redhat/updates/9/x86/ directory.
	-> Headers Directory is in redhat/9/

yum-arch commands given are:

yum-arch  /var/ftp/pub/yum-repository/redhat/9/
yum-arch /var/ftp/pub/yum-repository/redhat/updates/9/

To me it seems that due to some structure problem, the header for the
required dependencies added at a later stage (in noarch directory of the
updates), are not being looked at by yum.

My question is:

What exactly does yum-arch do, in what sequence & what directory
locations it uses for the headers directory.

e.g. parse headers of the entire sub-directory tree till x levels
deep...put info in headers.info in headers directory at the directory at
xx location, then copies the old headers in the .oldheaders directory in
the headers directory and then copies headers from xx location to the
headers diectory given in the yum-arch command.

Getting to be too muddled ;-)) I hope someone can understand the above
paragraph.

I have fiddled with exactarch 1/0 but it is not working. My assumption
is that yum is getting headers from some directory that has been created
by the mirroring process and not by my command or it is not parsing the
noarch directory or something similar. I have most probably done some
fiasco in creating my repository or running yum arch on it but I am not
able to find out what!

Hope someone can help me.

With best regards.
Sanjay.







More information about the Yum mailing list