Hello
are those 2 command are equal
dnf update --security
dnf update-minimal --security
and if not could you explain what the difference
thanks for your time and have a nice day
Hello
are those 2 command are equal
dnf update --security
dnf update-minimal --security
and if not could you explain what the difference
thanks for your time and have a nice day
Hi ,
Both commands updates only those packages which have released some security errata.
There is one difference in both
yum update --security
Will update any package that have at least one errata to the latest available version
yum update-minimal --security
Will update any package to the exact version where the last errata is fixed / remediated.
Let take example package A has released security update as A.1 and A.2 and its third update A.3 is have some bug fixed.
With minimal it will be updated to A.2 whereas without minimal it will be udpated to the last available version that is A.3
Hello @linuxlover
thanks for your help
from this page
hope you forgive that my brain still did not make what you said work probably
in the man of dnf
dnf [options] upgrade-minimal
Updates each package to the latest available version that
provides a bugfix, enhancement or a fix for a security
issue (security).
--security
Includes packages that provide a fix for a security issue.
Applicable for the upgrade command.
Upgrade Command
Command: upgrade
Aliases: up
Deprecated aliases: update, upgrade-to, update-to, localupdate
dnf [options] upgrade
Updates each package to the latest version that is both
available and resolvable.
so i guess they should both update to A.2 as A.3 does not have any security updates
cause if it update to A.3 it will mean dnf update --security
same as dnf update
or do you mean if i was currently on version A then using update it will see if there security update for all available version a.1 a.2 a.3 and if it found one it will use the latest version despite that last one has security update
so if i was currently on version a.2 and did both command then both would not do any update am i getting it right now ?
thanks again for your help and have a nice day
No. Both are not same. dnf update will update to last version irrespective what kind of update it is ( bug fix , feature enhancement , security etc )
dnf update --security will update to last version only if there is atleast one security errata has be release for this package.
Yes. if would at A.2 , both security command will not update it to A.3.
Where as simple dnf update will it to A.3
thanks for the help and for your time and have a nice day
sorry i have another question if you do not mind
in the man page it been written that update is deprecated alias so that mean we should not use this alias am i right?
We can use the existing aliases. There will be a problem is if we use deprecated form in scripts (and guides) and continue to use those scripts in future distros that lack the alias. Better start learning new habits now.
thanks for confirming and have a nice day