X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=automation%2Fupdate_standalone.py;h=d29afd9a3e200ad6dd86bd1611c9d77259bfebf0;hb=53ec4611ed3caaf34f360a8cabe27dd46e0509a6;hp=f10f470e38759b775f83a42a00c0a5adf8845a18;hpb=85edba54afe6b3850d5e565c80870aa2ad47cf0d;p=lttng-ci.git diff --git a/automation/update_standalone.py b/automation/update_standalone.py index f10f470..d29afd9 100644 --- a/automation/update_standalone.py +++ b/automation/update_standalone.py @@ -25,7 +25,7 @@ JENKINS_URL = 'https://ci.lttng.org' DISTRO_LIST = ['el', 'sles', 'ubuntu'] DEFAULT_DISTRO = 'ubuntu' DISTRO_COMMAND = { - 'el': 'yum update -y && yum clean all', + 'el': 'yum update -y && package-cleanup -y --oldkernels --count=2 && yum clean all', 'sles': 'zypper --non-interactive refresh && zypper --non-interactive patch --auto-agree-with-licenses --with-interactive', 'ubuntu': 'apt-get update && apt-get dist-upgrade -V -y && apt-get clean && apt-get --purge autoremove -y', }