These past few days I've been working a bit with Linux CentOS, and although the truth I do not like this fork in Redhat I had to investigate and make a couple of interesting experiments, like a USB drive that booteable arme with the installer for CentOS 5.1 make the facilities more quickly from the USB, but at the end of the day the bottleneck proved updates rpm's with Yum.

Part slower / boring for the installation of systems based on Redhat is the update repositories, as long as install any version of CentOS, Fedora or Redhat I recommend you upgrade the operating system via YUM. To upgrade our system, but we do not need to type:


  [root @ mail01 ~] # yum update 



With this system update Yum begins to download the metadata from the repositories, but unlike Apt, Yum also downloads the headers of each new or updated package.

One way to achieve speed up this process is connected to the Internet through a proxy server, this way we will always have a copy of the packages stored locally in the cache of squid. Another way to accelerate the transfer of a parcel CentOS is through the installation of a repository on the LAN.

But in my case we already have a proxy in the company, so let's see how to configure the proxy to Yum.
Edit the file yum.conf;


  [root @ mail01 ~] # vim / etc / yum.conf 



Inside the file add three lines to the configuration of proxy and the user (if the proxy requires authentication).

file: / etc / yum.conf

[main]
cachedir = / var / cache / yum
keepcache = 1
debuglevel = 2
logfile = / var / log / yum.log
pkgpolicy newest =
distroverpkg = redhat-release
tolerant = 1
exactarch = 1
Obsolete = 1
gpgcheck = 1
plugins = 1
metadata_expire = 1800

proxy = http://proxy.guatewireless.org:3128/
proxy_username = yum
proxy_password = yum
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# In / etc / yum.repos.d

That's it from now on Yum repositories and update its software from entire rpm's via the proxy server.


  [root @ mail01 ~] # yum update 
  Loading "installonlyn plugin 
  Setting up Update Process 
  Setting up repositories 
  base 100% |=========================| 1.1 kB 00:00 
  updates 100% |=========================| 951 B 00:00 
  addons 100% |=========================| 951 B 00:00 
  Extra 100% |=========================| 1.1 kB 00:00 
  Reading repository metadata in from local files 
  primary.xml.gz 100% |=========================| 834 kB 00:22 
  base: ################################################ # # 2400/2400 
  Added 2400 new packages, deleted 0 old in 10.68 seconds 
  primary.xml.gz 100% |=========================| 244 kB 00:10 
  updates: ################################################ # # 473/473 
  Added 473 new packages, deleted 0 old in 3.08 seconds 
  primary.xml.gz 100% |=========================| 157 B 00:00 
  Added 0 new packages, deleted 0 old in 0.01 seconds 
  primary.xml.gz 100% |=========================| 105 kB 00:04 
  Extras: ################################################ # # 369/369 
  Added 369 new packages, deleted 0 old in 1.48 seconds 
  Resolving Dependencies 



YUM this certainly far from being as efficient as Apt, but not to get into trouble installing apt for rpm packages that there is no other use Yum. In the first installation provided the download was quite slow, but the other software updates have been downloaded from the proxy in a matter of minutes.

Incidentally, today I started to tap into the css to put the code on a black background, that is?

Popularity: 3% [?]