diff options
author | Julien Dessaux | 2021-03-11 23:15:31 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-11 23:15:31 +0100 |
commit | 8d4bb3881dbb702f08f830417a24b2b81d1a2678 (patch) | |
tree | 4063c82565aafa5b1291e4128f69f840398fedcc /content/blog/miscellaneous/clean-old-centos-kernels.md | |
parent | Removed empty file (diff) | |
download | www-8d4bb3881dbb702f08f830417a24b2b81d1a2678.tar.gz www-8d4bb3881dbb702f08f830417a24b2b81d1a2678.tar.bz2 www-8d4bb3881dbb702f08f830417a24b2b81d1a2678.zip |
Some more articles reformatting
Diffstat (limited to '')
-rw-r--r-- | content/blog/miscellaneous/clean-old-centos-kernels.md | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/content/blog/miscellaneous/clean-old-centos-kernels.md b/content/blog/miscellaneous/clean-old-centos-kernels.md index eb49269..f8894ec 100644 --- a/content/blog/miscellaneous/clean-old-centos-kernels.md +++ b/content/blog/miscellaneous/clean-old-centos-kernels.md @@ -1,11 +1,18 @@ --- title: "Clean old centos kernels" -linkTitle: "Clean old centos kernels" date: 2016-02-03 -description: > - Clean old centos kernels +description: Clean old centos kernels +tags: + - Centos + - rhel --- +## The problem + +Centos kernels tend to accumulate unless you clean them regularly. + +## The solution + There is a setting in `/etc/yum.conf` that does exactly that : `installonly_limit=`. The value of this setting is the number of older kernels that are kept when a new kernel is installed by yum. If the number of installed kernels becomes greater than this, the oldest one gets removed at the same time a new one is installed. This cleaning can also be done manually with a command that belongs to the yum-utils package : `package-cleanup –oldkernels –count=2` |