Sometimes we may need to save installation packages which are installed by using  yum.

This is useful if we want to reinstall the rpm packages when  internet is not available .


# vi /etc/yum.conf













Now we have all packages saved in /var/cache/yum directory  and we can install all packages including dependencies with the command rpm -ivh *.rpm

# cd /var/cache/yum

#rpm -ivh *.rpm


If any dependencies are missing , we can insert the OS installation disk and type the command ‘ yum localinstall *.rpm’.

#yum localinstall *.rpm


Leave a Reply

Your email address will not be published. Required fields are marked *