Sunday, February 9, 2014

RHEL update

In practice you can just copy from dvd, the folders you need, such as

Server
Cluster

to a location you share through apache such as /var/www/html/RHEL5.10/Server and /var/www/html/RHEL5.10/Cluster

Then use the RHEL5 version of createrepo, present in the base channel, to create the repodata :

createrepo -v /var/www/html/RHEL5.10/Server
createrepo -v /var/www/html/RHEL5.10/Cluster


or change permissions for the directory, if you already configured:

# chown apache /var/www/html/RHEL5.10 -R
# chmod +r /var/www/html/RHEL5.10 -R
# find /var/www/html/RHEL5.10 -type d -exec chmod +rx {} \;


# yum clean all;
# yum repolist all;
# yum update;


-- After update:

[root@hsbcprhel033 log]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.10 (Tikanga)

[root@hsbcprhel033 log]# yum check-update
Loaded plugins: security
Skipping security plugin, no data

[root@hsbcprhel033 log]#


------------------------------------------------------------------------------------------

during "# yum update" you might get messages as below:
attention: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186 
rhel-x86_64-server-5/gpgkey                              | 1.1 kB     00:00      
Public key for device-mapper-multipath-0.4.7-34.el5.x86_64.rpm is not installed

In the same client machine (where you are installing RHEL update)

# rpm --import /etc/pki/rpm-gpg/RPM*
# rpm -qa gpg-pubkey*
# rpm -qi gpg-pubkey-37017186-45761324