網頁

2013年5月1日 星期三

CentOS 6.3 --- why choose yum to install RPM package!

One day, I want to use the LVM utility for configuring logical volume because it is easy to set by GUI. Due to it never is pre-installed on CentOS 6.3, I have to download and install this RPM from Internet so that I choose the RPMfind Mirror site for searching the "system-config-lvm” package.
When we open this Web site, directly click Go directly to the RPM database link
ScreenHunter_03continue to click Search link to launch Search the RPM repository on rpmfind.netScreenHunter_06key in “system-config-lvm” word next to click Search… buttonScreenHunter_17Based on the OS platform and version, select the right rpm file as “system-config-lvm-1.1.12-12.el6.noarch.rpm” and then click this link to download it.ScreenHunter_18After finish file downloading, we have to check and verify this package's signature & integrity so that execute the command as rpm –K <package file> or rpm –checksig <package file> ScreenHunter_07ScreenHunter_05By using the command as rpm –qpR <package file>, we can realize whether this package exist any dependency file that never be installed ScreenHunter_04If we force to install this by using the command as rpm –ivh <package file> , we will also find out what the dependencies need to be installed firstly before install this package.ScreenHunter_02Until now, there are eight dependency files as “gnome-python2” “gnome-python2-bonobo” “gnome-python2-canvas” “gnome-python2-gnome” "pygtk2” “pygtk2-libglade” “urw-fonts” “usermode-gtk”
In the next process, we need to install these files and their dependencies step by step.

To return to the RPMfind Web site, click “system-config-lvm-1.1.12-12.el6.noarch.html” based on its OS version.ScreenHunter_08In Requires session, click gnome-python2 linkScreenHunter_09Based on the OS platform and version, select the right rpm file as “gnome-python2-2.28.0-3.el6.x86_64.rpm” and then click this link for downloading it.ScreenHunter_04To realize this package dependency by using the command as rpm –qpR <package file> and we find out this file without dependency file. (lucky!)ScreenHunter_15When we download the second file as “gnome-python2-bonobo-2.28.0-3.el6.x86_64.rpm” and execute the above command for realizing this package dependency, we find out there are more and more files need to be done the same steps.ScreenHunter_16ScreenHunter_17Its procedure has a little crazy for me if continue to do it manually!
So I decide to use yum localinstall <package file> command for installing the related dependencies automatically.ScreenHunter_39
The result will be very quick and smart to complete the installation including the package and its dependency once.ScreenHunter_03

沒有留言:

張貼留言

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.