zamboni
(Stefano)
February 8, 2016, 12:41pm
22
well… english is not my language, but I help everyday people in english… I helped Jim and I’m quite sure I was not unpolite…
moreover, Jim seems grown enough to defend himself.
anyway, as usual, you’re free to think what you want and welcome when you express your thoughts
Jim
February 8, 2016, 1:25pm
23
I had totally missed this answer, where there’s the right information.
Now I have a doubt… the information is in the dnf.conf or somewhere (cause of SME/NS)?
I’m at work and can’t verify by myself, now
giacomo
(Giacomo Sanchietti)
February 8, 2016, 1:45pm
24
The option is inside /etc/yum.conf and it’s called installonly_limit
.
1 Like
Jim
February 9, 2016, 1:42pm
25
Becuse learning is always the best way to improve our knowlege:
1 Like
Jim
February 14, 2016, 12:31pm
26
Did I need to reboot?
Because now I have a bunch of 6 kernel
Jim
February 14, 2016, 7:11pm
27
Finally to clean to system… I had to install yun-utils
# yum install yum-utils
and clean up
# package-cleanup --oldkernels --count=2
1 Like
Nas
(Artem Fedai)
February 15, 2016, 7:24am
28
@Jim you can also make a custom template for yum.conf file in order not to delete old kernels by your own.
Jim
February 15, 2016, 11:07am
29
I’m curious to know why this parameter don’t work…
This e-smith layer… Let’s talk about it
Nas
(Artem Fedai)
February 15, 2016, 11:10am
30
It works!
it Indeed keeps 5 kernels
Jim
February 15, 2016, 11:32am
31
But I put it at 2…
And NS keep 6 Kernels
Jim
Nas
(Artem Fedai)
February 15, 2016, 11:37am
32
@Jim
cat /etc/yum.conf
installonly_limit=5
[root@host1 etc]# ll /boot | grep -c vmli
5
giacomo
(Giacomo Sanchietti)
February 15, 2016, 1:19pm
33
The option doesn’t clean up old kernels on a running system, but it will be used by yum only when a new kernel is installed.
Example:
installonly_limit = 2
you have 5 kernels installed
CentOS releases a new kernel, and you execute yum update
at the end of the process you will have only 2 kernels installed
Jim
February 15, 2016, 1:46pm
34
When I found this parameter, I was thinking exactly as you describe @giacomo …
But the reality is different, to be clear, see the exact timeline:
- I had 5 kernels, and the installonly_limit = 5 ( before I
changed )
- I change installonly_limit = 2 … And waited ( still with 5
kernels )
- Past thuesday or friday, there’s a kernel update… I expected
to see only 2 kernels, but I found 6 kernels.!!! :OMG:
What’s happened?
Now I had two kernel because I made a manual cleanup.
When there’s an update by the CenterSoftware, the parameter installonly_limit = 2 seem to be ignored…
giacomo
(Giacomo Sanchietti)
February 15, 2016, 2:04pm
35
It seems you’re right, from man yum.conf
installonly_limit Number of packages listed in installonlypkgs to keep installed at the same time. Setting to 0 disables this
feature. Default is ’3’. Note that this functionality used to be in the “installonlyn” plugin, where this option was altered via
tokeep. Note that as of version 3.2.24, yum will now look in the yumdb for a installonly attribute on installed packages. If
that attribute is “keep”, then they will never be removed.
Jim
February 15, 2016, 3:59pm
36
What can be do to improve?
-It’s a bug in the softwarecenter?
-A missing feature?
a plugin that not work as expected?
an e-smith surprise (@nas )?
Nas
(Artem Fedai)
February 15, 2016, 4:11pm
37
installonly_limit=2
I’l try to test this
Jim
March 24, 2016, 5:29pm
38
Today, there’s a kernel update…
I setup to have only two kernels…
But it seem that’s wrong yet.
Edit What’s happen?
Jim
March 25, 2016, 1:34am
39
In the yum.comf the installonly_limit=5
There’s something that erase my yum.conf to erame my value.
I would like to know what.
Is there a way to fix this?
giacomo
(Giacomo Sanchietti)
March 25, 2016, 7:57am
40
It’ a template.
To create a template custom:
mkdir -p /etc/e-smith/templates-custom/etc/yum.conf/
cp /etc/e-smith/templates/etc/yum.conf/10base /etc/e-smith/templates-custom/etc/yum.conf/
Edit the file and execute:
expand-template /etc/yum.conf
Jim
March 25, 2016, 1:13pm
41
@giacomo your are miser of information
why don’t you talk about this soon?