yum is a very powerful tool for installing, updating & removing software in Linux System. yum is a small Python Script and it uses RPM files as base. It means yum is not a replacement of RPM.
Below are easy steps to configure yum tool.
1. First check if yum is installed in your system.
2. yum basically needs RPM Files location in Url Format like
http://
ftp://
file://
In our case we are assuming that we have Linux DVD mounted in /mnt folder. So Url Format will be file:///mnt
You have to create .repo file in /etc/yum.repos.d folder as below. You can create file of any name but make sure that extension should be .repo
# nano /etc/yum.repos.d/mydvd.repo
[MyDVD]
name=Software on Remote DVD
baseurl=file:///mnt
enabled=1
gpgcheck=0
3. Explanation :
[MyDVD]
You have to give some nice name to the Repo Location.
name=Software on Remote DVD
Descriptive name of Repo.
baseurl=file:///mnt
Location of RPM Files in Url Format
enabled=1
Pick up software from thsi location ? 1 = Yes and 0 = No
gpgcheck=0
Do not GPG Signature
4. Save the above file and run following command.
This command will delete old caching and will pick up new repo location.
This command will make sure that you are connected to proper Repo and it also shows number of software available on this location.