Copy the folder ‘Packages’ to the linux machine
It can be extracted from the linux ISO file. This Packages folder contain all the required packages.
Run Following Command. I have copied Packages into /root/ location
# createrepo /root/Packages
Go to following directory
# cd /etc/yum.repos.d
# ls
# vim mentor.repo
In Editor
[local]
name=local yum repo
baseurl=file:///root/Packages
enabled=1
gpgcheck=0
Run following command
# yum clean all
# yum list all
Now ready to install packages from Yum
# yum -y install <package_name>
Check list of package in yum
yum list
yum list all
yum list installed