Bug 1619725

Summary: dnf reinstall doesn't re-run package scritlets (pretrans, post, postrans)
Product: [Fedora] Fedora Reporter: Jonathan Underwood <jonathan.underwood>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dmach, mblaha, mhatina, packaging-team-maint, rdieter, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-21 15:49:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Underwood 2018-08-21 15:11:31 UTC
Description of problem:
I recently managed to delete the alternatives entries created by the java-1.8.0-openjdk-headless package. I figured a dnf reinstall java-1.8.0-openjdk-headless would re-run the post script and recreate the alternatives entries. However, this didn't seem to happen.

I notice someone else has previously observed the same behaviour:

https://ask.fedoraproject.org/en/question/113412/what-exactly-happens-on-dnf-reinstallin-terms-of-scriptlets/

I am not sure if this is a bug or a documentation issue. But right now, dnf doesn't meet (at least mine and one other person's) expectations.

Version-Release number of selected component (if applicable):
$ rpm -qa | grep dnf
dnf-2.7.5-12.fc28.noarch
python3-dnf-plugin-system-upgrade-2.0.5-3.fc28.noarch
python3-dnf-plugins-extras-common-2.0.5-3.fc28.noarch
python3-dnf-2.7.5-12.fc28.noarch
dnf-plugins-core-2.1.5-4.fc28.noarch
python2-dnf-2.7.5-12.fc28.noarch
dnfdaemon-0.3.18-6.fc28.noarch
dnf-yum-2.7.5-12.fc28.noarch
libdnf-0.11.1-3.fc28.x86_64
python3-dnfdaemon-0.3.18-6.fc28.noarch
dnfdaemon-selinux-0.3.18-6.fc28.noarch
dnf-conf-2.7.5-12.fc28.noarch
dnfdragora-1.0.1-10.git20180108.b0e8a66.fc28.noarch
python3-dnf-plugins-core-2.1.5-4.fc28.noarch

Comment 1 Jonathan Underwood 2018-08-21 15:49:31 UTC

*** This bug has been marked as a duplicate of bug 1200302 ***