Skip to content

How to fix Yum Install Error: Insufficient space in download directory?

1 min read

 

Scenario:

Error : Insufficient space in download directory /var/cache/yum/x86_64/7/epel

[root@admin~]# yum install lshw
Installing:
lshw x86_64 B.02.17-3.el6 base 1053 k
Error Downloading Packages:
lshw-B.02.17-3.el6.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
* free 0
* needed 1053 k

 

This error message gives a hint with stats as ‘free 0’, which means you are running out of disk space. And you can resolve this by:

 

Solution #1:

 

You can resolve this by either deleting unwanted files in the cache folder (/var/cache/) and free the directory.

 


Solution #2:

 

Now, you should try to free up some space under ‘/’ partition.

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

 

Assume, you have enough space on another partition, then you can change "cachedir" directory in yum.conf. 

# vi /etc/yum.conf
[main]
sslverify=0
cachedir=/anotherpartition/yum/cache/

 

 

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Linux server management

hardening, patching, monitoring and automation for Ubuntu, Debian, RHEL and AlmaLinux.

Was this answer helpful?

Still stuck? Open a ticket