yum安装到备用目录 [英] yum install to an alternative directory

查看:191
本文介绍了yum安装到备用目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的Thinkpad T440中安装了Fedora 20(64位),它带有16 GB固态驱动器(SSD)和500 GB硬盘驱动器(HD).我在SSD中设置了/boot(500 MB),/swap(4 GB)和/(〜10 GB),其余设置为HD,以便更快地启动和关闭.但是,在更新系统并为我的工作安装了很多软件包之后,/中只剩下〜2GB.我想将YUM将来的软件包安装到HD的替代目录中,当我执行"yum update"时,/和替代目录中的所有软件包都可以正确更新.我徘徊如何去做.谢谢.

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.

推荐答案

从理论上讲,您可以使用--installroot自变量来实现yum.实际上,我认为这不是一个现实的想法.

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.

正如zerkms所说,该软件包将其文件安装到文件系统层次结构中的各个位置.您真的不能只将这些文件转移到其他地方并使工作正常.

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.

例如,运行yum clean packages会清除下载的软件包,这些软件包用于安装/更新可能在yum缓存目录中保留的软件.

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.

这篇关于yum安装到备用目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