Yum

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to navigation Jump to search

This article is a stub. You can help us by expanding it.

yum is an acronym for Yellowdog Updater Modified. yum command is an interactive, rpm based, package manager for Redhat, Fedora, CentOS and other Linux distributions. yum is similar to other high level package managers like apt-get and smart.

yum Usage

The yum command is used for:

  1. To automatically perform system updates, including dependency analysis and obsolete processing based on "repository" metadata.
  2. To perform installation of new packages.
  3. To removal of old packages.
  4. To perform queries on the installed and/or available packages.

yum and shell scripting

A shell script that instructs yum command to update any packages it finds via cron can be as follows [1]:

#!/bin/bash
YUM=/usr/bin/yum
$YUM -y -R 120 -d 0 -e 0 update yum
$YUM -y -R 10 -e 0 -d 0 update

See also

References

  1. CentOS / RHEL configure yum command for automatic update retrieval and installation