Insufficient space in download directory

Question: Hi, I was making use of ‘yum‘ command to install ‘lshw‘ package on CentOS virtual machine. Unfortunately, the command also failed with an error message as “lshw-B.02.17-3.el6.x86_64: Inadequate area in download directory /var/cache/yum/x86_64/6/base/packages“. Below is the snapshot of the complete error:

sandy ~># yum install lshwInstalling:lshw x86_64 B.02.17-3.el6 base 253 kError Downloading Packages:lshw-B.02.17-3.el6.x86_64: Insufficient space in download brochure /var/cache/yum/x86_64/6/base/packages* complimentary 0* essential 253 kAny idea would be appreciated? – Sandy

*
*

Solution:

Sandy, the error message provides a hint with stats as ‘totally free 0’, which suggests you are running out of disk space and it demands at least ‘253k’ to install the package.

Check disk room utilizing ‘df -h‘ command.

In case, if you watch an output similar to the one presented listed below, then you need to attempt to complimentary up some room under ‘/’ partition.

/dev/sda1 4.9G 4.8G 0 100% /

Assume, you have sufficient area on another partition, then you can readjust ‘cachedir‘ brochure in yum.conf. See below e.g.,

# vi /etc/yum.conf

sslverify=0cachedir=/anotherpartition/yum/cache/::::::::::::::::::::::::::::That’s it!


Note: However before, you must try to clean up some room in ‘/’ partition