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

CentOS4にnet-snmpパッケージを追加インストール

Last-modified: 2013-08-24 (土) 02:14:21 (3897d)
Top / CentOS4にnet-snmpパッケージを追加インストール

CentOS4にnet-snmpパッケージを追加インストール

諸事情により、net-snmpパッケージを追加インストールしたい状況が発生したので、その作業履歴を徒然と

状況としては、

  • yumが使えない(NW的に)
  • インストールDVDがない

です。

先にまとめ

net-snmpをインスコするために必要なパッケージは以下の通り

  • net-snmp-5.1.2-18.el4.i386.rpm
  • net-snmp-devel-5.1.2-18.el4.i386.rpm
  • net-snmp-libs-5.1.2-18.el4.i386.rpm
  • net-snmp-perl-5.1.2-18.el4.i386.rpm
  • net-snmp-utils-5.1.2-18.el4.i386.rpm

net-snmpが依存するパッケージは以下の通り

  • beecrypt-devel-3.1.0-6.i386.rpm
  • elfutils-devel-0.97.1-5.i386.rpm
  • lm_sensors-2.8.7-2.40.5.i386.rpm

elfutils-devel-0.97.1-5.i386.rpmが依存するパッケージは以下の通り

  • elfutils-libelf-devel-0.97.1-5.i386.rpm

これらを、以下のサイトよりDLして、インストール(net-snmpについてはアップデート)しました。

インストール対象パッケージを調べる。

まずは、yumリポジトリから、インストール対象と思われるパッケージを洗います。

※yumが使えず、インスコDVDも無いため

ちなみに、探す対象のURLは以下の通り

※だいぶ彷徨いましたが、見つけました笑

ここから、net-snmpの名前のつくパッケージをDL

して、コンソールからrpmでインスコ実施!

[root@spuDB01a net-snmp]# ls
libaio-0.3.105-2.i386.rpm             net-snmp-libs-5.1.2-18.el4.i386.rpm  net- snmp-utils-5.1.2-18.el4.i386.rpm
net-snmp-devel-5.1.2-18.el4.i386.rpm  net-snmp-perl-5.1.2-18.el4.i386.rpm
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# rpm -ivh net-snmp-* 
警告: net-snmp-devel-5.1.2-18.el4.i386.rpm: V3 DSA signature: NOKEY, key ID  443e1821
エラー: Failed dependencies:
        beecrypt-devel is needed by net-snmp-devel-5.1.2-18.el4.i386
        elfutils-devel is needed by net-snmp-devel-5.1.2-18.el4.i386
        net-snmp = 5.1.2-18.el4 is needed by net-snmp-devel-5.1.2-18.el4.i386
        libsensors.so.3 is needed by net-snmp-perl-5.1.2-18.el4.i386
        net-snmp = 5.1.2-18.el4 is needed by net-snmp-perl-5.1.2-18.el4.i386
        net-snmp = 5.1.2-18.el4 is needed by net-snmp-utils-5.1.2-18.el4.i386
    Suggested resolutions:
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/beecrypt-devel-3.1.0-6.i386.rpm
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/elfutils-devel-0.97.1-5.i386.rpm
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/lm_sensors-2.8.7-2.40.5.i386.rpm
[root@spuDB01a net-snmp]# 

ほう、まだたりないか~

というわけで、足りないパッケージ

  • beecrypt-devel-3.1.0-6.i386.rpm
  • elfutils-devel-0.97.1-5.i386.rpm
  • lm_sensors-2.8.7-2.40.5.i386.rpm

をDLして、このパッケージからインスコ

[root@spuDB01a net-snmp]# rpm -ivh beecrypt-devel-3.1.0-6.i386.rpm 
警告: beecrypt-devel-3.1.0-6.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:beecrypt-devel         ########################################### [100%]
[root@spuDB01a net-snmp]# rpm -ivh elfutils-devel-0.97.1-5.i386.rpm
警告: elfutils-devel-0.97.1-5.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
エラー: Failed dependencies:
        elfutils-libelf-devel = 0.97.1-5 is needed by elfutils-devel-0.97.1-5.i386
    Suggested resolutions:
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/elfutils-libelf-devel-0.97.1-5.i386.rpm
[root@spuDB01a net-snmp]# 

ほっほー、まだ足りないか~

というわけで、足りないパッケージ

  • elfutils-libelf-devel-0.97.1-5.i386.rpm

をDLして、再開

[root@spuDB01a net-snmp]# rpm -ivh elfutils-libelf-devel-0.97.1-5.i386.rpm 
警告: elfutils-libelf-devel-0.97.1-5.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:elfutils-libelf-devel  ########################################### [100%]
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# rpm -ivh elfutils-devel-0.97.1-5.i386.rpm
警告: elfutils-devel-0.97.1-5.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:elfutils-devel         ########################################### [100%]
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# rpm -ivh lm_sensors-2.8.7-2.40.5.i386.rpm 
警告: lm_sensors-2.8.7-2.40.5.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:lm_sensors             ########################################### [100%]
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# rpm -ivh net-snmp-*
警告: net-snmp-5.1.2-18.el4.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
        file /usr/lib/libnetsnmp.a from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmp.la from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmp.so.5.1.2 from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmpagent.a from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmpagent.la from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmpagent.so.5.1.2 from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmphelpers.a from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmphelpers.la from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmphelpers.so.5.1.2 from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmpmibs.a from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmpmibs.la from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmpmibs.so.5.1.2 from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmptrapd.a from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmptrapd.la from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libnetsnmptrapd.so.5.1.2 from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libsnmp.a from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libsnmp.la from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11
        file /usr/lib/libsnmp.so.5.1.2 from install of net-snmp-libs-5.1.2-18.el4 conflicts with file from package net-snmp-libs-5.1.2-11.EL4.11

なにやら、「net-snmp-libs」がパッケージコンフリクト(競合)を起こしているらしい。

[root@spuDB01a net-snmp]# rpm -qa net-snmp-libs
net-snmp-libs-5.1.2-11.EL4.11

なるほど、既にご在籍なわけですね。

では、インストール(-i)ではなく、アップデート(-U)でrpmでインスコします。

[root@spuDB01a net-snmp]# rpm -Uvh net-snmp-*
警告: net-snmp-5.1.2-18.el4.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:net-snmp-libs          ########################################### [ 20%]
   2:net-snmp               ########################################### [ 40%]
   3:net-snmp-devel         ########################################### [ 60%]
   4:net-snmp-perl          ########################################### [ 80%]
   5:net-snmp-utils         ########################################### [100%]
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# 
[root@spuDB01a net-snmp]# rpm -qa net-snmp
net-snmp-5.1.2-18.el4
[root@spuDB01a net-snmp]# 

やっと成功です。