[yum] releasever 和 basearch变量

man yum

--releasever


man 5 yum.conf

search the releasever and distroverpkg


cat /etc/yum.conf

distroverpkg=redhat-release


rpm -q --whatprovides redhat-release


$rpm -q --qf "%{version}" -f /etc/redhat-release

7.2
$rpm -q --qf "%{arch}" -f /etc/redhat-release
x86_64
阅读更多
文章标签: yum
个人分类: yum
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