Re: Readonly Repo - createrepo a folder up.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux