Bug 31382 - urpme --auto-orphans wants to uninstall too much
Summary: urpme --auto-orphans wants to uninstall too much
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High critical
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA9TOO
Keywords:
Depends on:
Blocks: 31127
  Show dependency treegraph
 
Reported: 2023-01-08 19:29 CET by Elmar Stellnberger
Modified: 2023-10-03 13:23 CEST (History)
4 users (show)

See Also:
Source RPM: urpmi-8.128-1.mga9.src.rpm
CVE:
Status comment:


Attachments
installed-through-deps.list (4.10 KB, text/plain)
2023-01-08 19:31 CET, Elmar Stellnberger
Details
console message on my first successful urpme --auto-orphans (11.42 KB, text/plain)
2023-04-28 19:09 CEST, Elmar Stellnberger
Details
/var/lib/rpm/installed-through-deps.list of my first successful urpme --auto-orphans (5.19 KB, text/plain)
2023-04-28 19:11 CEST, Elmar Stellnberger
Details

Description Elmar Stellnberger 2023-01-08 19:29:26 CET
# urpme --auto-orphans
writing /var/lib/rpm/installed-through-deps.list
To satisfy dependencies, the following 14 packages will be removed (64MB):
  
(orphan packages)
  dkms-2.0.19-45.mga9.noarch
  dkms-minimal-2.0.19-45.mga9.noarch
  egl-wayland-json-1.1.11-1.mga9.noarch
  kernel-desktop586-devel-6.1.4-1.mga9.i586
  libbind9.18.9-9.18.9-2.mga9.i586
  libboost_date_time1.79.0-1.79.0-2.mga9.i586
  libboost_filesystem1.79.0-1.79.0-2.mga9.i586
  libboost_iostreams1.79.0-1.79.0-2.mga9.i586
  libcamera0.0.2-0.0.2-3.mga9.i586
  libfilezilla32-0.39.2-1.mga9.i586
  libnvidia-egl-wayland1-1.1.11-1.mga9.i586
  libpng12_0-1.2.59-3.mga9.i586
  make-4.4-2.mga9.i586
  vaapi-driver-vdpau-0.7.4-10.mga9.i586
Remove 14 packages? (y/N) y
removing dkms-2.0.19-45.mga9.noarch dkms-minimal-2.0.19-45.mga9.noarch egl-wayland-json-1.1.11-1.mga9.noarch kernel-desktop586-devel-6.1.4-1.mga9.i586 libbind9.18.9-9.18.9-2.mga9.i586 libboost_date_time1.79.0-1.79.0-2.mga9.i586 libboost_filesystem1.79.0-1.79.0-2.mga9.i586 libboost_iostreams1.79.0-1.79.0-2.mga9.i586 libcamera0.0.2-0.0.2-3.mga9.i586 libfilezilla32-0.39.2-1.mga9.i586 libnvidia-egl-wayland1-1.1.11-1.mga9.i586 libpng12_0-1.2.59-3.mga9.i586 make-4.4-2.mga9.i586 vaapi-driver-vdpau-0.7.4-10.mga9.i586
Removal failed:
	make is needed by (installed) kernel-desktop586-devel-6.1.1-2.mga9.i586
	make is needed by (installed) kernel-desktop586-devel-6.1.1-3.mga9.i586
Comment 1 Elmar Stellnberger 2023-01-08 19:31:53 CET
Created attachment 13629 [details]
installed-through-deps.list
Comment 2 Lewis Smith 2023-01-09 19:13:27 CET
The failure messages are odd!

Assigning to mageiaTools.

Assignee: bugsquad => mageiatools
Hardware: All => i586

Comment 3 Pascal Terjan 2023-01-09 19:50:36 CET
My guess is that it's confused by the multiple kernel-desktop586-devel packages installed.

We didn't use to have several versions of a package with the same name installed and the whole orphans logic is based on names (including the contents of installed-through-deps.list).

CC: (none) => pterjan

Chris Denice 2023-01-12 15:29:03 CET

Blocks: (none) => 31127

Comment 4 Elmar Stellnberger 2023-03-18 08:57:45 CET
Still an issue: It fails to uninstall on make.
Comment 5 Elmar Stellnberger 2023-04-28 19:09:17 CEST
Created attachment 13794 [details]
console message on my first successful urpme --auto-orphans

The problem has been resolved by now either as part of today´s upgrading or by a codefix.
Comment 6 Elmar Stellnberger 2023-04-28 19:11:42 CEST
Created attachment 13795 [details]
/var/lib/rpm/installed-through-deps.list of my first successful urpme --auto-orphans

