linux_wiki:yum

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:yum [2016/01/03 18:01]
billdozor [Package Excludes]
linux_wiki:yum [2019/05/25 23:50]
Line 1: Line 1:
-====== Yum ====== 
- 
-**General Information** 
- 
-YellowDog Update Manager (yum) .  
- 
-**Checklist** 
-  * Enterprise Linux (Red Hat based) 
- 
----- 
- 
-====== Kernel Maintenance ====== 
- 
-View Installed Kernels 
-<code bash> 
-rpm -q kernel 
-</code> 
- 
-**Remove Old Kernels** 
- 
-  - Install yum utils<code bash>yum install yum-utils</code> 
-  - Cleanup, set count to how many old kernels you want to remain<code bash>package-cleanup --oldkernels --count=3</code> 
-  - Set number of installed kernels as a persistent setting<code bash>vim /etc/yum.conf 
- 
-installonly_limit=3</code> 
- 
----- 
- 
-====== Package Version Locking ====== 
- 
-Lock packages at specific versions to prevent them from being upgraded with "yum update". 
- 
-Install the version lock yum plugin 
-<code bash> 
-yum install yum-plugin-versionlock 
-</code> 
-\\ 
- 
-Lock httpd package at the current installed version 
-<code bash> 
-yum versionlock httpd 
-</code> 
-\\ 
- 
-List version locked entries 
-<code bash> 
-yum versionlock list 
-</code> 
-\\ 
- 
-Remove httpd from being version locked 
-<code bash> 
-yum versionlock delete httpd 
-</code> 
-\\ 
- 
-Remove all packages from being version locked 
-<code bash> 
-yum versionlock clear 
-</code> 
- 
----- 
- 
-====== Package Excludes ====== 
- 
-Exclude packages from a yum update, temporarily and persistently. 
- 
-Exclude one time 
-<code bash> 
-yum update --exclude=kernel* 
-</code> 
-\\ 
- 
-Exclude persistently 
-<code bash> 
-vim /etc/yum.conf 
- 
-exclude=kernel* httpd* 
-</code> 
- 
----- 
  
  • linux_wiki/yum.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)