开发者社区 问答 正文

repo文件的变量是在哪定义的

mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os

$releasever5
$basearch

这两个变量是在哪定义的呢

展开
收起
a123456678 2016-06-13 10:27:59 3418 分享 版权
1 条回答
写回答
取消 提交回答
  • To define a custom variable or to override the value of an existing one, create a file with the same name as the variable (without the “$” sign) in the /etc/yum/vars/ directory, and add the desired value on its first line.

    你需要的可能是这个.

    2019-07-17 19:35:13
    赞同 展开评论
问答地址: