Difference Between Linux Yum and Up2date Command

Channel: Linux
Abstract: 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

In this tutorial, I will show you difference differences of Yum command and Up2date command in Linux.  Yellowdog 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. The 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/.

"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.

Yum vs Up2date Command  1) Update all package

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

Firewall Vs Antivirus | Key Differe...

To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video

Firewall Vs Antivirus | Key Differences Between Firewall and Antivirus (2021)
# yum update

# up2date –u
2) Update specific package

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

# yum update <package name>

# up2date –u <package name>
3) Install package

Installs the specific package given here as an argument.

# yum install <package name>

# up2date –i <package name>

Installs the specific package given here as an argument.

4) Remove package

This command removes the specific package with its dependent packages.

# yum remove <package name>

# rpm –e <package name>
5) List package need updates

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

# yum list updates

# up2date –l
6) List available package

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

# yum list available

# up2date –show-available
7 ) List Installed packages

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

# yum list installed

# rpm –qa
8 ) Update package in group

This command updates the packages in a group.

# yum groupupdate

# up2date –u @
9) Install default package in group

This will install the default packages in a group.

# yum groupinstall

# up2date –i @
10) Remove packages in group

This will remove all the packages in a group.

# yum groupremove

# Not possible in this command
11) List packages in group

This command will list available packages in group.

# yum grouplist

# up2date –show-groups
12) Installed specific package based on architecture

This command will install the package based on specific architecture.

# yum install <package>.<arch>

# up2date –arch=.

e.g.  # up2date –arch=i386.mysql

13) Show package not available thru some repository

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

# yum list extras

# up2date –show-orphans
14) List packages which satisfy the dependencies

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

# yum whatprovides

# up2date –whatprovides=
15) Register to Redhat Network

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

# rhn_register

# up2date –register

Let us know if you find more command in the below comment section. Thanks for reading.

Ref From: linoxide
Channels:

Related articles