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
Morgan Read via users wrote:
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
dnf assumes only 1 copy of any package, *unless* you set installonlypkgs in dnf.conf. A snippet from 'man dnf' :
installonlypkgs ... List of provide names of packages that should only ever be installed, never upgraded. Kernels in particular fall into this category. ...
-- Rex
Thanks Rex - I knew there was an answer I hadn't found...
But, I also knew that what I was wanting to do was as per the kernel - so, why isn't there an 'installonlypkgs' line for the kernel in dnf.conf - I would have found what I was after if there was...
If fact, iirc, I believe I looked at 'installonlypkgs' in the man page, noted waht it said about kernels and dismissed that option because there is no line in dnf.conf for the kernel...
My dnf.conf: [main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True exclude=master-pdf-editor-4.3.89-1* excludepkgs=master-pdf-editor-4.3.89-1*
Any comment?
M
On 24/02/2019 3:04 pm, Rex Dieter wrote:
Morgan Read via users wrote:
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
dnf assumes only 1 copy of any package, *unless* you set installonlypkgs in dnf.conf. A snippet from 'man dnf' :
installonlypkgs ... List of provide names of packages that should only ever be installed, never upgraded. Kernels in particular fall into this category. ...
-- Rex _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org 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@lists.fedoraproject.org
On Sun, 3 Mar 2019, Morgan Read wrote:
Thanks Rex - I knew there was an answer I hadn't found...
But, I also knew that what I was wanting to do was as per the kernel - so, why isn't there an 'installonlypkgs' line for the kernel in dnf.conf
- I would have found what I was after if there was...
If fact, iirc, I believe I looked at 'installonlypkgs' in the man page, noted waht it said about kernels and dismissed that option because there is no line in dnf.conf for the kernel...
You may have another problem installing both master-pdf-editor-4.3.89-1.x86_64 and master-pdf-editor-5.3.16_qt5.x86_64 because if they are like most packages they will use the same file locations so only one can be installed at a time. The kernel packages are special in this respect because they install in version specific locations.
Incidentally if you look hard enough in the dnf code you can see that that installonlypkgs is set for the kernel packages by default which is why you can't see it in the configuration files.
Michael Young