rocky 9 中 lsb 命令的安装

 

001、系统

[root@PC1 home]# cat /etc/system-release     ## rocky9
Rocky Linux release 9.3 (Blue Onyx)

 

002、调用lsb命令测试

[root@PC1 home]# lsb_release -a        ## 无法调用
bash: lsb_release: command not found...

 

003、使用yum安装

[root@PC1 home]# yum install redhat-lsb        ## 没有这个包, 不知道为啥
Last metadata expiration check: 3:33:47 ago on Tue 02 Apr 2024 11:29:56 PM EDT.
No match for argument: redhat-lsb
Error: Unable to find a match: redhat-lsb

 

004、下载安装包安装:

下载地址:https://www.rpmfind.net/linux/rpm2html/search.php?query=redhat-lsb(x86-64)

wget -c https://www.rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/r/redhat-lsb-5.0-0.9.20231006git8d00acdc.fc41.x86_64.rpm
rpm -ivh redhat-lsb-5.0-0.9.20231006git8d00acdc.fc41.x86_64.rpm     ##   下载及安装

 

005、调用测试

[root@PC1 test]# lsb_release -a          ## 调用测试
LSB Version:    
Distributor ID:    Rocky
Description:    Rocky Linux release 9.3 (Blue Onyx)
Release:    9.3
Codename:    BlueOnyx

 。

 

posted @ 2024-04-03 15:08  小鲨鱼2018  阅读(1052)  评论(0)    收藏  举报