Skip to content
Snippets Groups Projects
Commit 4e8bf3f9 authored by Christian Berendt's avatar Christian Berendt
Browse files

Remove files from /var/lib/apt/lists when cleaning up on Ubuntu/Debian

The files inside /var/lib/apt/lists are not needed and should be removed when
cleaning up after a package installation.

TrivialFix

Change-Id: I80e2a11e05739f3dd5bcc3bb8564d8a73ec1ab17
parent 3071d32a
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,6 @@
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] -%}
yum -y install {{ packages | join(' ') }} && yum clean all
{%- elif base_distro in ['ubuntu', 'debian'] -%}
apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean
apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean && rm -rf /var/lib/apt/lists/*
{%- endif %}
{%- endmacro %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment