how can i add a local Folder on local Hard Disk as Yum Repository ??
hi frinds ,
i have FC6 and for installing new package with yum , it get this package from internet . i create a Folder in /root/Desktop/CD and copy all files in it . how can i add this folder to yum repository , because i want yum install new package from this location not intarnet . Vary Thanks |
You have to simply add the following entry in /etc/yum.repos.d/fedora-core.repo or create it if you don't have this file on your system:
Code:
[Local-Install] |
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. |
Quote:
|
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. Bill |
All times are GMT -5. The time now is 12:32 PM. |