Here comes the installed-through-deps.list. Please close the bug on your own, if you know it resolved or if it is no more of interest for you.
Comment 7 Frank Griffin 2023-04-29 15:45:33 CEST
Don't know if this is related, but (still in today's cauldron):

[root@jaglap2 ~]# urpme --auto-orphans 
writing /var/lib/rpm/installed-through-deps.list
To satisfy dependencies, the following 33 packages will be removed (757MB):
  
(orphan packages)
  kernel-desktop-6.2.10-2.mga9.x86_64
  kernel-desktop-6.2.11-1.mga9.x86_64
  kernel-desktop-6.2.12-1.mga9.x86_64
  kernel-desktop-6.3.0-1.mga9.x86_64
  kernel-desktop-devel-6.2.10-2.mga9.x86_64
  kernel-desktop-devel-6.2.11-1.mga9.x86_64
  kernel-desktop-devel-6.2.12-1.mga9.x86_64
  kernel-desktop-devel-6.3.0-1.mga9.x86_64
  kernel-desktop-devel-6.3.0-2.mga9.x86_64
  lib64bind9.18.12-9.18.12-1.mga9.x86_64
  lib64digikamcore7.10.0-7.10.0-4.mga9.x86_64
  lib64digikamdatabase7.10.0-7.10.0-4.mga9.x86_64
  lib64digikamgui7.10.0-7.10.0-4.mga9.x86_64
  lib64filezilla35-0.41.1-1.mga9.x86_64
  lib64fm-qt12-1.2.1-2.mga9.x86_64
  lib64gck2_0-3.92.0-1.mga9.x86_64
  lib64gcr4_0-3.92.0-1.mga9.x86_64
  lib64gupnp-igd1.0_4-1.2.0-3.mga9.x86_64
  lib64indi1-1.9.9-4.mga9.x86_64
  lib64javascriptcoregtk5.0_0-2.38.5-2.mga9.x86_64
  lib64mpcdec5-1.2.6-20.mga9.x86_64
  lib64nova0.15_0-0.15.0-8.mga9.x86_64
  lib64openshot23-0.3.0-4.mga9.x86_64
  lib64openshot24-0.3.1-1.mga9.x86_64
  lib64qtav1-1.13.0-5.mga9.x86_64
  lib64qtavwidgets1-1.13.0-5.mga9.x86_64
  lib64rest-gir1.0-0.9.1-2.mga9.x86_64
  lib64stemmer-devel-2.2.0-2.mga9.x86_64
  lib64webkit2gtk5.0_0-2.38.5-2.mga9.x86_64
  virtualbox-kernel-6.2.10-desktop-2.mga9-7.0.6-34.mga9.x86_64
  virtualbox-kernel-6.2.11-desktop-1.mga9-7.0.8-3.mga9.x86_64
  virtualbox-kernel-6.2.12-desktop-1.mga9-7.0.8-4.mga9.x86_64
  webkit2gtk5.0-2.38.5-2.mga9.x86_64
