Pages

Monday, April 16, 2012

Setting up Yum repositories

Since I have a Fedora DVD, from which I installed the system, I want to use that as a source for various packages I'm installing. The default repositories are online which means that anything that is to be installed after the initial installation will be downloaded from the Internet.

So, to add the ISO image as a repository source, create a file (i.e. fedora-dvd.repo) in /etc/yum.repos.d/ with the following content:

[dvd]
name=dvd
baseurl=file:///media/Fedora%2016%20x86_64%20DVD/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1

No comments: