centos7指定yum安装软件路径

网上的命令都是垃圾

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

该命令简单解释如下:

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

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

猜你喜欢

转载自www.cnblogs.com/pyyu/p/9814062.html