Remove 33 packages? (y/N) y
removing kernel-desktop-6.2.10-2.mga9.x86_64 kernel-desktop-6.2.11-1.mga9.x86_64 kernel-desktop-6.2.12-1.mga9.x86_64 kernel-desktop-6.3.0-1.mga9.x86_64 kernel-desktop-devel-6.2.10-2.mga9.x86_64 kernel-desktop-devel-6.2.11-1.mga9.x86_64 kernel-desktop-devel-6.2.12-1.mga9.x86_64 kernel-desktop-devel-6.3.0-1.mga9.x86_64 kernel-desktop-devel-6.3.0-2.mga9.x86_64 lib64bind9.18.12-9.18.12-1.mga9.x86_64 lib64digikamcore7.10.0-7.10.0-4.mga9.x86_64 lib64digikamdatabase7.10.0-7.10.0-4.mga9.x86_64 lib64digikamgui7.10.0-7.10.0-4.mga9.x86_64 lib64filezilla35-0.41.1-1.mga9.x86_64 lib64fm-qt12-1.2.1-2.mga9.x86_64 lib64gck2_0-3.92.0-1.mga9.x86_64 lib64gcr4_0-3.92.0-1.mga9.x86_64 lib64gupnp-igd1.0_4-1.2.0-3.mga9.x86_64 lib64indi1-1.9.9-4.mga9.x86_64 lib64javascriptcoregtk5.0_0-2.38.5-2.mga9.x86_64 lib64mpcdec5-1.2.6-20.mga9.x86_64 lib64nova0.15_0-0.15.0-8.mga9.x86_64 lib64openshot23-0.3.0-4.mga9.x86_64 lib64openshot24-0.3.1-1.mga9.x86_64 lib64qtav1-1.13.0-5.mga9.x86_64 lib64qtavwidgets1-1.13.0-5.mga9.x86_64 lib64rest-gir1.0-0.9.1-2.mga9.x86_64 lib64stemmer-devel-2.2.0-2.mga9.x86_64 lib64webkit2gtk5.0_0-2.38.5-2.mga9.x86_64 virtualbox-kernel-6.2.10-desktop-2.mga9-7.0.6-34.mga9.x86_64 virtualbox-kernel-6.2.11-desktop-1.mga9-7.0.8-3.mga9.x86_64 virtualbox-kernel-6.2.12-desktop-1.mga9-7.0.8-4.mga9.x86_64 webkit2gtk5.0-2.38.5-2.mga9.x86_64
Removal failed:
        kernel-desktop-6.3.0-1.mga9 is needed by (installed) virtualbox-kernel-6.3.0-desktop-1.mga9-7.0.8-5.mga9.x86_64
        kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
        kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
        kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
        kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
        kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
[root@jaglap2 ~]#

CC: (none) => ftg

Comment 8 Barry Jackson 2023-04-30 17:12:55 CEST
What does remove-old-kernels offer for removal?
$ rok

CC: (none) => zen25000

Comment 9 Morgan Leijström 2023-04-30 17:46:08 CEST
I also see this

I believe the problem is that it fail to uninstall, but that it attempts to uninstall more than what is healthy...


tip: always use --test option to dry run so you can try to answer yes but it will still not really uninstall, i.e

$ sudo urpme --test --auto-or  


In my case rok do not want to remove any kernel as I only have two kernels installed.

Also note that the message is ambigous;
"kernel-devel is needed" - it should state which version

I also note that despite I only have two kernels installed, it want to uninstall the first:
kernel-desktop-6.2.11-1.mga9.x86_64

Even worse, it want to uninstall lvm2-2.03.16-1.mga9.x86_64, but this system is installed with / in a LVM so I believe it is needed...

On mga8, I removed orphans routinely, never such problems.

CC: (none) => fri
Summary: urpme --auto-orphans fails to uninstall packages => urpme --auto-orphans wants to uninstall too much

Morgan Leijström 2023-04-30 17:47:10 CEST

Severity: normal => major
Hardware: i586 => All

Comment 10 Frank Griffin 2023-06-07 20:34:28 CEST
Still happening in current cauldron...
Morgan Leijström 2023-06-22 12:11:10 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=31699

Comment 11 Morgan Leijström 2023-07-25 22:34:14 CEST
Ping.

Still same as per comment 7 & 9 on my system.

Pity, it is a test for package deps if --auto-orphans work.
Comment 12 Morgan Leijström 2023-10-02 21:54:48 CEST
It is up to a new level - not only does it try to remove the running kernel, it succeeds doing so!!

Possibly beacuse I have since last try manually removed the *-latest packages?
They are probably technically not needed.

Good side of things is that orphan files are now removed.

But even more than the running kernel - also lvm2 got removed, and this system use LVM!

See more at end below


[morgan@svarten ~]$ sudo urpme --auto-orphans
För att tillfredsställa beroenden kommer följande 77 paket att tas bort (377MB):
  
