Main Menu

Search

LINUX - YUM COMMAND TO INSTALL PARTICULAR PACKAGE AND ALL ITS DEPENDENCY PACKAGES

Below command can be used on a specific package to install that package and all the dependency packages

yum install <package-name>* 

For e.g. if you want to install syslinux package and all its dependency packages, following command can be used.
 
yum install syslinux* 
 
Below is the snippet 
 
[root@testVM tmp]# yum install syslinux* 
Loaded plugins: security 
Setting up Install Process 
Examining syslinux-4.04-3.el6.x86_64.rpm: syslinux-4.04-3.el6.x86_64 
Marking syslinux-4.04-3.el6.x86_64.rpm to be installed 
Examining syslinux-nonlinux-4.04-3.el6.noarch.rpm: syslinux-nonlinux-4.04-3.el6.noarch 
Marking syslinux-nonlinux-4.04-3.el6.noarch.rpm to be installed 
Resolving Dependencies 
--> Running transaction check 
---> Package syslinux.x86_64 0:4.04-3.el6 will be installed 
---> Package syslinux-nonlinux.noarch 0:4.04-3.el6 will be installed 
--> Finished Dependency Resolution 
 
Dependencies Resolved 
 
================================================================================ 
 Package           Arch   Version    Repository                            Size 
================================================================================ 
Installing: 
 syslinux          x86_64 4.04-3.el6 /syslinux-4.04-3.el6.x86_64          567 k 
 syslinux-nonlinux noarch 4.04-3.el6 /syslinux-nonlinux-4.04-3.el6.noarch 1.6 M 
 
Transaction Summary 
================================================================================ 
Install       2 Package(s) 
 
Total size: 2.2 M 
Installed size: 2.2 M 
Is this ok [y/N]: y 
Downloading Packages: 
Running rpm_check_debug 
Running Transaction Test 
Transaction Test Succeeded 
Running Transaction 
  Installing : syslinux-nonlinux-4.04-3.el6.noarch                          1/2 
  Installing : syslinux-4.04-3.el6.x86_64                                   2/2 
  Verifying  : syslinux-4.04-3.el6.x86_64                                   1/2 
  Verifying  : syslinux-nonlinux-4.04-3.el6.noarch                          2/2 
 
Installed: 
  syslinux.x86_64 0:4.04-3.el6       syslinux-nonlinux.noarch 0:4.04-3.el6 
 
Complete! 
 
 

Products to which Article Applies

All Linux OS’s

Search Keywords:  rpm rpms rpm’s dependencies package installation

Article Author: Tarun Boyella

No comments:

Post a Comment