Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I created repository for RHEL 5.6 . There was already an exiting repository for RHEL5.2 which I deleted.

And i run following commands yum clean all yum clean metadata

then, Yum list all It list all the packages.

But when I type YUM UPDATE. It shows

Setting up Update Process
Setting up repositories
rhel-local                100% |=========================|  951 B    00:0
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.1 MB    00:0
################################################## 3229/3229
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files

And thats all folks. Further there is no response from YUM UPDATE.

Any idea

share|improve this question
    
you could try to check with strace to see if it is actually doing something. –  BitsOfNix May 25 '13 at 15:08

3 Answers 3

You could also rebuilt the RPM database.

yum clean all
rpm --rebuilddb
share|improve this answer
    
Run across this problem before, the above fixed it. –  laebshade May 31 '13 at 4:36

This can typically occur if there is either another yum process already running or the meta data that yum maintains on the system has gotten corrupt.

For the first issue, I usually kill any existing yum processes and then run this command yum-complete-transaction, which should allow yum to clean yup after itself.

For the second issue, I usually have to run a yum clean all to expunge any meta data cruft and packages and then run a yum update as normal.

Occasionally I've also run this command, package-cleanup <options> to clean up different issues with the RPM database:

  • clean up any duplicate packages (Scan for duplicates in the local RPM database and clean out the older versions)

    package-cleanup --cleandupes
    
  • scan for problems (List dependency problems in the local RPM database. If any problems are found it will exit with an exit code of 1)

    package-cleanup --problems
    
  • List orphans. (List installed packages which are not available from currenly configured repositories. This is identical to yum list extras, which may provide better output)

    package-cleanup --orphans
    
share|improve this answer
    
Thanks for the help Actually it I waited for some time for YUM to run. And after 10 mins it started working. I will use your advice on another server and will let your know. –  OmiPenguin Jun 1 '13 at 7:26

I discovered iscsi error messages in /var/log/messages. And then I stopped iscsi and iscid daemons. After that yum completed the update process.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.