centos7指定yum安装软件路径

网上的命令都是垃圾

 

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

该命令简单解释如下:

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

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

posted @ 2018-10-19 00:28  py鱼  阅读(24140)  评论(1编辑  收藏  举报
点我回主页