[转]centos7指定yum安装软件路径
本文转自:https://www.cnblogs.com/pyyu/p/9814062.html
网上的命令都是垃圾
yum -c /etc/yum.conf --installroot=/opt/all_venv/ --releasever=/ install nginx
该命令简单解释如下:
-c /etc/yum.conf 表示指定yum配置文件地址
--installroot=/usr/local 表示指定自定义的安装目录
努力成为一个开发者 个人站点:www.pythonav.cn
posted on 2018-11-26 17:44 freeliver54 阅读(3613) 评论(0) 编辑 收藏 举报