Clean dnf history

Otherwise, operations that we perform in %post will show up
in the history of the installed system.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit a6e0b13c5d9da63f7c7d1c15a1a6af103df6c87c)
This commit is contained in:
Andrea Bolognani 2024-04-19 11:03:43 +02:00 committed by David Abdurachmanov
parent 40b7729123
commit 6c0c1cdde5
4 changed files with 12 additions and 0 deletions

View File

@ -512,6 +512,9 @@ rm -f /var/lib/systemd/random-seed
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Start with a clean dnf history
rm -rf /var/lib/dnf/history.*
# go ahead and pre-make the man -k cache (#455968)
/usr/bin/mandb

View File

@ -190,6 +190,9 @@ rm -f /var/lib/systemd/random-seed
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Start with a clean dnf history
rm -rf /var/lib/dnf/history.*
# go ahead and pre-make the man -k cache (#455968)
/usr/bin/mandb

View File

@ -187,6 +187,9 @@ rm -f /var/lib/systemd/random-seed
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Start with a clean dnf history
rm -rf /var/lib/dnf/history.*
# go ahead and pre-make the man -k cache (#455968)
/usr/bin/mandb

View File

@ -183,6 +183,9 @@ rm -f /var/lib/systemd/random-seed
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Start with a clean dnf history
rm -rf /var/lib/dnf/history.*
# go ahead and pre-make the man -k cache (#455968)
/usr/bin/mandb