LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2009, 12:39 AM   #1
dseth
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
how to create a rhel 5 cd/dvd repo


did the following steps
rpm -ihv createrepo-0.4.4-2.fc6.noarch.rpm
mkdir /home/rhel
mount /dev/cdrom /mnt
createrepo -vpo /home/rhel /mnt/Server
cat yum.repos.d/DVD.repo
[DVD REPO]
name=RHEL4 DVD
baseurl=file:///home/rhel/
enabled=1
gpgcheck=1


[root@linux-home yum.repos.d]# yum install expect
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for expect to pack into transaction set.
file:///home/rhel/expect-5.43.0-5.1.i386.rpm: [Errno 5] OSError: [Errno 2] No such file or directory: '/home/rhel/expect-5.43.0-5.1.i386.rpm'
Trying other mirror.
Error: failure: expect-5.43.0-5.1.i386.rpm from DVD REPO: [Errno 256] No more mirrors to try.

what iam doing wrong ?
 
Old 09-21-2009, 11:23 AM   #2
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
Hi dseth

You don't have to do the first step (createrepo -vpo dir1 dir2). just point the baseurl to the dvd-mountpoint:

cat yum.repos.d/DVD.repo
[DVD REPO]
name=RHEL4 DVD
baseurl=file:///mnt/
enabled=1
gpgcheck=1


or copy the DVD to a local filesytem and create the repository there.

if you gunzip the primary.xml.gz file and do:

cat primary.xml |grep location

you will see that all rpm packages are relativ to /home/rhel/ (eg. file1.rpm instead of /mnt/file1.rpm)


I am a bit surprised that you want to use a RHEL4 DVD. just a typo?

cheers
 
Old 09-22-2009, 04:45 AM   #3
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
...depending on your installation media you have to change the path to /mnt/Server/
 
Old 01-14-2010, 10:20 AM   #4
roslyn
LQ Newbie
 
Registered: May 2008
Location: Arizona, US
Distribution: RHEL 3-5
Posts: 2

Rep: Reputation: 0
A quick addition...I am using the DVD from Red Hat for EL5.3 (Workstation and Client).

It mounts automatically under /media/RHEL_5.3 i386 DVD (spaces included).

I didn't rename it when creating the DVD so I had to use baseurl=file:///media/RHEL_5.3%20i386%20DVD/Workstation to get the spaces translated in the URL properly. I made a second .repo file for the Client rpm set.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a bare metal backup of RHEL 5 to a bootable DVD? MeeLee Linux - Newbie 2 09-14-2009 08:19 AM
RHEL 5 own repo psix Linux - Server 5 06-28-2009 12:34 AM
create an offline repo with a distro flavor different of the current one htamayo Debian 1 06-20-2009 11:01 AM
RHEL/CentOS repo structure creedog Linux - Enterprise 9 06-20-2009 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration