CentOS: Insufficient space in download directory //var/cache/yum/base/packages Insufficient space in target directory

9,885

Solution 1

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.

Solution 2

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:
9,885

Related videos on Youtube

vinny
Author by

vinny

Updated on September 18, 2022

Comments

  • vinny
    vinny over 1 year

    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 /

  • vinny
    vinny about 12 years
    I used yum clean all. nothing worked.
  • vinny
    vinny about 12 years
    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.
  • Aaron Copley
    Aaron Copley about 12 years
    @vinny, that's really a whole seperate question but you need to determine if you have any unallocated space left on the disk(s).