Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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).
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?
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.