[转]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

网上的命令都是垃圾

yum -c /etc/yum.conf --installroot=/opt/all_venv/ --releasever=/  install nginx

该命令简单解释如下:

-c /etc/yum.conf                  表示指定yum配置文件地址

--installroot=/usr/local        表示指定自定义的安装目录

猜你喜欢

转载自www.cnblogs.com/freeliver54/p/10021777.html
今日推荐