1 | | == Update Centos == |
2 | | |
3 | | Update packages and kernel with the following command (excluding docker): |
4 | | |
5 | | {{{ |
6 | | yum update --exclude=docker* |
7 | | }}} |
8 | | |
9 | | Or to exclude kernel updates: |
10 | | {{{ |
11 | | yum update --exclude=kernel* |
12 | | }}} |
13 | | |
14 | | This can be made permanent by editing /etc/yum.conf as follows: |
15 | | {{{ |
16 | | [main] |
17 | | cachedir=/var/cache/yum/$basearch/$releasever |
18 | | keepcache=0 |
19 | | debuglevel=2 |
20 | | logfile=/var/log/yum.log |
21 | | exclude=kernel* redhat-release* <==== |
22 | | }}} |
23 | | |
24 | | Reference: https://access.redhat.com/solutions/10185 |
25 | | |