LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Unable to install packages from DVD using YUM (https://www.linuxquestions.org/questions/linux-enterprise-47/unable-to-install-packages-from-dvd-using-yum-663197/)

Mr. ameya sathe 08-16-2008 07:05 AM

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.


keratos 08-17-2008 02:53 AM

why not use

yum localinstall <path-to-emacs-RPM-file>

Mr. ameya sathe 08-18-2008 06:02 AM

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/.

keratos 08-18-2008 07:01 AM

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/

billymayday 08-18-2008 07:09 AM

See post #5 in http://www.linuxquestions.org/questi...ro-dvd-652904/

trickykid 08-18-2008 01:28 PM

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.

Mr. ameya sathe 08-19-2008 08:24 AM

Quote:

Originally Posted by billymayday (Post 3251449)

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.

Mr. ameya sathe 08-19-2008 08:29 AM

Dependencies are not automatically resolved.
 
Quote:

Originally Posted by trickykid (Post 3251768)
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).


trickykid 08-19-2008 08:43 AM

Quote:

Originally Posted by Mr. ameya sathe (Post 3252581)
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?

billymayday 08-19-2008 05:27 PM

Quote:

Originally Posted by Mr. ameya sathe (Post 3252576)
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

trickykid 08-20-2008 10:33 AM

Quote:

Originally Posted by billymayday (Post 3253138)
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. ;)

Mr. ameya sathe 08-20-2008 01:29 PM

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?

billymayday 08-20-2008 03:49 PM

Quote:

Originally Posted by trickykid (Post 3253816)
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

Mr. ameya sathe 08-22-2008 03:18 AM

The Disk name supplied, is correct

billymayday 08-22-2008 03:24 AM

What does

ls "/media/RHEL_5 i386 DVD"

give you?


All times are GMT -5. The time now is 10:33 AM.