How To Use YUM To Install RPM Packages with Dependencies?
Sometimes, We can not install rpm packages with “rpm -ivh” command. Because there are some dependencies. We can install rpm packages and also its dependencies with YUM. How to use YUM to install RPM packages with dependencies?
1- Login as root
3- Click “Browse” button.
5- Check “Connectted” and “Connect at power on” check boxes and click OK.
6- You will see CDROM icon on the desktop
7- Right click on the desktop and open terminal window.
8- 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
9- Write following lines to this file and save it.
10- Verify it.
# yum repolist
You can see rpm list.
# yum list
And install rpm package easily with its dependecies.
# yum install kernel-headers
Talip Hakan Öztürk