how can i add a local Folder on local Hard Disk as Yum Repository ??
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Think about rsync as well for keeping it up to date.
I do similar due to having 3 machines running fedora, it consumes less bandwidth to rsync an update mirror, than for every machine to update on its own. The downside is the amount of space required (currently about 10GB on my ftp server.
Think about rsync as well for keeping it up to date.
I do similar due to having 3 machines running fedora, it consumes less bandwidth to rsync an update mirror, than for every machine to update on its own. The downside is the amount of space required (currently about 10GB on my ftp server.
Or,you could use try using nfs to mount your /var/cache/yum directory to your other machines. That's what I do at home with my two fedora boxes. One will be the main server and I update that one first. After that one is done, the other machine does not have to download any files since it's already located in the server and I have mounted the yum directory on the second machine. Works well. I have never tried out rsync though. That is also a good way to do things.
I agree with what the others have said, but also recommend checking out the createrepo command/package. It will create the repo metadata based on the rpms in the local directory. Placing this repository under /root is probably not the best idea. My preference would be to place it under /usr/local.
For example someone may not have access to the internet and want to copy all the RPMS from the installation CDs into a directory. Once that is completed you would follow up with createrepo and then adjust your configuration file under /etc/yum.repos.d. Creating the metadata and a cache will decrease your processing time on subsequent runs. It will be very easy to use yum to add packages rather than going through the CDs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.