Skip to content

Commit

Permalink
Don't autoremove packages on dnf package uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Sep 17, 2024
1 parent 0529505 commit fd61dc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,12 @@ if rpm -q --quiet "{{{ package }}}" ; then
{{% if SSG_TEST_SUITE_ENV %}}
rpm -e --nodeps "{{{ package }}}"
{{% else %}}
{{{ pkg_manager }}} remove -y "{{{ package }}}"
{{%- if pkg_manager == "dnf" -%}}
dnf remove -y --noautoremove "{{{ package }}}"
{{%- else -%}}
{{{ pkg_manager }}} remove -y "{{{ package }}}"
{{%- endif -%}}

{{% endif %}}
fi
{{%- elif pkg_manager == "apt_get" -%}}
Expand Down

0 comments on commit fd61dc2

Please sign in to comment.