Files
oam/knowledge base/yum.md
2024-05-29 00:52:24 +02:00

1.5 KiB

Yellowdog Updater Modified

Command-line utility for RPM used by Red Hat Linux and derivates.
Replaced by DNF in Fedora.

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Global configuration file at /etc/yum/yum.conf.
Repositories .repo files reside under /etc/yum.repos.d/.
Configuration files use the INI format. Some options in the repository definition override the global settings for YUM.

Usage
# Check for updates.
sudo yum check-update

# List available packages.
sudo yum --showduplicates list available 'gitlab-ee'

# Display information about packages.
sudo yum info 'gitlab-ee'

# Install packages.
sudo yum install 'buildah' 'jq-0.5.6-1.fc24'
sudo yum -y install 'Downloads/tito-0.6.2-1.fc22.noarch.rpm' --setopt='install_weak_deps=False'
sudo yum install 'https://kojipkgs.fedoraproject.org/packages/tito/0.6.0/1.fc22/noarch/tito-0.6.0-1.fc22.noarch.rpm'

# Upgrade packages.
sudo yum update 'gitlab-ee-16.11.3'

# Clear the cache.
sudo yum clean packages
sudo yum clean all

Further readings

Sources