a. 'rpm --import
###YUM###
Features:
1. Package management
2. Auto-dependency resolution
3. Ability to specify multiple package sources
Tasks:
1. Mirror 'Packages' directory on local system
a. 'lftp http://192.168.75.101/LinuxCBT/EL-6/Misc/RHEL6/Packages/'
b. 'mirror -v'
2. Run 'createrepo' against: '/var/www/html/RHEL6' - creates sub-directory: 'repodata' and various DB files to serve packages to 'yum' clients
a. Confirm that 'createrepo' RPM is installed
b. 'createrepo /var/www/html/RHEL6' - queries ALL 2679 packages and generates a SQLlite DB and ancillary files beneath: 'repodata' dir
3. Setup first 'yum' client: localhost
a. '/etc/yum.repos.d/linuxcbtserv2.repo'
'[linuxcbtserv2]
name=linuxcbtserv2
baseurl=http://192.168.75.21/RHEL6 '
4. Search & Install packages:
a. 'rpm -e dos2unix unix2dos' - removes both packages
b. 'yum search unix2dos' - searches for package
c. 'yum info unix2dos' - returns/dumps/enumerates package metadata
d. 'yum install unix2dos' - installs the package once
e. 'yum reinstall unix2dos' - reinstalls package. i.e. '--replacepkgs' with 'rpm'
f. 'yum -y reinstall unix2dos' - assumes yes when prompted
g. 'yum history' - returns usage history. i.e. BASH Shell history
h. 'yum -y erase unix2dos dos2unix' - assumes yes and removes both packages
i. 'yum deplist lftp' - dependencies and their providers are returned
j. 'yum localinstall dos2unix-3.1-37.el6.i686.rpm' - Note: The entire file name is indicated
5. Define: 'linuxcbtserv1' as a 'yum' client of 'linuxcbtserv2
6. Define: 'linuxcbtserv1' as a 'yum' server
a. 'lftp http://192.168.75.101/LinuxCBT/EL-6/Misc/RHEL6/Packages/'
b. 'mirror -v'
c. Confirm that 'createrepo' RPM is installed
d. 'createrepo /var/www/html/RHEL6' - queries ALL 2679 packages and generates a SQLlite DB and ancillary files beneath: 'repodata' dir
7. Define: 'linuxcbtserv2' as a 'yum' client of 'linuxcbtserv1
Note: This configuration will provide YUM server redundancy via: 2-repo files per 'yum' client
'[linuxcbtserv1]
name=linuxcbtserv1
baseurl=http://192.168.75.20/RHEL6 '
8. Test YUM redundancy by enabling/disabling HTTPD(Apache) on both systems and installing/uninstalling packages