LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-16-2008, 07:05 AM   #1
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78
Blog Entries: 8

Rep: Reputation: Disabled
Exclamation Unable to install packages from DVD using YUM


I get the following errors; when I try to install emacs
Code:
 
yum install emacs
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 emacs to pack into transaction set.
ftp://192.168.0.128/pub/inst/Server/....4-17.i386.rpm: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: failure: Server/emacs-21.4-17.i386.rpm from Cluster: [Errno 256] No more mirrors to try.
 
Old 08-17-2008, 02:53 AM   #2
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
why not use

yum localinstall <path-to-emacs-RPM-file>
 
Old 08-18-2008, 06:02 AM   #3
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Operating System: RHEL 5.0

Objective : Create a yum repository on a FTP server. Let the server & any other client install packages using the FTP service.

Now I don't want to copy the whole RPM packages from DVD to the /var/ftp/pub directory.
I want the yum repository to access the mounted DVD.

So; I tried out the following steps->

1. mount /dev/cdrom /media
O/P: DVD mounted on /media

2. createrepo -pv -o /var/ftp/pub/. /media/.
 
Old 08-18-2008, 07:01 AM   #4
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
is it not as simple as using automount to mount the CDROM when inserted

and then

create another /etc/yum/repos.d/*.conf file and point set BASEURL to something like file://media/
 
Old 08-18-2008, 07:09 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
See post #5 in http://www.linuxquestions.org/questi...ro-dvd-652904/
 
Old 08-18-2008, 01:28 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Or you can just mount the cdrom, cd into the RPM directory and directly install emacs. You can't run createrepo on a mounted read-only cd.
 
Old 08-19-2008, 08:24 AM   #7
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by billymayday View Post
As per your post; the following steps taken.
1. Added the media.repo file.
Code:
vim /etc/yum.repos.d/media.repo
Code:
[InstallMedia]
name=RedHat Enterprise Linux
baseurl=file:///media/RHEL_5%20i386%20DVD
enabled=1
gpgcheck=0
2. Ran yum install command.
Code:
 
yum install emacs
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
ftp://192.168.0.128/pub/inst/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: ClusterStorage
Note: 192.168.0.128 is my IP address.
 
Old 08-19-2008, 08:29 AM   #8
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Question Dependencies are not automatically resolved.

Quote:
Originally Posted by trickykid View Post
Or you can just mount the cdrom, cd into the RPM directory and directly install emacs. You can't run createrepo on a mounted read-only cd.
Yes. I did try it. But, it cannot resolve the dependencies automatically. While browsing through the Manual page for createrepo command, I came across these words.

Code:
-o --outputdir <url>
              Optional output directory (useful for read only media).
 
Old 08-19-2008, 08:43 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Mr. ameya sathe View Post
Yes. I did try it. But, it cannot resolve the dependencies automatically. While browsing through the Manual page for createrepo command, I came across these words.
It should tell you the dependencies though and you can install those manually as well.

As for the other issue, you're trying to plug-in your IP Address in the yum but it can't change to the correct directory probably due to the path. What is the root directory for you serving out FTP from? Did you even try the local repository as described from billmayday to use the local file system and not ftp?
 
Old 08-19-2008, 05:27 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by Mr. ameya sathe View Post
As per your post; the following steps taken.
1. Added the media.repo file.
Code:
vim /etc/yum.repos.d/media.repo
Code:
[InstallMedia]
name=RedHat Enterprise Linux
baseurl=file:///media/RHEL_5%20i386%20DVD
enabled=1
gpgcheck=0
2. Ran yum install command.
Code:
 
yum install emacs
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
ftp://192.168.0.128/pub/inst/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: ClusterStorage
Note: 192.168.0.128 is my IP address.
Are you sure that's the correct media name? My CentOS for example is CenrOS_5.0_Final
 
Old 08-20-2008, 10:33 AM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by billymayday View Post
Are you sure that's the correct media name? My CentOS for example is CenrOS_5.0_Final
In post #3 the OP stated he is using RHEL5, not CentOS.
 
Old 08-20-2008, 01:29 PM   #12
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Code:
yum install emacs
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
file:///media/RHEL_5%20i386%20DVD/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/media/RHEL_5 i386 DVD/repodata/repomd.xml'
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: InstallMedia
In which directory should I run the createrepo command?
How to enable the client to access these repositories?
 
Old 08-20-2008, 03:49 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by trickykid View Post
In post #3 the OP stated he is using RHEL5, not CentOS.
I realised that, my point was that the disk name suppled looked like a Fedora name (with spaces) whereas the CentOS has undersores, and that th OP needed to check the name.

That was all
 
Old 08-22-2008, 03:18 AM   #14
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
The Disk name supplied, is correct
 
Old 08-22-2008, 03:24 AM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What does

ls "/media/RHEL_5 i386 DVD"

give you?
 
  


Reply

Tags
dvd, ftp, installation, using, yum



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
unable to install vlc using yum command av.dubey Linux - Newbie 13 11-12-2009 10:19 PM
where yum saves downloaded packages . how can i install all of these on other system amolgupta Linux - Software 3 11-22-2007 06:54 AM
Unable to install xorg-x11 via yum guarriman Fedora 2 07-02-2007 07:49 AM
yum unable to detect the installed packages ? gopiindiaever Linux - Software 3 09-18-2006 02:24 AM
How to install packages from DVD with Yum? vlaki22 Linux - Software 1 09-02-2006 08:10 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05: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
Open Source Consulting | Domain Registration