YUM (Yellow dog Updater Modified)
YUM: YUM is a latest package manager that was developed by Duke University to improve the installation of the RPMs on Linux environment. YUM searches numerous repositories for packages and their dependencies on RHN network or local repository. Hence, they may be installed together in an effort to alleviate dependency issues.
Configuration Files:
/etc/yum.conf –Main configuration file for YUM
/etc/yum.repos.d –Default package repository for YUM
/var/log/yum.log –Log file location for YUM
/var/cache/yum/ –Default cache
YUM Commands:
# yum –version [To check the version of the YUM]
3.2.22
Installed: rpm-4.4.2.3-18.el5.i386 at 2012-08-09 21:46
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2009-07-24 0
Committed: Panu Matilainen <pmatilai@redhat.com> at 2009-07-24 22:00
Installed: yum-3.2.22-20.el5.noarch at 2012-08-09 21:46
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2009-07-07 1
Committed: James Antill <jantill@redhat.com> at 2009-07-07 22:00
Installed: yum-metadata-parser-1.1.2-3.el5.i386 at 2012-08-09 21:45
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2009-04-06 1
Committed: James Antill <james.antill@redhat.com> at 2009-04-06 22:00
Installed: yum-rhn-plugin-0.5.4-13.el5.noarch at 2012-08-09 21:47
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2009-08-03 1
Committed: Pradeep Kilambi <pkilambi@redhat.com> at 2009-08-03 22:00
# yum remove zip [To remove zip package, and dependencies as well]
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
–> Running transaction check
—> Package zip.i386 0:2.31-2.el5 set to be erased
–> Processing Dependency: zip for package: esc
–> Running transaction check
—> Package esc.i386 0:1.1.0-9.el5 set to be erased
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
zip i386 2.31-2.el5 installed 295 k
Removing for dependencies:
esc i386 1.1.0-9.el5 installed 1.2 M
Transaction Summary
================================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 2 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : zip 1/2
Erasing : esc 2/2
Removed:
zip.i386 0:2.31-2.el5
Dependency Removed:
esc.i386 0:1.1.0-9.el5
Complete!
# yum install esc-1.1.0-9.el5.i386.rpm [To install zip package, and dependencies as well]
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Examining esc-1.1.0-9.el5.i386.rpm: esc-1.1.0-9.el5.i386
Marking esc-1.1.0-9.el5.i386.rpm to be installed
Resolving Dependencies
–> Running transaction check
—> Package esc.i386 0:1.1.0-9.el5 set to be updated
–> Finished Dependency Resolution
Dependencies Resolved
=========================================================================
Package Arch Version Repository Size
=========================================================================
Installing:
esc i386 1.0-9.el5 /esc-1.1.0-9.el5.i386 1.2 M
=========================================================================
Transaction Summary
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : esc 1/1
Installed:
esc.i386 0:1.1.0-9.el5
Complete!
# yum provides zip [ To display package name for the file]
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
zip-2.31-2.el5.i386 : A file compression and packaging utility compatible with P
Repo : installed
Matched from:
Other : Provides-match: zip
# yum check-update [ for this option, we have to registered with RHN]
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
# yum update zip-2.31-2.el5.i386.rpm [to update the package]
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Update Process
Examining zip-2.31-2.el5.i386.rpm: zip-2.31-2.el5.i386
zip-2.31-2.el5.i386.rpm: does not update installed package.
No Packages marked for Update
# yum search zip [ searches information about package files]
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
================================= Matched: zip =================================
bzip2.i386 : A file compression utility.
bzip2-libs.i386 : Libraries for applications using bzip2
eject.i386 : A program that ejects removable media using software control.
gzip.i386 : The GNU data compression program.
libgsf.i386 : GNOME Structured File library
perl-String-CRC32.i386 : Perl interface for cyclic redundency check generation
unzip.i386 : A utility for unpacking zip files.
zip.i386 : A file compression and packaging utility compatible with PKZIP.
zlib.i386 : The zlib compression and decompression library.
# yum localinstall /media/RHEL_5.4\ i386\ DVD/Server/esc-1.1.0-9.el5.i386.rpm
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining /media/RHEL_5.4 i386 DVD/Server/esc-1.1.0-9.el5.i386.rpm: esc-1.1.0-9.el5.i386
Marking /media/RHEL_5.4 i386 DVD/Server/esc-1.1.0-9.el5.i386.rpm to be installed
Resolving Dependencies
–> Running transaction check
—> Package esc.i386 0:1.1.0-9.el5 set to be updated
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
esc i386 1.1.0-9.el5 /esc-1.1.0-9.el5.i386 1.2 M
Transaction Summary
================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : esc 1/1
Installed:
esc.i386 0:1.1.0-9.el5
Complete
No comments:
Post a Comment