1. 程式人生 > >centos7指定yum安裝軟體路徑

centos7指定yum安裝軟體路徑

網上的命令都是垃圾

 

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

該命令簡單解釋如下:

-c /etc/yum.conf                  表示指定yum配置檔案地址

--installroot=/usr/local        表示指定自定義的安裝目錄