aboutsummaryrefslogtreecommitdiff
path: root/content/en/blog/miscellaneous/clean-old-centos-kernels.md
diff options
context:
space:
mode:
authorJulien Dessaux2020-04-28 17:29:52 +0200
committerJulien Dessaux2020-04-28 17:29:52 +0200
commit6cc9d8c72a56563b6d1a12b8b441dfa9dde345e9 (patch)
tree042852f7a8a18f65c8d5191234c8ed1cb85fd8a4 /content/en/blog/miscellaneous/clean-old-centos-kernels.md
parentInitial import (diff)
downloadwww-6cc9d8c72a56563b6d1a12b8b441dfa9dde345e9.tar.gz
www-6cc9d8c72a56563b6d1a12b8b441dfa9dde345e9.tar.bz2
www-6cc9d8c72a56563b6d1a12b8b441dfa9dde345e9.zip
Long overdue first commit with content
Diffstat (limited to '')
-rw-r--r--content/en/blog/miscellaneous/clean-old-centos-kernels.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/en/blog/miscellaneous/clean-old-centos-kernels.md b/content/en/blog/miscellaneous/clean-old-centos-kernels.md
new file mode 100644
index 0000000..eb49269
--- /dev/null
+++ b/content/en/blog/miscellaneous/clean-old-centos-kernels.md
@@ -0,0 +1,11 @@
+---
+title: "Clean old centos kernels"
+linkTitle: "Clean old centos kernels"
+date: 2016-02-03
+description: >
+ Clean old centos kernels
+---
+
+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`