Sunday, December 20, 2009

Install / Update Packages Using yum from Locad DVD / Repository / ISO

Install / Update Packages Using yum from Locad DVD / Repository / ISO

For example, you have downloaded a live fedora CD. Now you have a DVD or iso of the DVD or have a local repository. Therefore you can update your system using them. Install or remove packages too.

If you wish to update from DVD then enter the dvd. It should be auto-mounted. Know the mount point. If you don't know how check /media directory there should be a directory named DVD-ROM or the Volume Label of the DVD!

For iso you have to mount it and have to know the mount point. If you don't know how to mount isos follow here.


Let's assume the mount point is /mnt/tmp

Login as root or type su on the terminal. Edit /etc/yum.conf apply the following command.
# gedit /etc/yum.conf

But if you don't have a GUI Desktop Environment use vi editor instead.

Append the following lines in your yum.conf(at the last of the file)
[base]
name=Fedora Core 12 - i386 - Base
baseurl=file:///mnt/tmp
enabled=1
gpgcheck=0

Base url="The mount point of your repository"

Now clean up yum files.

# yum clean all

Now try installing some software packages. For example,
# yum install wireshark-gnome

If you find a conflict with other repos. Try this command instead.
# yum --disablerepo=* --enablerepo=base localinstall somepackage

Use the name of package you want to install instead of somepackage.

No comments:

Post a Comment