(obehövliga paket)
  akonadi-mime-23.04.1-1.mga9.x86_64
  btrfs-progs-6.2.2-1.mga9.x86_64
  dmraid-1.0.0-0.rc16.32.mga9.x86_64
  dmraid-events-1.0.0-0.rc16.32.mga9.x86_64
  expat-2.5.0-1.mga9.x86_64
  kernel-desktop-6.4.15-1.mga9.x86_64
  kernel-desktop-6.4.16-1.mga9.x86_64
  kernel-desktop-6.4.9-4.mga9.x86_64
  kernel-desktop-devel-6.4.16-1.mga9.x86_64
  kpartx-0.8.8-2.mga9.x86_64
  kross-5.105.0-1.mga9.x86_64
  ktnef-23.04.1-2.mga9.x86_64
  lib64akonadiprivate5-22.12.3-1.mga9.x86_64
  lib64akregatorinterfaces5-23.04.1-1.mga9.x86_64
  lib64bind9.18.12-9.18.12-1.mga9.x86_64
  lib64bind9.18.14-9.18.14-1.mga9.x86_64
  lib64btrfs0-6.2.2-1.mga9.x86_64
  lib64dmraid1-1.0.0-0.rc16.32.mga9.x86_64
  lib64filezilla35-0.41.1-1.mga9.x86_64
  lib64gck2_0-3.92.0-1.mga9.x86_64
  lib64gcr4_0-3.92.0-1.mga9.x86_64
  lib64grantlee_textdocument5-5.3.1-1.mga9.x86_64
  lib64grantleethemeeditor5-23.04.1-1.mga9.x86_64
  lib64gupnp-igd1.0_4-1.2.0-3.mga9.x86_64
  lib64kalarmplugin5-23.04.1-1.mga9.x86_64
  lib64kateprivate22-22.12.3-1.mga9.x86_64
  lib64kdeconnectcore22-22.12.3-1.mga9.x86_64
  lib64kdeconnectinterfaces22-22.12.3-1.mga9.x86_64
  lib64kdeconnectpluginkcm22-22.12.3-1.mga9.x86_64
  lib64kerfuffle22-22.12.3-1.mga9.x86_64
  lib64kf5akonadiagentbase5-22.12.3-1.mga9.x86_64
  lib64kf5akonadicontact5-22.12.3-1.mga9.x86_64
  lib64kf5akonadicore5-22.12.3-1.mga9.x86_64
  lib64kf5akonadimime5-22.12.3-1.mga9.x86_64
  lib64kf5akonadinotes5-22.12.3-1.mga9.x86_64
  lib64kf5akonadisearchcore5-22.12.3-1.mga9.x86_64
  lib64kf5akonadisearchdebug5-22.12.3-1.mga9.x86_64
  lib64kf5akonadisearchpim5-22.12.3-1.mga9.x86_64
  lib64kf5akonadisearchxapian5-22.12.3-1.mga9.x86_64
  lib64kf5akonadiwidgets5-22.12.3-1.mga9.x86_64
  lib64kf5akonadixml5-22.12.3-1.mga9.x86_64
  lib64kf5alarmcalendar5-23.04.1-1.mga9.x86_64
  lib64kf5calendarutils5-22.12.3-2.mga9.x86_64
  lib64kf5contacteditor5-22.12.3-1.mga9.x86_64
  lib64kf5grantleetheme5-22.12.3-2.mga9.x86_64
  lib64kf5gravatar5-22.12.3-1.mga9.x86_64
  lib64kf5identitymanagement5-22.12.3-1.mga9.x86_64
  lib64kf5identitymanagementwidgets5-22.12.3-1.mga9.x86_64
  lib64kf5imap5-22.12.3-1.mga9.x86_64
  lib64kf5kontactinterface5-22.12.3-1.mga9.x86_64
  lib64kf5krosscore5-5.105.0-1.mga9.x86_64
  lib64kf5ldap5-22.12.3-1.mga9.x86_64
  lib64kf5libkdepim5-22.12.3-1.mga9.x86_64
  lib64kf5libkleo5-22.12.3-1.mga9.x86_64
  lib64kf5mailimporter5-22.12.3-1.mga9.x86_64
  lib64kf5mailimporterakonadi5-22.12.3-1.mga9.x86_64
  lib64kf5mbox5-22.12.3-1.mga9.x86_64
  lib64kf5mime5-22.12.3-1.mga9.x86_64
  lib64kf5pimtextedit5-22.12.3-1.mga9.x86_64
  lib64kf5tnef5-22.12.3-1.mga9.x86_64
  lib64kpimgapicalendar5-22.12.3-1.mga9.x86_64
  lib64kpimgapicontacts5-22.12.3-1.mga9.x86_64
  lib64kpimgapicore5-22.12.3-1.mga9.x86_64
  lib64kpimgapitasks5-22.12.3-1.mga9.x86_64
  lib64kpimitinerary5-22.12.3-1.mga9.x86_64
  lib64kpimpkpass5-22.12.3-1.mga9.x86_64
  lib64kpimsmtp5-22.12.3-1.mga9.x86_64
  lib64lvm2cmd2.03-2.03.16-1.mga9.x86_64
  lib64mjpegtools2.1_0-2.1.0-7.mga9.x86_64
  lib64nma-gir1.0-1.10.6-1.mga9.x86_64
  lib64pulsecore16.1-16.1-14.mga9.x86_64
  lib64sasl2-plug-ntlm-2.1.27-7.mga9.x86_64
  lib64soup-gir2.4-2.74.3-1.mga9.x86_64
  lvm2-2.03.16-1.mga9.x86_64
  mageia-repos-cauldron-9-2.mga9.x86_64
  plasma-wayland-protocols-1.10.0-1.mga9.x86_64
  thin-provisioning-tools-0.7.6-7.mga9.x86_64
