Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Error Downloading Packages:
redhat-logos - 4.9.99-11.el5.centos.noarch: Insufficient space in download directory
//var/cache/yum/base/packages to download

Output from df -h
/dev/sda2 3.9G 3.7G 0 100% /
/dev/sda11 17G 2.7G 13G 17% /extra
/dev/sda10 996M 44M 901M 5% /logs
/dev/sda9 2.0G 670M 1.2G 36% /applications1

I also used yum clear all but nothing working. Please advice me.

the YUM directory is located in /etc/yum and /etc is mounted on /

share|improve this question
    
Please don't create double posts for the same question, it won't get answered faster that way! (serverfault.com/questions/363146/…) –  Yanick Girouard Feb 24 '12 at 1:26
add comment

2 Answers

up vote 0 down vote accepted

Since / is full and you're in a bit of a pinch, you can move your cache directory to /extra with the cachedir directive in /etc/yum.conf.

Maybe something like:
cachedir = /extra/yum/cache

You'll need to recover space under /, though. It's not going to be happy sitting at 100%. I mean, you won't have any where to install those packages that Yum is having trouble caching.

share|improve this answer
add comment

Look in /var/cache/yum/. That's where the yum transactional and temporary files are stored. Also try yum clean all.

Looking at your setup, it seems as though your / partition is a bit too small for your installation. A quick look at a new CentOS 6 install in my environment shows that about 3GB is necessary for the OS installation files. If you're not separating /usr into its own partition, you may want to triple or quadruple the amount of space you've allocated to /.

share|improve this answer
    
I used yum clean all. nothing worked. –  vinny Feb 23 '12 at 16:41
    
How can I change/increase the size of /. I googled itbut I could not find any convincing answer. The machine is in production environment. I dont want to mess up anything on it. –  vinny Feb 23 '12 at 16:51
    
@vinny, that's really a whole seperate question but you need to determine if you have any unallocated space left on the disk(s). –  Aaron Copley Feb 23 '12 at 16:56
add comment

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.