15 Difference Between Linux Yum and Up2date Command

September 6, 2011 | By
| Reply More

What is YUM?

Yellow dog Updater, Modified (YUM) is an open source and free command line utility for package management. It is only compatible with that Linux operating system is having RPM facility in to it. Basic concept of YUM is to find out the dependencies which are required to install any package. With the help of this utility, we can easily manage multiple machines without manually updating each of them with RPM command. YUM normally uses the packages stored in the root directory called /var/cache/yum/.

What is up2date?

UP2DATE is a command or tool that is used by most common Linux operating systems like Red Hat Enterprise Linux, Fedora Core and CentOS with their package manager. This has got a very good dependency resolution feature. The directory location used by this tool is /etc/sysconfig/rhn/sources. This location is the place from where up2date will search for different packages and then downloads as well as installs newer packages and upgrades our operating system. We can say it is a front end utility to our Red Hat Package Manager.

Comparisons between both the tools.

Comparison: 1

[root@LinuxServer Desktop]# yum update

[root@LinuxServer Desktop]# up2date –u

Both of the above commands checks and updates all the RPMs in your operating system.

Comparison: 2

[root@LinuxServer Desktop]# yum update

[root@LinuxServer Desktop]# up2date –u

The above command checks and updates a specific RPM or package.

Comparison: 3

[root@LinuxServer Desktop]# yum install

[root@LinuxServer Desktop]# up2date –i

Installs the specific package given here as an argument.

Comparison: 4

[root@LinuxServer Desktop]# yum remove

[root@LinuxServer Desktop]# rpm –e

This command removes the specific package with its dependent packages.

Comparison: 5

[root@LinuxServer Desktop]# yum list updates

[root@LinuxServer Desktop]# up2date –l

This command will list all those packages that need to be updated.

Comparison: 6

[root@LinuxServer Desktop]# yum list available

[root@LinuxServer Desktop]# up2date –show-available

This command will list all the available packages from its sources.

Comparison: 7

[root@LinuxServer Desktop]# yum list installed

[root@LinuxServer Desktop]# rpm –qa

This command displays the list of all installed packages in your system.

Comparison: 8

[root@LinuxServer Desktop]# yum groupupdate

[root@LinuxServer Desktop]# up2date –u @

This command updates the packages in a group.

Comparison: 9

[root@LinuxServer Desktop]# yum groupinstall

[root@LinuxServer Desktop]# up2date –i @

This will install the default packages in a group.

Comparison: 10

[root@LinuxServer Desktop]# yum groupremove

[root@LinuxServer Desktop]# Not possible in this command

This will remove all the packages in a group.

Comparison: 11

[root@LinuxServer Desktop]# yum grouplist

[root@LinuxServer Desktop]# up2date –show-groups

This command will list available packages in group.

Comparison: 12

[root@LinuxServer Desktop]# yum install .

[root@LinuxServer Desktop]# up2date –arch=.

e.g. [root@LinuxServer Desktop] # up2date –arch=i386.mysql

This command will install the package based on specific architecture.

Comparison: 13

[root@LinuxServer Desktop]# yum list extras

[root@LinuxServer Desktop]# up2date –show-orphans

This command will show all packages that is not available through some subscribed channels or some repository.

Comparison: 14

[root@LinuxServer Desktop]# yum whatprovides

[root@LinuxServer Desktop]# up2date –whatprovides=

This will list all the packages which satisfy the dependencies. Even, we can also find out what RPM packages provide these files.

Comparison: 15

[root@LinuxServer Desktop]# rhn_register

[root@LinuxServer Desktop]# up2date –register

With the help of this command, we can register our system of Red Hat Network.


Tagged With : ,

Free Linux Ebook to Download

Leave a Reply

All comments are subject to moderation.