linux_wiki:yum

This is an old revision of the document!


Yum

General Information

YellowDog Update Manager (yum) .

Checklist

  • Enterprise Linux (Red Hat based)

Kernel Maintenance

View Installed Kernels

rpm -q kernel

Remove Old Kernels

  1. Install yum utils
    yum install yum-utils
  2. Cleanup, set count to how many old kernels you want to remain
    package-cleanup --oldkernels --count=3
  3. Set number of installed kernels as a persistent setting
    vim /etc/yum.conf
     
    installonly_limit=3

Package Version Locking

Lock packages at specific versions to prevent them from being upgraded with “yum update”.

Install the version lock yum plugin

yum install yum-plugin-versionlock

Lock httpd package at the current installed version

yum versionlock httpd

List version locked entries

yum versionlock list

Remove httpd from being version locked

yum versionlock delete httpd

Remove all packages from being version locked

yum versionlock clear

Package Excludes

TODO


  • linux_wiki/yum.1451861698.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)