CentOS 7 lsb_release -a 未找到命令的解决办法

centos7输入lsb_release -a未找到命令。

[root@localhost Desktop]# lsb_release -a
bash: lsb_release: command not found...

解决办法:

# yum install -y redhat-lsb
[root@localhost ~]# lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.7.1908 (Core)
Release:	7.7.1908
Codename:	Core
发布了44 篇原创文章 · 获赞 6 · 访问量 6322

猜你喜欢

转载自blog.csdn.net/annita2019/article/details/104271102