freeliver54

[转]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        表示指定自定义的安装目录

 

分类:

技术点:

相关文章:

  • 2021-12-21
  • 2022-12-23
  • 2022-01-04
  • 2021-12-09
  • 2021-12-05
  • 2021-09-10
  • 2021-11-26
猜你喜欢
  • 2021-12-19
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-09-24
  • 2021-04-21
相关资源
相似解决方案