Saturday, August 29, 2009

ADD linux installation CD as a repository

In Lunux it is not always adviceble o insatall alla packages at the time of installation . But proceeding to other repositories may need high band with and hours in inter net.
Use following
And enjoy
check current repository list by

[root@localhost ~]# ll /etc/yum.repos.d/

[root@kasun ~]# ll /etc/yum.repos.d/
total 40

-rw-r--r--. 1 root root 1785 2009-05-12 04:15 fedora-rawhide.repo
-rw-r--r--. 1 root root 1144 2009-05-12 04:15 fedora.repo
-rw-r--r--. 1 root root 1105 2009-05-12 04:15 fedora-updates.repo
-rw-r--r--. 1 root root 1163 2009-05-12 04:15 fedora-updates-testing.repo
-rw-r--r--. 1 root root 625 2009-04-30 17:02 remi.repo
-rw-r--r--. 1 root root 1301 2009-05-17 20:46 rpmfusion-free-rawhide.repo
-rw-r--r--. 1 root root 1202 2009-05-17 20:46 rpmfusion-free.repo
-rw-r--r--. 1 root root 1200 2009-05-17 20:46 rpmfusion-free-updates.repo
-rw-r--r--. 1 root root 1260 2009-05-17 20:46 rpmfusion-free-updates-testing.repo
[root@kasun ~]#

by following you can add CD to list
[root@localhost ~]# cp -pr /etc/yum.repos.d/fedora.repo /etc/yum.repos.d
/fedora-dvd.repo

[root@kasun ~]# ll /etc/yum.repos.d/
total 40
-rw-r--r--. 1 root root 1376 2009-08-29 07:52 fedora-dvd.repo
-rw-r--r--. 1 root root 1785 2009-05-12 04:15 fedora-rawhide.repo
-rw-r--r--. 1 root root 1144 2009-05-12 04:15 fedora.repo
-rw-r--r--. 1 root root 1105 2009-05-12 04:15 fedora-updates.repo
-rw-r--r--. 1 root root 1163 2009-05-12 04:15 fedora-updates-testing.repo
-rw-r--r--. 1 root root 625 2009-04-30 17:02 remi.repo
-rw-r--r--. 1 root root 1301 2009-05-17 20:46 rpmfusion-free-rawhide.repo
-rw-r--r--. 1 root root 1202 2009-05-17 20:46 rpmfusion-free.repo
-rw-r--r--. 1 root root 1200 2009-05-17 20:46 rpmfusion-free-updates.repo
-rw-r--r--. 1 root root 1260 2009-05-17 20:46 rpmfusion-free-updates-testing.repo
[root@kasun ~]#

choose ur favorite editor mine is vim


[root@kasun ~]# vim /etc/yum.repos.d/fedora-dvd.repo

rename the repo as "[fedora-dvd]", and "name=Fedora-dvd" add PATH to the Fedora 11 DVD "baseurl=file:///media
/Fedora%2011%20i386%20DVD/"


And append following

[fedora-dvd]
name=Fedora-dvd $releasever - $basearch
failovermethod=priority
baseurl=file:///media/Fedora%2011%20i386%20DVD/
enabled=1
metadata_expire=7d
gpgcheck=1

No comments:

Post a Comment

Powered By Blogger

yyy

new.html //Insert in body Tag

This is my HTML page.