“Insufficient space in download directory” error on VirtualBox when using yum in Fedora virtual machine

fedoravirtualboxvirtualizationyum

I just did a fresh installation of Fedora on VirtualBox – gave it 8GB of hard drive space. After installing a handful of packages via yum (and nothing more) I am getting the error:

Insufficient space in download directory

I'm new to VirtualBox and wanted to know if there is something I can do to avoid this. Should I have dedicated more than 8GB to the instance? (BTW, I tried both settings of allocating a static 8GB and allocating an expandable space with an 8GB max)

Best Answer

Here are some options:

  • Delete some packages you aren't using via yum remove. You can get a list of packages via rpm -qa | less.
  • Maybe there are some RPM files you don't need, try df -h then yum clean all then df -h again to see if that cleared up a lot of space.
  • You can probably increase the disc space. This depends on your exact partitioning scheme and whether you're using LVM, so this often is more of an "experts" option. With "gparted" you can do this without much pain, but you'll need to boot into a "gparted" bootable image to do the resize, or you can manually use fsck, pvresize, lvresize, resize2fs, etc... If all of this sounds greek to you, it might be "bighting off more than you can chew".
  • If you don't have much on the virtual system yet, the easy way would be just to re-install with a bigger disc image.
  • If you are trying to install a bunch of packages, try splitting it up into installing them one at a time. You need two copies of things while doing the install, , the downloaded and the installed, so doing it in smaller chunks and doing a yum clean all between them can give you the breathing room you need.
Related Topic