Setting up yum repository
Paul Howarth
paul at city-fan.org
Mon Jul 24 12:10:23 UTC 2006
Mag Gam wrote:
> Paul:
>
> Thanks for the quick reply.
No problem, but please don't top-post on this mailing list.
> Yes, I want to set up local copy of the [core]
> repository.
> I will try this out. I am guessing I have to set the
> file://path/to/directory in yum.conf file?
Not in the yum.conf file, but the /etc/yum.repos.d/fedora-core.repo
file, where you'd comment out any existing baseurl or mirrorlist lines
for the [core] repository, and add:
baseurl=file://path/to/directory
> Also, I have to do yum-update after the change, correct?
Well, a yum update is unlikely to pick anything from the [core] repo
unless it's a new dependency of an already-existing package you have.
It makes sense to do "yum updates" on a regular basis though to keep up
with security and other bug fixes.
> Also, I do not want
> yum to be using fedora's servers to get the packages.
If you configure yum to look only at your local repo, as described
above, it won't look anywhere else.
Bear in mind though that the [updates] and [extras] repos are also
enabled by default and that yum will use the official servers for those
unless you configure it not to do so.
Paul.
More information about the fedora-list
mailing list