Always reluctant to try something new when we are comfortable with the tools we currently use, we haven't used yum before. We had a problem with installing the net-snmp-devel package with up2date because of some dependencies. We were able to use yum to quickly install the package we needed along with the dependencies on our CentOS 4 server
root@srv-1 snmp]# yum install net-snmp-devel
Setting up Install Process
Setting up repositories
update 100% ========================= 951 B 00:00
base 100% ========================= 1.1 kB 00:00
addons 100% ========================= 951 B 00:00
extras 100% ========================= 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% ========================= 17 kB 00:00
update : ################################################## 50/50
Added 50 new packages, deleted 0 old in 1.03 seconds
primary.xml.gz 100% ========================= 502 kB 00:02
base : ################################################## 1434/1434
Added 1434 new packages, deleted 0 old in 23.38 seconds
primary.xml.gz 100% ========================= 157 B 00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
primary.xml.gz 100% ========================= 9.3 kB 00:00
extras : ################################################## 33/33
Added 33 new packages, deleted 0 old in 0.52 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for net-snmp-devel to pack into transaction set.
net-snmp-devel-5.1.2-11.E 100% ========================= 47 kB 00:00
---> Package net-snmp-devel.i386 0:5.1.2-11.EL4.6 set to be updated
--> Running transaction check
--> Processing Dependency: beecrypt-devel for package: net-snmp-devel
--> Processing Dependency: elfutils-devel for package: net-snmp-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for beecrypt-devel to pack into transaction set.
beecrypt-devel-3.1.0-6.i3 100% ========================= 47 kB 00:00
---> Package beecrypt-devel.i386 0:3.1.0-6 set to be updated
---> Downloading header for elfutils-devel to pack into transaction set.
elfutils-devel-0.97-5.i38 100% ========================= 6.7 kB 00:00
---> Package elfutils-devel.i386 0:0.97-5 set to be updated
--> Running transaction check
--> Processing Dependency: elfutils-libelf-devel = 0.97-5 for package: elfutils-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for elfutils-libelf-devel to pack into transaction set.
elfutils-libelf-devel-0.9 100% ========================= 6.9 kB 00:00
---> Package elfutils-libelf-devel.i386 0:0.97-5 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
net-snmp-devel i386 5.1.2-11.EL4.6 base 229 k
Installing for dependencies:
beecrypt-devel i386 3.1.0-6 base 358 k
elfutils-devel i386 0.97-5 base 13 k
elfutils-libelf-devel i386 0.97-5 base 50 k
Transaction Summary
=============================================================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 650 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): elfutils-libelf-de 100% ========================= 50 kB 00:00
(2/4): beecrypt-devel-3.1 100% ========================= 358 kB 00:02
(3/4): net-snmp-devel-5.1 100% ========================= 229 kB 00:00
(4/4): elfutils-devel-0.9 100% ========================= 13 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: beecrypt-devel ######################### [1/4]
Installing: elfutils-libelf-devel ######################### [2/4]
Installing: elfutils-devel ######################### [3/4]
Installing: net-snmp-devel ######################### [4/4]
Installed: net-snmp-devel.i386 0:5.1.2-11.EL4.6
Dependency Installed: beecrypt-devel.i386 0:3.1.0-6 elfutils-devel.i386
0:0.97-5 elfutils-libelf-devel.i386 0:0.97-5
Complete!
[root@srv-1 snmp]#
Pretty easy to do.
Categories
- GNU/Linux (20)
- Linux Security (12)
- Ubuntu Tutorials (20)
- Web Browsers (1)
- Windows 2000 (20)
- Windows 2003 (13)
- Windows 7 (8)
- Windows Vista (43)
- Windows XP (54)
Bookmark us
Friday, July 18, 2008
Using Yum To Install Dependencies
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment