メディアのマウント
[root@localhost ~]# mount /dev/cdrom /media
パッケージのコピー先を作成
[root@localhost ~]# mkdir -p /var/yum/RHEL6.0
[root@localhost ~]# cd /var/yum/RHEL6.0
ローカルにrpmをコピー(DVDの中身を全部コピー)
[root@localhost RHEL6.0]# cp -Rp /media/* .
リポジトリ定義ファイルを作成
[root@localhost yum.repos.d]# vim /etc/yum.repos.d/dvd.repo
[Server] name=RHEL6 Base baseurl=file:///var/yum/RHEL6.0/Server enabled=1 gpgcheck=0 [HighAvailability] name=RHEL6 HighAvailability baseurl=file:///var/yum/RHEL6.0/HighAvailability enabled=1 gpgcheck=0 [LoadBalancer] name=RHEL6 LoadBalancer baseurl=file:///var/yum/RHEL6.0/LoadBalancer enabled=1 gpgcheck=0 [ResilientStorage] name=RHEL6 ResilientStorage baseurl=file:///var/yum/RHEL6.0/ResilientStorage enabled=1 gpgcheck=0 [ScalableFileSystem] name=RHEL6 ScalableFileSystem baseurl=file:///var/yum/RHEL6.0/ScalableFileSystem enabled=1 gpgcheck=0
[root@localhost ~]# yum clean all
[root@localhost ~]# yum install net-snmp
Loaded plugins: refresh-packagekit, rhnplugin This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package net-snmp.x86_64 1:5.5-27.el6 set to be updated --> Processing Dependency: net-snmp-libs = 1:5.5-27.el6 for package: 1:net-snmp-5.5-27.el6.x86_64 --> Processing Dependency: libnetsnmp.so.20()(64bit) for package: 1:net-snmp-5.5-27.el6.x86_64 --> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: 1:net-snmp-5.5-27.el6.x86_64 --> Processing Dependency: libnetsnmptrapd.so.20()(64bit) for package: 1:net-snmp-5.5-27.el6.x86_64 --> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: 1:net-snmp-5.5-27.el6.x86_64 --> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: 1:net-snmp-5.5-27.el6.x86_64 --> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-27.el6.x86_64 --> Running transaction check ---> Package lm_sensors-libs.x86_64 0:3.1.1-10.el6 set to be updated ---> Package net-snmp-libs.x86_64 1:5.5-27.el6 set to be updated --> Finished Dependency Resolution Dependencies Resolved ========================================================================================== Package Arch Version Repository Size ========================================================================================== Installing: net-snmp x86_64 1:5.5-27.el6 Server 297 k Installing for dependencies: lm_sensors-libs x86_64 3.1.1-10.el6 Server 37 k net-snmp-libs x86_64 1:5.5-27.el6 Server 1.5 M Transaction Summary ========================================================================================== Install 3 Package(s) Upgrade 0 Package(s) Total download size: 1.9 M Installed size: 6.3 M Is this ok [y/N]: y Downloading Packages: ------------------------------------------------------------------------------------------ Total 29 MB/s | 1.9 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : lm_sensors-libs-3.1.1-10.el6.x86_64 1/3 Installing : 1:net-snmp-libs-5.5-27.el6.x86_64 2/3 Installing : 1:net-snmp-5.5-27.el6.x86_64 3/3 Installed: net-snmp.x86_64 1:5.5-27.el6 Dependency Installed: lm_sensors-libs.x86_64 0:3.1.1-10.el6 net-snmp-libs.x86_64 1:5.5-27.el6 Complete!
0 件のコメント:
コメントを投稿