Differences
This shows you the differences between two versions of the page.
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 | ||
- | </ | ||
- | |||
- | **Remove Old Kernels** | ||
- | |||
- | - Install yum utils< | ||
- | - Cleanup, set count to how many old kernels you want to remain< | ||
- | - Set number of installed kernels as a persistent setting< | ||
- | |||
- | 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 | ||
- | <code bash> | ||
- | yum install yum-plugin-versionlock | ||
- | </ | ||
- | \\ | ||
- | |||
- | Lock httpd package at the current installed version | ||
- | <code bash> | ||
- | yum versionlock httpd | ||
- | </ | ||
- | \\ | ||
- | |||
- | List version locked entries | ||
- | <code bash> | ||
- | yum versionlock list | ||
- | </ | ||
- | \\ | ||
- | |||
- | Remove httpd from being version locked | ||
- | <code bash> | ||
- | yum versionlock delete httpd | ||
- | </ | ||
- | \\ | ||
- | |||
- | Remove all packages from being version locked | ||
- | <code bash> | ||
- | yum versionlock clear | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Package Excludes ====== | ||
- | |||
- | Exclude packages from a yum update, temporarily and persistently. | ||
- | |||
- | Exclude one time | ||
- | <code bash> | ||
- | yum update --exclude=kernel* | ||
- | </ | ||
- | \\ | ||
- | |||
- | Exclude persistently | ||
- | <code bash> | ||
- | vim / | ||
- | |||
- | exclude=kernel* httpd* | ||
- | </ | ||
- | |||
- | ---- | ||