Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1.) Check the CentOS mirror sites page for a single site that would be best for a mirror site for youis in your area. Also consider reliability of the company or institution providing the mirror. Do some investigation on speed of the download speeds from the site.

2.) Test the mirror's cache settings for that site are set properly.

For a squid server : localhost
CentOS mirror site : http://mirrors.rit.edu/centos

...

You should verify caching is working by your second build by looking for the string TCP_MEM_HIT in /var/log/squid/access.log.

...

Advanced: Using your download proxy for testing installations

You can also use your

...

download proxy server to install systems faster

...

. To use the proxy, edit /etc/yum.conf and add the setting proxy=http://your-squid-server:3128 to the [main] section.

Next you'll want to edit as many of the repository files as you can to use a fixed location for downloading. To do this, comment out the lines starting with mirrorlist= and uncomment out lines #baseurl. To automate editing of repos files to use base urls instead or mirror lists, this command should work.
sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl/baseurl/g' /etc/yum.repos.d/*.repo

...