Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:yum [2016/01/03 17:54] billdozor [Package Version Locking] |
linux_wiki:yum [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
**Checklist** | **Checklist** | ||
- | * Enterprise Linux (Red Hat based) | + | * Distro(s): Enterprise Linux |
---- | ---- | ||
Line 35: | Line 35: | ||
yum install yum-plugin-versionlock | yum install yum-plugin-versionlock | ||
</ | </ | ||
+ | \\ | ||
Lock httpd package at the current installed version | Lock httpd package at the current installed version | ||
Line 40: | Line 41: | ||
yum versionlock httpd | yum versionlock httpd | ||
</ | </ | ||
+ | \\ | ||
List version locked entries | List version locked entries | ||
Line 45: | Line 47: | ||
yum versionlock list | yum versionlock list | ||
</ | </ | ||
+ | \\ | ||
Remove httpd from being version locked | Remove httpd from being version locked | ||
Line 50: | Line 53: | ||
yum versionlock delete httpd | yum versionlock delete httpd | ||
</ | </ | ||
+ | \\ | ||
Remove all packages from being version locked | Remove all packages from being version locked | ||
Line 60: | Line 64: | ||
====== Package Excludes ====== | ====== Package Excludes ====== | ||
- | TODO | + | 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* | ||
+ | </ | ||
---- | ---- | ||