If your linux server do not have internet access it could be very hard to install some rpms on your operating system.
If you have cdrom and iso image than you can create your own Repo by using your linux iso.
Here is the steps:
- Mount CDROM to /mnt directory
mount /dev/cdrom /mnt
- Go directory /etc/yum.repos.d
cd /etc/yum.repos.d
- Create cd.repo file with VI
vi cd.repo
- Add following lines to cd.repo file.
[cd]
name=CD
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
- Run below commands.
yum repolist
List rpm list.
yum list
Try to install rpm package.
Bir Cevap Yazın