#navi(../)
* CentOSにlsb_releaseコマンドをインストールする [#v67f4ea6]
CentOS6を使用したところ、lsb_releaseコマンドがインストールされていなかったので、~
パッケージをインストールして対応した。~
以下に対応方法を記します。

#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)

* lsb_releaseコマンドはどのパッケージ? [#f054d19b]
以下のコマンドで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のインストール [#p24c4962]
以下のコマンドでredhat-lsb-coreをインストールしました。~
作業はrootで行いました。 
 yum -y install redhat-lsb-core

* lsb_releaseコマンドの実行 [#zd88f765]
 以下の通り、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

#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS