In this lab, you will gather information about a third-party package, extract files from it, and install it on your serverX system.
Outcomes
A package not provided by a yum repository is installed on the system.
Reset your serverX system.
Download wonderwidgets-1.0-4.x86_64.rpm from http://classroom/pub/materials.
[root@serverX ~]#wget http://classroom/pub/materials/wonderwidgets-1.0-4.x86_64.rpm--2014-02-11 15:58:02-- http://classroom/pub/materials/wonderwidgets-1.0-4.x86_64.rpm Resolving classroom (classroom)... 172.25.0.254 Connecting to classroom (classroom)|172.25.0.254|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5000 (4.9K) [application/x-rpm] Saving to: ‘wonderwidgets-1.0-4.x86_64.rpm’ 100%[======================================>] 5,000 --.-K/s in 0s 2014-02-11 15:58:02 (381 MB/s) - ‘wonderwidgets-1.0-4.x86_64.rpm’ saved [5000/5000]
What files does it contain?
[root@serverX ~]#rpm -q -p wonderwidgets-1.0-4.x86_64.rpm -l/etc/wonderwidgets.conf /usr/bin/wonderwidgets /usr/share/doc/wonderwidgets-1.0 /usr/share/doc/wonderwidgets-1.0/README.txt
What scripts does it contain?
[root@serverX ~]#rpm -q -p wonderwidgets-1.0-4.x86_64.rpm --scripts
How much disk space will it use when installed?
[root@serverX ~]#rpm -q -p wonderwidgets-1.0-4.x86_64.rpm -iName : wonderwidgets Version : 1.0 Release : 4 Architecture: x86_64 Install Date: (not installed) Group : GLS/Applications Size : 4849 License : GPL Signature : (none) Source RPM : wonderwidgets-1.0-4.src.rpm Build Date : Fri 03 Dec 2010 05:42:55 AM EST Build Host : station166.rosemont.lan Relocations : (not relocatable) Vendor : Red Hat, Inc. Summary : Demonstration package for use in GLS training. Description : A demonstration package that installs an executable, and a config file.
Use yum localinstall to install the package.
[root@serverX ~]#yum localinstall wonderwidgets-1.0-4.x86_64.rpmLoaded plugins: langpacks Examining wonderwidgets-1.0-4.x86_64.rpm: wonderwidgets-1.0-4.x86_64 Marking wonderwidgets-1.0-4.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package wonderwidgets.x86_64 0:1.0-4 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: wonderwidgets x86_64 1.0-4 /wonderwidgets-1.0-4.x86_64 4.7 k Transaction Summary ================================================================================ Install 1 Package Total size: 4.7 k Installed size: 4.7 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wonderwidgets-1.0-4.x86_64 1/1 Verifying : wonderwidgets-1.0-4.x86_64 1/1 Installed: wonderwidgets.x86_64 0:1.0-4 Complete!