LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-05-2016, 03:26 PM   #1
mustu588
LQ Newbie
 
Registered: Aug 2016
Location: India
Distribution: windows 10
Posts: 2

Rep: Reputation: Disabled
no sure how yum clean all works


Hello,
recently I was trying to upgrade my RHEL 5.7 to 5.9. after importing the certificate, I was trying to run
Code:
yum update --security
It didnt work at the first attempt. Gave me this error:
Code:
[root@etl1001 ~]# yum update --security
Loaded plugins: downloadonly, product-id, rhnplugin, security, subscription-manager, verify
Updating Red Hat repositories.
dt-qa-rhel-x86_64-server-5.9                                        | 1.3 kB     00:00
dt-qa-rhel-x86_64-server-5.9/primary                                | 5.9 MB     00:00
dt-qa-rhel-x86_64-server-5.9                                                   16062/16062
file://var/cache/yum/dt-qa-rhel-x86_64-server-master/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/dt-qa-rhel-x86_64-server-master/repodata/repomd.xml'
Trying other mirror.
dt-qa-rhn-tools-rhel-x86_64-server-5.9                              | 1.1 kB     00:00
dt-qa-rhn-tools-rhel-x86_64-server-5.9/primary                      |  47 kB     00:00
dt-qa-rhn-tools-rhel-x86_64-server-5.9                                             524/524
file://var/cache/yum/dt-qa-rhn-tools-rhel-x86_64-server-master/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/dt-qa-rhn-tools-rhel-x86_64-server-master/repodata/repomd.xml'
Trying other mirror.
file://var/cache/yum/dt-thirdparty-master-x86_64/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/dt-thirdparty-master-x86_64/repodata/repomd.xml'
Trying other mirror.
dt-thirdparty-x86_64-5.9                                            |  871 B     00:00
dt-thirdparty-x86_64-5.9/primary                                    |  38 kB     00:00
dt-thirdparty-x86_64-5.9                                                           166/166
file://var/cache/yum/epel-5-x86_64-master/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/epel-5-x86_64-master/repodata/repomd.xml'
Trying other mirror.
Setting up Update Process
Resolving Dependencies
Limiting packages to security relevant ones
dt-qa-rhel-x86_64-server-5.9/updateinfo                             | 2.2 MB     00:00
file://var/cache/yum/dt-qa-rhel-x86_64-server-master/repodata/updateinfo.xml.gz: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/dt-qa-rhel-x86_64-server-master/repodata/updateinfo.xml.gz'
Trying other mirror.
Error: failure: repodata/updateinfo.xml.gz from dt-qa-rhel-x86_64-server-master: [Errno 256] No more mirrors to try.
I was suggested to run
Code:
yum clean all
and the next thing you know, it worked.
I dont understand how can one tell from the error above that yum needs a clean up?

appreciate it in advance.

Last edited by mustu588; 08-05-2016 at 03:27 PM.
 
Old 08-05-2016, 08:05 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
It clears yum's cached data. https://www.hivelocity.net/kb/how-to...the-yum-cache/
 
1 members found this post helpful.
Old 08-06-2016, 06:03 AM   #3
mustu588
LQ Newbie
 
Registered: Aug 2016
Location: India
Distribution: windows 10
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply @frankbell.

Here's what had happened.

Firstly:
when I went to register the certificate, it failed. since path
Quote:
/var/lib/rpm...
was not found.
I thought it was locked, but my findings revealed that niether the path was locked by another application, nor found a lock file.

Secondly:
It turned out that the mount /var/ had a few errors; had to boot to single user mode, run
Quote:
fsck /var
.
Quote:
/var
had some hidden errors in it even though it was clean.

Thirdly:
then I had to run the
Quote:
yum clean all
.

conclusion:
the errors were complaining about cache. cache lives under /var [like you mentioned]. /var had issues. That's how it got screwed up.

Last edited by mustu588; 08-06-2016 at 06:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Its Secure to Run yum clean dbcache to reduce Disk Space jsaravana87 Linux - Server 1 02-09-2013 03:43 PM
Yum failed after using yum clean all command arunjones Linux - Newbie 3 07-21-2012 03:52 AM
Fedoora 11 (f11): /var full after yum update attempt. Can't clean. JEA Fedora 4 07-16-2009 02:58 AM
how yum works . Ayman.mashal Linux - Software 1 02-08-2006 04:14 AM
Redhat 8 or 9 clean install SB live never works Alinuxnoob Linux - General 1 09-09-2003 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration