How To Use your ISO image as YUM repo?

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.

yum install kernel-headers

Reklam


Bir Cevap Yazın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Connecting to %s

%d blogcu bunu beğendi: