09-21-2012
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
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Linux
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
3. Red Hat
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
4. UNIX for Dummies Questions & Answers
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
5. Red Hat
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
6. Red Hat
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
7. Red Hat
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
8. Linux
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
9. Fedora
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
10. UNIX for Beginners Questions & Answers
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
LEARN ABOUT CENTOS
reposync
reposync(1) reposync(1)
NAME
reposync - synchronize yum repositories to a local directory
SYNOPSIS
reposync [options]
DESCRIPTION
reposync is used to synchronize a remote yum repository to a local directory, using yum to retrieve the packages.
OPTIONS
-h, --help
Display a help message, and then quit.
-c CONFIG, --config=CONFIG
Config file to use (defaults to /etc/yum.conf).
-a ARCH, --arch=ARCH
Act as if running the specified arch (default: current arch, note: does not override $releasever. x86_64 is a superset for i*86.).
--source
Also download .src.rpm files.
-r REPOID, --repoid=REPOID
Specify repo ids to query, can be specified multiple times (default is all enabled).
-t, --tempcache
Use a temp dir for storing/accessing yum-cache.
-p DESTDIR, --download_path=DESTDIR
Path to download packages to: defaults to current directory.
-g, --gpgcheck
Remove packages that fail GPG signature checking after downloading. exit status is '1' if at least one package was removed.
-u, --urls
Just list urls of what would be downloaded, don't download.
-l, --plugins
Enable yum plugin support.
-n, --newest-only
Download only newest packages per-repo.
-q, --quiet
Output as little information as possible.
EXAMPLES
Sync all packages from the 'updates' repo to the current directory:
reposync --repoid=updates
Sync only the newest packages from the 'updates' repo to the current directory:
reposync -n --repoid=updates
Sync packages from the 'updates' and 'extras' repos to the current directory:
reposync --repoid=updates --repoid=extras
Sync all packages from the 'updates' repo to the repos directory:
reposync -p repos --repoid=updates
Sync all packages from the 'updates' repo to the repos directory excluding x86_64 arch. Edit /etc/yum.conf adding option exclude=*.x86_64.
Then:
reposync -p repos --repoid=updates
FILES
reposync uses the yum libraries for retrieving information and packages. If no configuration file is specified, the default yum configura-
tion will be used.
/etc/yum.conf
/etc/yum/repos.d/
SEE ALSO
yum.conf (5)
http://yum.baseurl.org/
AUTHORS
See the Authors file included with this program.
BUGS
There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if
unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com
for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs.
27 April 2007 reposync(1)