Ta bort 77 paket? (j/N) j

    All removed without complaint!

[morgan@svarten ~]$ uname -a
Linux svarten.tribun 6.4.16-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Sat Sep 30 10:14:58 UTC 2023 x86_64 GNU/Linux
[morgan@svarten ~]$ rpm -qa | grep kernel
remove-old-kernels-0.99.21.7-1.mga9
kernel-firmware-20230625-1.mga9
kernel-desktop-6.1.45-1.mga8-1-1.mga8
kernel-desktop-devel-6.1.45-1.mga8-1-1.mga8
kernel-desktop-5.10.191-2.lowlatency.ck.500hz.mga9-1-1.mga9
kernel-desktop-devel-5.10.191-2.lowlatency.ck.500hz.mga9-1-1.mga9
kernel-desktop-6.4.11-16.lowlatency.mga9-1-1.mga9
kernel-desktop-devel-6.4.11-16.lowlatency.mga9-1-1.mga9
kernel-desktop-devel-6.1.47-2.lowlatency.mga9-1-1.mga9
kernel-desktop-6.1.47-2.lowlatency.mga9-1-1.mga9
kernel-firmware-nonfree-20230814-1.mga9.nonfree
kernel-userspace-headers-6.4.16-1.mga9


    Restoring running kernel...

$ sudo urpmi   kernel-desktop-6.4.16-1.mga9 kernel-desktop-devel-6.4.16-1.mga9
Markerar kernel-desktop-devel som manuellt installerad, så det inte blir märkt som obehövligt
Markerar kernel-desktop som manuellt installerad, så det inte blir märkt som obehövligt
writing /var/lib/rpm/installed-through-deps.list

   - lines snipped by me -

nvidia470 (470.199.02-1.mga9.nonfree): Installing module.
......................................................
.........
virtualbox (7.0.10-3.mga9): Installing module.
..............
.........
cannot find root partition in /etc/fstab

    - Whoa! Yes i did note lvm2 got removed, and this system use LVM! -

$ cat /etc/fstab
/dev/vg-mga/lv_root / ext4 relatime,acl 1 1
# Entry for /dev/sda3 :
UUID=40e862b7-de54-4104-a67c-190ac2b99567 /boot ext4 relatime,acl 1 2
/dev/vg-mga/lv_home /home ext4 relatime,acl 1 2
# Entry for /dev/sdb1 :
UUID=dba7ddb0-b770-4971-b6bb-4bbdfd1cee3b /mnt/WDred ext4 defaults 1 2
none /proc proc defaults 0 0
/dev/vg-mga/lv_swap swap swap defaults 0 0
/dev/vg-mga/lv_swap2 swap swap defaults 0 0


[morgan@svarten ~]$ LC_ALL=C sudo urpmi lvm2
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  expat                          2.5.0        1.mga9        x86_64  
  lib64lvm2cmd2.03               2.03.16      1.mga9        x86_64  
  lvm2                           2.03.16      1.mga9        x86_64  
  thin-provisioning-tools        0.7.6        7.mga9        x86_64  
7MB of additional disk space will be used.
2.5MB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n) y


    https://ftp.acc.umu.se/mirror/mageia/distrib/9/x86_64/media/core/release/lvm2-2.03.16-1.mga9.x86_64.rpm
    https://ftp.acc.umu.se/mirror/mageia/distrib/9/x86_64/media/core/release/lib64lvm2cmd2.03-2.03.16-1.mga9.x86_64.rpm                                                                                  
    https://ftp.acc.umu.se/mirror/mageia/distrib/9/x86_64/media/core/release/thin-provisioning-tools-0.7.6-7.mga9.x86_64.rpm                                                                             
    https://ftp.acc.umu.se/mirror/mageia/distrib/9/x86_64/media/core/release/expat-2.5.0-1.mga9.x86_64.rpm                                                                                               
