What is the yum command (Yellowdog Updater Modified) ?

About

yum is a software package manager. It is a tool for installing, updating, and removing packages and their dependencies on RPM-based systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.

yum is wrapper around rpm.

Features include:

  • Support for multiple repositories
  • Simple configuration
  • Dependency calculation
  • Fast operation
  • RPM-consistent behavior
  • Package group support, including multiple-repository groups
  • Simple interface

up2date is now deprecated in favor of yum (Yellowdog Updater Modified). The entire stack of tools which installs and updates software in Red Hat Enterprise Linux 5.2 is now based on yum.

Installation

yum should be already installed but you can install utility command such as the yum-config-manager

yum install yum-utils

Management

For the manipulation of package, see Linux - RPM package (RPM: Red Hat Package Manager)

List installed package

sudo yum list installed

Search packages

sudo yum list searchTerm

Upgrade all package

  • Yum Assume yes
yum -y update
- name: 'Upgrade all packages'
  yum:
    name=*
    state=latest
  when: ansible_os_family == "RedHat" # Centos

Configuration

/etc/yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
http_caching=packages

Repository

See Linux - Package Repository

Whatprovides

Search a shared library

Example:

yum whatprovides 'libXrender.so.1'

Output:

Loaded plugins: ulninfo
libXrender-0.9.8-2.1.el7.i686 : X.Org X11 libXrender runtime library
Repo        : ol7_latest
Matched from:
Provides    : libXrender.so.1



libXrender-0.9.10-1.el7.i686 : X.Org X11 libXrender runtime library
Repo        : ol7_latest
Matched from:
Provides    : libXrender.so.1

Documentation

For more information on yum:

man yum

Reference





Discover More
Card Puncher Data Processing
Code Shipping - (Package|Library|Dependency) Manager

(Package|Library|Dependency) Manager are a framework and distribution system for archive that takes into account dependency between them. Debian's “apt-get” package management utility. apt...
Linux - Package Manager

This is package manager in Linux that manages linux package.
Linux - Package Repository

A Package Repository is where OS package are stored. This repository are used by package manager such as yum to search and install packages With yum Output example: yum-config-manager dnf...
Linux Package Installation
Linux - RPM package (RPM: Red Hat Package Manager)

RPM are packages file that you can install on Linux system. This package format was created by Red Hat and standardized by the LSB. It's widely adopted, including in openSUSE. They are .cpio files...
Obiee 11.1 Internet Explorer 6 Not Supported
OBIEE 11g - Oracle Business Intelligence 11.1 Simple installation steps on Windows and OEL Linux 32 bit

Open the setSOADomainEnv.cmd file, located in your Update the PORT_MEM_ARGS entry as follows: set PORT_MEM_ARGS=-Xms512m -Xmx1024m Save the file and close. ;-) Oracle®...
Linux Installation Optional Package Oracle Validated
Oracle Database - Oracle Validated Configuration RPM for a Linux Installation

The Oracle Validated Configuration RPM can be installed on servers using Red Hat Enterprise Linux or Oracle Enterprise Linux operating systems. It is available since 11.1 from the Unbreakable Linux Network...
Card Puncher Data Processing
Python - Manual Install on a user scope via a RPM package

Download and install a python rpm that is available through one of your repository. Two options: to install repoquery query Install yumdownloader Call it rpm are...
Bash Liste Des Attaques Ovh
Sh - Perf Utility

Perf is the performance counters subsystem in Linux. where: yum Where: command can be: annotate Read perf.data (created by perf record) and display annotated code list List...
Bash Liste Des Attaques Ovh
Sh - Sysstat Package (Sys Monitoring packages)

The sysstat package contains utilities to monitoring system metrics performance and usage activity. Utility Description iostat reports CPU statistics and input/output statistics for devices, partitions...



Share this page:
Follow us:
Task Runner