CentOS
lsb_release: command not found
安裝 CentOS 7.1 用最小安裝,執行 lsb_release 出現錯誤 command not found
用以下指令查找
# yum provides */lsb_release
...
redhat-lsb-4.0-3.el6.centos.i686 : LSB base libraries support for CentOS
Repo : base
Matched from:
Filename : /usr/bin/lsb_release
redhat-lsb-4.0-3.el6.centos.x86_64 : LSB base libraries support for CentOS
Repo : base
Matched from:
Filename : /usr/bin/lsb_release
dkms-2.2.0.3-2.el6.noarch : Dynamic Kernel Module Support Framework
Repo : epel
Matched from:
Filename : /usr/lib/dkms/lsb_release
由以上資訊中
redhat-lsb-4.0-3.el6.centos.i686 : LSB base libraries support for CentOS
得知,該指令在 redhat-lsb-4.0-3.el6.centos.i686 套件中
安裝套件
# yum install redhat-lsb
...
Transaction Summary
==========================================================
Install 106 Package(s)
Total download size: 86 M
Installed size: 246 M
Is this ok [y/N]:
...
沒有留言:
張貼留言