Re: Readonly Repo - createrepo a folder up.

David Timms <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Gerd Bitzer wrote:
> My local repo is under /etc/yum.repos.d/rhel4/repodata The DVD is
> automounted under /mnt/rhel4 and so the rpm's on the DVD are readonly
> accessible under /mnt/rhel4/RedHat/RPMS.

You need to have two parts:
1. the repo
A folder where you run createrepo.
- all paths that are mentioned in the repodata are relative to the 
folder where you run createrepo, and all rpms that will be accessible 
must be within that folder, or subfolders.
- the repodata folder will always be created within the folder.

2. the repo definition
Tells yum where to download a repo's metadata from.
- you give the path to the folder containing the repodata folder.
- local disk repos need the file:///mnt/whatever.

> How can I deal with this problem, how can I create a repo in one
> directory pointing to the rpm-files in another readonly directory ?
In my experience, I found that you can mount the DVD one folder deeper.
Then createrepo on the folder above. All the paths will be deeper in the 
repodata, but this gets around the DVD being unwritable.
The original DVD metadata wont be used.

Give that a go.

I do it with the dvd.iso file for fedora {mount -o loop ...}

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.