Lsb

-bash:lsb_release:コマンドが見つかりません



Bash Lsb_release Command Not Found



今日、lsb_release -aを使用してcentos7.3システムのシステムバージョンを表示すると、システムバージョン番号に関する情報が期待どおりに表示されませんでしたが、エラーが発生しました。

-bash: lsb_release: command not found

後で確認した後、元のlsbコマンドはデフォルトでインストールされません。このコマンドを使用する場合は、自分でコマンドをインストールして使用する必要があります。



インストール方法:

yum install -y redhat-lsb

心配する必要はありません。自分でインストールできます。約1分でインストールが完了します。インストールが完了すると、システムを再起動せずに使用できます。



lsb_release -a #The following execution results 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.3.1611 (Core) Release: 7.3.1611 Codename: Core