Re: Yum Problem

David Timms <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
John Pierce wrote:
>> Try this:
>>  just symlink or mount the packages subdir into nfs. packages are fine
>> in nfs, sqlite db files, not as much.
>>
> Ok, symlinking did not work, I did the following for the symlink:
> 
> ln -s /video2/f8/cache /var/cache/yum
> 
> That made an ls /var/cache/yum show me the repo directories just like
> looking at the original /var/cache/yum.
> 
> You lost me though with this "mount the packages subdir into nfs", I have been
> using linux for about 9 years and I learn something new everyday.
> 
> Do you mean to export the cache dir directly and then mount
> ns1:/video2/f8/cache /var/cache/yum or
> something entirely different?

I think I can explain that:
- the structure under /var/cache/yum  contains a folder for each item in 
active .repo
- within each of those folders get the download of the repo's repodata 
directory, including the sqlite cache.
- within the folders a folder called packages contains the downloaded .rpms

So: eg:
- /var/cache/yum/updates/ should be real {since it has the sqlite cache}
- /var/cache/yum/updates/packages can be symlinked to your central storage
- repeat for other repos you want to cache.

DaveT.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.