Showing posts with label repository. Show all posts
Showing posts with label repository. Show all posts

Monday, September 19, 2011

Create yum repository from Scientific Linux DVD

Create yum repository from Scientific Linux DVD without copying the contents to hard disk

Steps:

1. Create a directory to mount DVD
    mkdir /mnt/dvd

2. Mount the Scientific Linux DVD
    mount /dev/cdrom /mnt/dvd

3. Create yum repo setting file at /etc/yum.repos.d/dvd.repo
    vi  /etc/yum.repos.d/dvd.repo

4. Copy the following contents into dvd.repo
[MyRepo]
name=MyRepo
baseurl=file:///mnt/dvd
enabled=1
gpgcheck=0

5. Run the following command to create yum database
createrepo /mnt/

Note: To run  'createrepo /mnt/' command 'createrepo' package should be installed first.







Powered By Blogger

Followers