Except of course that the packages sudo, systemd, and systemd-udev are
protected and you cannot do "dnf remove" on them even if you are
removing a duplicate :-(
On Sun, 2018-08-05 at 19:23 +0100, Russel Winder wrote:
On Sun, 2018-08-05 at 18:48 +0100, Russel Winder wrote:
>
[…]
> I tried "dnf remove --duplicates" but that downloaded 2.3GB and
> then
> failed to do anything due to dependency failures.
>
> Pragmatically I am not sure can try your suggestion as actually
> there
> are 2242 problem packages not just three. :-(
On the other hand it seems that the output of "dnf check" can be
piped
through "grep 'is a duplicate with'" and awk to select the first
column
which is the name of the package that is being replaced so it can go
into a "xargs dnf remove" assuming dnf can take 2000+ arguments.
I had assumed this is what "dnf remove --duplicates" would do, but it
doesn't.
--
Russel.
===========================================
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road m: +44 7770 465 077
London SW11 1EN, UK w:
www.russel.org.uk