CentOS下Yum的$releasever和$basearch的取值

CentOS下Yum源配置文件中如CentOS-Base.repo的$releasever和$basearch的取值

$releasever的值,这个表示当前系统的发行版本,可以通过如下命令查看:

root@vm-xiluhua /etc # rpm -qi centos-release
Name        : centos-release
Version     : 7
Release     : 2.1511.el7.centos.2.10
Architecture: x86_64
Install Date: 2016年01月02日 星期六 15时50分25秒
Group       : System Environment/Base
Size        : 36019
License     : GPLv2
Signature   : RSA/SHA256, 2015年12月09日 星期三 18时01分49秒, Key ID 24c6a8a7f4a80eb5
Source RPM  : centos-release-7-2.1511.el7.centos.2.10.src.rpm
Build Date  : 2015年12月09日 星期三 17时59分15秒
Build Host  : worker1.bsys.centos.org
Relocations : (not relocatable)
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Vendor      : CentOS
Summary     : CentOS Linux release file
Description :
CentOS Linux release files

或

rpm -q --qf %{version} centos-release;echo

rpm -q --qf %{arch} centos-release;echo

 

windows 查看

systeminfo.exe

 

posted @ 2017-03-19 22:25  xiluhua  阅读(5017)  评论(0编辑  收藏  举报