Yum is unusable

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Yum is unusable
# 1  
Old 09-12-2011
Yum is unusable

How do I delete all of my repo information and start completely fresh?
# 2  
Old 09-12-2011
Code:
rm -f /etc/yum.repos.d/*
yum clean all

# 3  
Old 09-12-2011
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.

Last edited by fpmurphy; 09-12-2011 at 12:58 PM..
# 4  
Old 09-12-2011
Quote:
Originally Posted by fpmurphy
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

I added my repos back from a fedora live cd.
# 5  
Old 09-22-2011
[server]
name=Red Hat yum server
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


copy this content to /etc/yum.repos.d/server.repothen set the base url then try to install
# 6  
Old 09-23-2011
Quote:
Originally Posted by nithyanandan
[server]
name=Red Hat yum server
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


copy this content to /etc/yum.repos.d/server.repothen set the base url then try to install
I already added my repos back from a fedora live cd.
# 7  
Old 09-23-2011
is it working now?
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. Linux

Need help on YUM

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)
Discussion started by: Sumanthsv
2 Replies

3. UNIX and Linux Applications

yum provides help

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)
Discussion started by: cokedude
1 Replies

4. Red Hat

help with YUM

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)
Discussion started by: samnyc
1 Replies

5. UNIX for Dummies Questions & Answers

Trying to install using YUM

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)
Discussion started by: samnyc
2 Replies

6. UNIX for Advanced & Expert Users

yum provides methods

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)
Discussion started by: cokedude
0 Replies

7. Solaris

Removing Dead Paths And Unusable Path Solaris 9

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)
Discussion started by: jamba1
6 Replies

8. UNIX for Advanced & Expert Users

yum issue

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)
Discussion started by: mahesh_raghu
2 Replies

9. Red Hat

yum problem

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)
Discussion started by: praneel2k
6 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