Mount the system CD and mount it to the /mnt directory :
[root@ncapp2 ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
Configure the local yum source :
[root@localhost yum.repos.d]# vi /etc/yum.repo.d/base.repo [Packages] name=Server baseurl = file: /// min gpgcheck=0 [HighAvailability] name=HighAvailability baseurl=file:///mnt/addons/HighAvailability gpgcheck=0
Note: Only the file location containing repodata/ repomd.xml can be used as baseurl. The two baseurls above have this file.
Install:
yum install keepalived.xxx (xxx is the version number, press tab will prompt it)