Yum error

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Yum error
# 1  
Old 09-21-2012
Error Yum error

Hi,

I have configure local yum repository in my red hat linux on vmware. Below are the steps i followed

1. mkdir -p /root/install/RPMS
2. Copy all the software/packages RPMS from instillation CD/DVD to /root/install/RPMS directory
3. rpm -ivh createrepo-0.4.11-3.el5.rpm
4. createrepo /root/install/RPMS
5. Create a new file in /etc/yum.repo.d/file.repo
[local repo]
name= OS $release
baseurl=file://root/install/RPMS/
enabled=1
gpgcheck=0
6. Save the file

While trying to install any package using the command yum install mysql
I am getting the below error

[root@localhost RPMS]# yum install nautilus
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data, keys, kmod, list-data, protect-packages, protectbase,
: rhnplugin, security, tmprepo, verify, versionlock
Bad id for repo: local repo, byte = 5
This system is not registered with RHN.
RHN support will be disabled.
Loading mirror speeds from cached hostfile
Setting up Install Process
Nothing to do

Also while trying to perform yum clean all i get below output


[root@localhost RPMS]# yum clean all
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data, keys, kmod, list-data, protect-packages, protectbase,
: rhnplugin, security, tmprepo, verify, versionlock
Bad id for repo: local repo, byte = 5
Cleaning up Everything
Cleaning up list of fastest mirrors


Thanks
Chetan
# 2  
Old 09-22-2012
Remove the blank character after the name=
&
Remove the extra / from file://

Code:
[local repo]
name=OS $release
baseurl=file:/root/install/RPMS/
enabled=1
gpgcheck=0

# 3  
Old 09-22-2012
Well, the error message clearly tells where the issue is. You have to remove the space in the repository ID i.e space between "local" and "repo". It should be one word and should look like this:

Code:
[localrepo]
name=OS $release
baseurl=file:///root/install/RPMS/
enabled=1
gpgcheck=0

Quote:
Remove the extra / from file://
That's not correct. Actual URI should be like this:
Code:
file:///path/to/file

URIs have a specific way of saying things:
The first word says the protocol to be used, e.g. ftp, http, ldap, etc. file in case of local file/dir.
The next part says the name/IP of the server, and should be // in case of local.
After that, share name is used and should be empty in case of not applicable which is the case here.

Hope this helps!
# 4  
Old 09-24-2012
I did the changes but strange to observer that if i am only using file:// it is not working but it works in case of file:/ or file:///. Why? I am confused which one to follow / or ///
And also with each yum command performed below output is generated. Why is it ?

Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data, keys, kmod, list-data, protect-packages, protectbase,
: rhnplugin, security, tmprepo, verify, versionlock
# 5  
Old 09-25-2012
paste command ..........

Last edited by venikathir; 09-25-2012 at 09:59 AM.. Reason: post
# 6  
Old 09-25-2012
Quote:
And also with each yum command performed below output is generated. Why is it ?

Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data, keys, kmod, list-data, protect-packages, protectbase,
: rhnplugin, security, tmprepo, verify, versionlock
This is because yum plugins are enabled. You can check what plugins are installed by this:
Code:
rpm -qa | grep yum-plugin

You can disable all of the plugins, by editing /etc/yum.conf file:
Code:

plugins=0

If you want to disable just a specific plugin, you need to go to /etc/yum/pluginconf.d directory, open the plugin config file which you want to disable and edit it to have plugins=0
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. Fedora

Yum update error

Hello, I issued # yum update and received below error. Any idea? # yum update Loaded plugins: fastestmirror, universal-hooks Setting up Update Process Loading mirror speeds from cached hostfile * cpanel-addons-production-feed: 204.10.37.146 * base: mirrors.oit.uci.edu * extras:... (3 Replies)
Discussion started by: feroccimx
3 Replies

3. Linux

Yum skip-broken error

I'm trying to install mysql-connector-odbc using yum. It gives me this error. Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. ... (2 Replies)
Discussion started by: adi.6194
2 Replies

4. Red Hat

Cant update yum what so ever [Errno 14] HTTP Error 404 - Not Found

Hello!!! I am so frustrated I'm about to snap!!! I cant hear any sound in Firefox or re-install Chrome. Every time I try to do anything with YUM inside my terminal (like update or install) I keep getting this error:failure: repodata/repomd.xml from virtualbox: No more mirrors to try. I... (2 Replies)
Discussion started by: ApacheOmega
2 Replies

5. Red Hat

Yum is not working - certificate expired error

In my RHEL 5.3, i686 server, I am facing the following error, whenever I am using any yum command - "up2date_client.up2dateErrors.SSLCertificateVerifyFailedError: The certificate is expired. Please ensure you have the correct certificate and your system time is correct." Please help (2 Replies)
Discussion started by: atanubanerji
2 Replies

6. Red Hat

Yum client configuration error

Dear concern, I want to configure a yum client node. Yum configuration file (/etc/yum.repos.d/) is given below: # cat server.repo name=rhel6 baseurl=ftp://192.168.225.3/pub/Packages/ enabled=1 gpgcheck=0 We got following error message while executing yum list command. # yum clean... (1 Reply)
Discussion started by: makauser
1 Replies

7. UNIX for Dummies Questions & Answers

Yum gives error : filename does not end in .rpm.

Hi there /root #yum localinstall sg3_utils Loaded plugins: product-id, refresh-packagekit, subscription-manager Updating Red Hat repositories. Setting up Local Package Process Skipping: sg3_utils, filename does not end in .rpm. Nothing to do /root # above is the error /root... (6 Replies)
Discussion started by: heman96
6 Replies

8. Red Hat

yum error

i have install fresh redhat ent 6.1 and i have configure yum server with ftp but am get this error error 14] PYCURL ERROR 9 - "Server denied you to change to the given directory" i have checked every thing (3 Replies)
Discussion started by: drpix
3 Replies

9. Linux

Error YUM after removing openldap

Dear all, I am working on Centos 6 (2.6.32-71.29.1.el6.x86_64). After removing openldap (openldap-2.4.19-15.el6.x86_64), i can not perform command yum (or /usr/bin/yum). *Here is error: # yum search anypackage There was a problem importing one of the Python modules required to run yum.... (1 Reply)
Discussion started by: all4cfa
1 Replies

10. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies
Login or Register to Ask a Question