dnf didn't exclude and clobbered the package I wanted to keep - what went wrong...?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OMG - GONE!  WHAT THE F!!!

READ ON...  OR, TO CUT A LONG(ISH) STORY SHORT(ER), JUMP STRAIGHT TO THE
BOTTOM...

I wanted to install master-pdf-editor-5.3.16-1.x86_64
Alongside master-pdf-editor-4.3.89-1.x86_64

Looking at the install of master-pdf-editor-4.3.89-1.x86_64 it all
seemed fairly self contained in /opt/masterpdfeditor4 and what was under
/usr all seemed to be suffixed by a '4'.

But, I knew that master-pdf-editor-5.3.16-1.x86_64 was likely to remove
master-pdf-editor-4.3.89-1.x86_64 (past experience).

So, I investigated the respective RPMs - no, scripts included that
looked like they'd remove earlier versions...

So, I ran:
$ rpm -qp --scripts master-pdf-editor-5.3.16_qt5.x86_64.rpm
postinstall scriptlet (using /bin/sh):
#!/bin/sh
set -e
# Automatically added by dh_installmenu
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi

# Automatically added by dh_installmime
if [ -x "`which update-mime-database 2>/dev/null`" ]; then
update-mime-database /usr/share/mime
fi

ln -s /opt/master-pdf-editor-5/masterpdfeditor5 /usr/bin/masterpdfeditor5
postuninstall scriptlet (using /bin/sh):
#!/bin/sh
set -e
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section

rm -f /usr/bin/masterpdfeditor5
$

Which didn't seem to indicate the removal of
master-pdf-editor-4.3.89-1.x86_64.

However, I'm very suspicious...  So, I investigated here:
https://www.systutorials.com/1661/making-dnf-yum-not-update-certain-packages/
And here:
https://dnf.readthedocs.io/en/latest/conf_ref.html
https://dnf.readthedocs.io/en/latest/command_ref.html#
Under 'excludepkgs'
And the man page, under 'excludepkgs'.

And so, wrote:
exclude=master-pdf-editor-4.3.89-1*
excludepkgs=master-pdf-editor-4.3.89-1*
To /etc/dnf/dnf.conf

And then ran 'dnf install ./master-pdf-editor-5.3.16_qt5.x86_64.rpm'

AND WHAT THE FRIGGING HELL HAPPENED??!!!

YUP, YOU GUEST IT master-pdf-editor-4.3.89-1.x86_64 GOT CLOBBERED!!!

So, what the f' do I have to do to prevent
master-pdf-editor-4.3.89-1.x86_64 from getting clobbered when installing
master-pdf-editor-5.3.16_qt5.x86_64.rpm

Thanks all
M
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux