It is a really bad idea to remove all your repo information. You then will not be able to install any additional packages.
if you deleted all the files in /etc/yum.repos.d as suggested by bartus11 and try to install any package, you will get a message that there are no enabled repos until you recreate at least one repo definition and enable that repo. At a minimum, you will need to re-install the repo files for the particular version of Red Hat that you are on.
Thats what I did to make it unusable. I believe this was the culprit.
Code:
$ sudo wget -P /etc/yum.repos.d/ http://repos.fedorapeople.org/repos/spot/firefox4/fedora-firefox4.repo
--2011-09-12 18:56:06-- http://repos.fedorapeople.org/repos/spot/firefox4/fedora-firefox4.repo
Resolving repos.fedorapeople.org... 85.236.55.7
Connecting to repos.fedorapeople.org|85.236.55.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 208 [text/plain]
Saving to: “/etc/yum.repos.d/fedora-firefox4.repo”
100%[===================================>] 208 --.-K/s in 0s
2011-09-12 18:56:28 (9.66 MB/s) - “/etc/yum.repos.d/fedora-firefox4.repo” saved [208/208]
$ sudo yum install firefox4
Loaded plugins: langpacks, presto, refresh-packagekit
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora-firefox4. Please verify its path and try again
This happened no matter what package I tried to install.
Code:
sudo yum install jre
[sudo] password for bob:
Loaded plugins: langpacks, presto, refresh-packagekit
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora-firefox4. Please verify its path and try again
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)
hi
i am not able to do yum update in centos5
i was not able to use yum at all.i am getting an like this.
#yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Update Process
No Packages marked for Update
please help me what i have missed (6 Replies)
Hi Guys,
I am trying install mysql.i386 with yum... But unfortunately I am getting error as listed below:
# yum install mysql.i386
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
... (2 Replies)
Hi,
One of our Solaris servers was peviously zoned and connected to 2 seperate arrays, one HP and the other EMC. The server is now only connected to the EMC. The sever has x2 single port HBA's.
When running cfgadm I see the following:
root@qwicprod /dev/rdsk]# cfgadm -al
Ap_Id Type... (6 Replies)
What is the difference between these yum provides and whatprovides methods? I know provides and whatprovides give the same results, but different methods of */ and \* give different results. Also whether you put */ and \* in front of the string or behind the string give different results. I have... (0 Replies)
Hi,
working on CentOS 5.7 64 bit. I need to install syslog-ng. First I downloaded syslog-ng RPM. When I install I get many dependencies error messages.
rpm -ivh syslog-ng-3.3.3-1.mga2.x86_64.rpm
warning: syslog-ng-3.3.3-1.mga2.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID... (2 Replies)
Hi All,
Just installed new Redhat server. I am trying to do rhn_register. I get this error message.
Fatal error: The SSL certificate failed verification.
Any one ran into this error. Please let me know.
I do have internet connection-
ping www.google.com
PING... (1 Reply)
Is there a reason why yum provide can't find libquazip? I did this.
yum whatprovides */libquazip
A quick google search told me it was in quazip and libquazip.
RPM resource libquazip.so.1 (1 Reply)
HI,
First I'll use yum check-update to check any updates.
Q1: How can I know that how much space needed to update all packages listed by yum check-update command?
Q2: How can I list kernel related packages?
TIA (2 Replies)
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
mergerepo
mergerepo(1)mergerepo(1)NAME
mergerepo - Merge multiple repositories together
SYNOPSIS
mergerepo --repo repo1 --repo repo2
DESCRIPTION
mergerepo is a program that allows you merge multiple repositories into a single repository while referring to the remote location for all
packages.
OPTIONS -r --repo <url>
Url to a repository to be merged.
-o --outputdir <directory>
Path where merged repository metadata should be written to. If not specified repository metadata will be written to
`pwd`/merged_repo/.
-d --database
Generate sqlite databases of the merged repository metadata.
-a --archlist
Specify a comma-separated list of architectures to use. Defaults to ALL.
--nogroups
Do not merge/include groups metadata in the repository.
--noupdateinfo
Do not merge/include updateinfo metadata in the repository.
EXAMPLES
$ mergerepo --repo=http://myurl.org/repo1 --repo=http://myurl.org/repo2 -d -o /tmp/mymergedrepo
SEE ALSO
createrepo (8)
AUTHORS
Seth Vidal <skvidal@fedoraproject.org>
BUGS
Any bugs which are found should be emailed to the mailing list: rpm-metadata@lists.baseurl.org or filed as tickets at: http://cre-
aterepo.baseurl.org/
Seth Vidal 2008 Oct 21 mergerepo(1)