问题
I recently installed Fedora 20 (64 bits) in my Thinkpad T440 which comes with a 16 GB solid state driver (SSD) and a 500 GB hard driver (HD). I set /boot (500 MB), /swap (4 GB), and / (~10 GB) in the SSD, and the rest in HD for faster startup and shutdown. However, after updating the system and installing a lot of packages for my work, there is only ~2GB left in /. I want to install the future packages by YUM into an alternative dir in the HD, and when I do 'yum update', all the packages in both / and the alternative dir can be updated properly. I wander how can I do it. Thanks.
回答1:
In theory you might be able to use the --installroot
argument to yum for this. In practice I don't think that's going to be a realistic idea.
As zerkms said package install their files to various places around the file-system hierarchy. You can't really just shunt those files to other places and have things work.
A more complicated partitioning scheme might have helped here though I'm not sure how much since I don't know that you can move much of where the system packages go to alternate partitions anymore.
You should attempt to find out what is taking up all your space as you may be able to reclaim a good bit of it with some simple clean up.
For example running yum clean packages
will clean up downloaded packages that were used to install/update software that might be left behind in the yum cache directories.
来源:https://stackoverflow.com/questions/27007207/yum-install-to-an-alternative-directory