CentOSにlsb_releaseコマンドをインストールする †CentOS6を使用したところ、lsb_releaseコマンドがインストールされていなかったので、 lsb_releaseコマンドはどのパッケージ? †以下のコマンドでlsb_releaseコマンドのパッケージを検索しました。 yum provides */lsb_release 上記コマンドの実行結果は以下の通りです。 [root@centos6 ~]# yum provides */lsb_release 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp base/filelists_db | 5.2 MB 00:23 extras/filelists_db | 30 kB 00:00 updates/filelists_db | 823 kB 00:02 redhat-lsb-core-4.0-7.el6.centos.i686 : LSB base libraries support for CentOS リポジトリー : base 一致 : ファイル名 : /usr/bin/lsb_release redhat-lsb-coreにあることが判明したので、yum installにてredhat-lsb-coreパッケージをインストールします。 redhat-lsb-coreのインストール †以下のコマンドでredhat-lsb-coreをインストールしました。 yum -y install redhat-lsb-core lsb_releaseコマンドの実行 †以下の通り、lsb_releaseコマンドを実行することができました。 [sakura@centos6 ~]$ lsb_release -a LSB Version: :base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.7 (Final) Release: 6.7 Codename: Final |