3. Yum Upgrades

Table of Contents

YUM is the way we now upgrade or install new modules.
Once the server has been rebooted we need to ensure that all the modules we want are installed and have been upgraded to the latest versions.

To facilitate this we have previous edited /etc/yum.conf and /etc/yum.repos.d/CentOS-Base.repo to force them to install and upgrade from our local copy of Mrepo.
Now we run the following piece of code, either manually or from the post-install.sh script.

Choose the bits you want depending on the server your are building.

export yumver=5.7
export yumver=6.0
export arch=-i386
export arch=-x86_64
export site=192.168.20.254
export site=127.0.0.1
export site=202.174.174.8
export site=202.174.161.33
export site=202.174.172.95

rpm --import http://$site/mrepo/centos$yumver$arch/disc1/RPM-GPG-KEY-CentOS-6
rpm --import http://$site/mrepo/kickstart/RPM-GPG-KEY.dag.txt
I seem to have some issues around these three lines of code not importing.

mkdir /etc/yum.repos.d/archive
mv /etc/yum.repos.d/C* /etc/yum.repos.d/archive/
rm -fr /etc/yum.repos.d/CentOS-ai.repo
/bin/cat << EOF >> /etc/yum.repos.d/CentOS-ai.repo
[dag]
name=Inhouse Access Dag repository
baseurl=http://$site/mrepo/centos$yumver$arch/RPMS.dag

[extras]
name=Inhouse Access Extra repository
baseurl=http://$site/mrepo/centos$yumver$arch/RPMS.extras

#[local]
#name=Inhouse Access Local repository
#baseurl=http://$site/mrepo/centos$yumver$arch/RPMS.local

#[contrib]
#name=Inhouse Access OS repository
#baseurl=http://$site/mrepo/centos$yumver$arch/RPMS.contrib

[os]
name=Inhouse Access OS repository
baseurl=http://$site/mrepo/centos$yumver$arch/RPMS.os

[updates]
name=Inhouse Access Updatesrepository
baseurl=http://$site/mrepo/centos$yumver$arch/RPMS.updates
EOF

Once we have yum set up we can upgrade to the latest release and install other needed modules.

yum -y upgrade

From time to time I have had errors at this stage with yum being unable to download from my server, the most common reason for this is due to mixed repositories. To over come this run the following commands:

yum clean all

yum -y upgrade

Installing KDS and making it the default desktop.

yum groupinstall "X Window System" "KDE (K Desktop Environment)"

Virtualization Server

Settings for a virt server.

Not yet finalised, will happen the next time I build a virt server.

General Server

What you may want to install now varies depending on the kind of server you want to build.
Here are some modules I commonly install:

yum -y install iputils libcap tcpdump lynx libjpeg gettext \
ncompress m4 authconfig automake bison byacc cpp ctags \
glibc-kernheaders glibc-devel ElectricFence flex gdb make patch binutils gcc \
libdbi dovecot krb5-workstation mc emacs shadow-utils cacti net-snmp-utils net-snmp

Only install what you need.

Installing Chrome on Cenot 6.x

From http://www.tejasbarot.com/2011/03/20/howto-installing-google-chrome-on-rhel-6-red-hat-enterprise-linux-6-32bit-64bi/

 

To Install Google Chrome on 32bit Perform Following Steps :-

1) Execute Following Command as a root to setup Google Repository.
wget http://ask4itsolutions.com/RPMs/google-chrome-i386.repo -O /etc/yum.repos.d/google-chrome-i386.repo

2) Now Execute Following Command as a root to Install Google Chrome on RHEL 6  :-
yum -y install google-chrome-stable

As per your Internet connection speed it will be installed, So Wait for Few Minutes until it gets Installed.

3) To Use Google Chrome on RHEL 6, Perform Following :-
Click on Applications -> Internet -> Click on Google Chrome

That’s It. Start Using Google Chrome on Red Hat Enterprise Linux 6.

 

[google-chrome-32bit]
name= Google Chrome for 32bit Users
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub


To Install Google Chrome on x86_64 (64bit) Perform Following Steps :-

1) Execute Following Command as a root to setup Google Repository.
wget http://ask4itsolutions.com/RPMs/google-chrome-64bit.repo -O /etc/yum.repos.d/google-chrome-64bit.repo

2) Now Execute Following Command as a root to Install Google Chrome on RHEL 6  :-
yum -y install google-chrome-stable

As per your Internet connection speed it will be installed, So Wait for Few Minutes until it gets Installed.

3) To Use Google Chrome on RHEL 6, Perform Following :-
Click on Applications -> Internet -> Click on Google Chrome

That’s It for x86_64 ( 64bit). Start Using Google Chrome on Red Hat Enterprise Linux 6.

 

[google-chrome-64bit]
name= Google Chrome for X86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

 

Next Page: Crontabs