[CentOS] Using a local mirror?

Wed Nov 28 02:18:09 UTC 2007
Max Hetrick <btmanmeh at verizon.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason Pyeron wrote:
> We have a rsync'ed copy of the centos distro.
> We want to point our local machines at that, what is our next step?

Hi, Jason.

cd /etc/yum.repos.d

I'd make a backup of the original CentOS-Base.repo:

cp CentOS-Base.repo CentOS.Base.repo.org

Open CentOS-Base.repo in a text editor, vim, emacs, whatever.

Comment out all the mirrorlist's.

# mirrorlist=http://mirrorlist.centos.org/blah-blah-blah

Make sure all the baseurl's reflects your internal repo and are not
commented out.

baseurl=http//your_internal_repo/centos/$releasever/os/$basearch/

You should be ok to use yum then, so long as your paths are all good.
This is how I do it, anyways. Other comments or procedures are more than
welcome.

Regards,
Max



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHTM/hHoeeepPau2ERAijzAKCCVjFEcFaCs4c2/UlE3HTELPIAggCgt4dK
upBBCizZY6BRLMU4wBGSa1k=
=Jr+J
-----END PGP SIGNATURE-----