installing lvm2-2.03.16-1.mga9.x86_64.rpm lib64lvm2cmd2.03-2.03.16-1.mga9.x86_64.rpm thin-provisioning-tools-0.7.6-7.mga9.x86_64.rpm expat-2.5.0-1.mga9.x86_64.rpm from /var/cache/urpmi/rpms            
Preparing...                     #######################################################################################################################################################################
      1/4: expat                 #######################################################################################################################################################################
      2/4: thin-provisioning-tools
                                 #######################################################################################################################################################################
      3/4: lib64lvm2cmd2.03      #######################################################################################################################################################################
      4/4: lvm2                  #######################################################################################################################################################################
"/var/lib/boinc" already exists and is not a directory.

          (it is a symlink for BOINC data folder on another disk)


[morgan@svarten ~]$ sudo urpme   kernel-desktop-6.4.16-1.mga9 kernel-desktop-devel-6.4.16-1.mga9
tar bort kernel-desktop-6.4.16-1.mga9.x86_64 kernel-desktop-devel-6.4.16-1.mga9.x86_64
tar bort paket kernel-desktop-6.4.16-1.mga9.x86_64

           >>>>>>> Really urpmi do not check which kernel is in use?? <<<<<<<<

writing /var/lib/rpm/installed-through-deps.list


[morgan@svarten ~]$ sudo urpmi   kernel-desktop-6.4.16-1.mga9 kernel-desktop-devel-6.4.16-1.mga9
           ( executing OK)
nvidia470 (470.199.02-1.mga9.nonfree): Installing module.
.......................................................
........
virtualbox (7.0.10-3.mga9): Installing module.
..............
........
Du borde starta om din dator för kernel-desktop

   Yes now it feels more safe to reboot.
   If problems I will report back...

Note: This system was a fresh install mga9 beta2 classic ISO

(and sorry for not using LC_ALL=C everywhere)

Severity: major => critical
Whiteboard: (none) => MGA9TOO
Priority: Normal => High

Comment 13 Morgan Leijström 2023-10-02 22:14:50 CEST
Rebooted OK :)

Now auto-orphans behave:

$ LC_ALL=C sudo urpme --test --auto-orphans
No orphans to remove

Is it because now kernel and lvm2 was installed using urpmi?
Also the nonstandard kernels from mga8 backport and Guiseppe was installed using urpmi, and not removed by auto-orphans.

Before, i had installed running kernel 6.4.16 using MCC>drakrpm.

But what about lvm2 ?  It was installed by Mageia classic installer.

--

Another issue: should not urpme prevent uninstalling a running kernel?

$ uname -a
Linux svarten.tribun 6.4.16-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Sat Sep 30 10:14:58 UTC 2023 x86_64 GNU/Linux

$ LC_ALL=C sudo urpme --test  kernel-desktop-6.4.16-1.mga9 kernel-desktop-devel-6.4.16-1.mga9
testing removal of kernel-desktop-6.4.16-1.mga9.x86_64 kernel-desktop-devel-6.4.16-1.mga9.x86_64
Removal is possible
Comment 14 Morgan Leijström 2023-10-03 11:24:29 CEST
In case it matters, to be precise, in comment 12 and 13 I used
 urpmi-8.131-2.mga9.
Our latest released is -1.

I need to downsync my system to release + updates
https://wiki.mageia.org/en/Mageia_9_Errata#Synchronising_from_development_to_release
Comment 15 Morgan Leijström 2023-10-03 13:23:03 CEST
Strange difference on my laptop, also installed with mageia beta2, IIRC:

Here --auto-orphans try to then fail to remove kernel-devel due to dkms dependency.

But my system in comment 12 & 13 also have dkms installed and there it did not block.


$ LC_ALL=C sudo urpme --auto-o
writing /var/lib/rpm/installed-through-deps.list
To satisfy dependencies, the following 3 packages will be removed (163MB):
  
(orphan packages)
  kernel-desktop-devel-6.4.9-1.mga9.x86_64
  kernel-desktop-devel-6.4.9-3.mga9.x86_64
  kernel-desktop-devel-6.4.9-4.mga9.x86_64
Remove 3 packages? (y/N) y
removing kernel-desktop-devel-6.4.9-1.mga9.x86_64 kernel-desktop-devel-6.4.9-3.mga9.x86_64 kernel-desktop-devel-6.4.9-4.mga9.x86_64
Removal failed:
	kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
	kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch
	kernel-devel is needed by (installed) dkms-2.0.19-46.mga9.noarch

Note You need to log in before you can comment on or make changes to this bug.