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
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:
Quote:
Remove the extra / from file://
That's not correct. Actual URI should be like this:
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.
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 ?
This is because yum plugins are enabled. You can check what plugins are installed by this:
You can disable all of the plugins, by editing /etc/yum.conf file:
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
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)
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)
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)
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)
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)
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)
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)
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)
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)