Bug 6343

Summary: Removing VirtualBox removes a lot of packages
Product: Fedora Reporter: emailtoflorian
Component: VirtualBoxAssignee: Sérgio Basto <sergio>
Status: RESOLVED INVALID    
Severity: enhancement CC: leigh123linux
Priority: P1    
Version: unspecified   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description emailtoflorian 2022-06-22 08:10:56 CEST
I want to remove VirtualBox from my system, and here is what happens when I remove related packages:

     sudo dnf remove VirtualBox-kmodsrc VirtualBox-server akmod-VirtualBox kmod-VirtualBox                                                                                                                                          


No match for argument: kmod-VirtualBox
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                                     Architecture                               Version                                             Repository                                                   Size
==============================================================================================================================================================================================================================================
Removing:
 VirtualBox-kmodsrc                                                          noarch                                     6.1.34-4.fc36                                       @rpmfusion-free-updates                                     860 k
 VirtualBox-server                                                           x86_64                                     6.1.34-4.fc36                                       @rpmfusion-free-updates                                      54 M
 akmod-VirtualBox                                                            x86_64                                     6.1.34-3.fc36                                       @rpmfusion-free-updates                                      15 k
Removing dependent packages:
 kmod-VirtualBox-5.17.13-300.fc36.x86_64                                     x86_64                                     6.1.34-3.fc36                                       @@commandline                                               1.2 M
 kmod-VirtualBox-5.17.14-300.fc36.x86_64                                     x86_64                                     6.1.34-3.fc36                                       @@commandline                                               1.2 M
 kmod-VirtualBox-5.18.3-200.fc36.x86_64                                      x86_64                                     6.1.34-3.fc36                                       @@commandline                                               1.2 M
 kmod-VirtualBox-5.18.4-201.fc36.x86_64                                      x86_64                                     6.1.34-3.fc36                                       @@commandline                                               1.2 M
 kmod-VirtualBox-5.18.5-200.fc36.x86_64                                      x86_64                                     6.1.34-3.fc36                                       @@commandline                                               1.2 M
Removing unused dependencies:
 akmods                                                                      noarch                                     0.5.7-8.fc36                                        @updates-testing                                             47 k
 annobin-docs                                                                noarch                                     10.76-1.fc36                                        @updates                                                     89 k
 annobin-plugin-gcc                                                          x86_64                                     10.76-1.fc36                                        @updates                                                    881 k
 ansible-srpm-macros                                                         noarch                                     1-5.fc36                                            @updates                                                     96  
 debugedit                                                                   x86_64                                     5.0-3.fc36                                          @fedora                                                     191 k
 dwz                                                                         x86_64                                     0.14-2.fc35                                         @fedora                                                     274 k
 ed                                                                          x86_64                                     1.14.2-12.fc36                                      @fedora                                                     127 k
 efi-srpm-macros                                                             noarch                                     5-5.fc36                                            @fedora                                                      40 k
 fakeroot                                                                    x86_64                                     1.29-1.fc36                                         @updates                                                    154 k
 fakeroot-libs                                                               x86_64                                     1.29-1.fc36                                         @updates                                                    132 k
 fonts-srpm-macros                                                           noarch                                     1:2.0.5-7.fc36                                      @fedora                                                      55 k
 fpc-srpm-macros                                                             noarch                                     1.3-5.fc36                                          @fedora                                                     144  
 gcc-plugin-annobin                                                          x86_64                                     12.1.1-1.fc36                                       @updates                                                     53 k
 ghc-srpm-macros                                                             noarch                                     1.5.0-6.fc36                                        @fedora                                                     535  
 gnat-srpm-macros                                                            noarch                                     4-15.fc36                                           @fedora                                                     725  
 go-srpm-macros                                                              noarch                                     3.0.15-1.fc36                                       @fedora                                                      59 k
 info                                                                        x86_64                                     6.8-3.fc36                                          @fedora                                                     492 k
 kernel-devel-matched                                                        x86_64                                     5.18.5-200.fc36                                     @updates                                                      0  
 kernel-srpm-macros                                                          noarch                                     1.0-14.fc36                                         @fedora                                                     1.0 k
 kmodtool                                                                    noarch                                     1.1-3.fc36                                          @fedora                                                      28 k
 liblzf                                                                      x86_64                                     3.6-23.fc36                                         @fedora                                                      54 k
 lua-srpm-macros                                                             noarch                                     1-6.fc36                                            @fedora                                                     1.3 k
 nim-srpm-macros                                                             noarch                                     3-6.fc36                                            @fedora                                                     1.1 k
 ocaml-srpm-macros                                                           noarch                                     6-6.fc36                                            @fedora                                                     745  
 openblas-srpm-macros                                                        noarch                                     2-11.fc36                                           @fedora                                                     104  
 openssl                                                                     x86_64                                     1:3.0.3-1.fc36                                      @updates                                                    1.8 M
 package-notes-srpm-macros                                                   noarch                                     0.4-14.fc36                                         @fedora                                                     4.6 k
 patch                                                                       x86_64                                     2.7.6-16.fc36                                       @fedora                                                     251 k
 perl-srpm-macros                                                            noarch                                     1-43.fc36                                           @fedora                                                     862  
 python-srpm-macros                                                          noarch                                     3.10-18.fc36                                        @updates                                                     43 k
 python3-babel                                                               noarch                                     2.9.1-5.fc36                                        @fedora                                                      27 M
 python3-progressbar2                                                        noarch                                     3.53.2-4.fc36                                       @fedora                                                     208 k
 python3-pytz                                                                noarch                                     2022.1-1.fc36                                       @fedora                                                     171 k
 python3-rpmautospec                                                         noarch                                     0.2.6-1.fc36                                        @updates-testing                                            101 k
 python3-utils                                                               noarch                                     2.5.6-5.fc36                                        @fedora                                                      56 k
 qt5-srpm-macros                                                             noarch                                     5.15.3-1.fc36                                       @fedora                                                     492  
 redhat-rpm-config                                                           noarch                                     221-1.fc36                                          @updates                                                    191 k
 rpm-build                                                                   x86_64                                     4.17.0-10.fc36                                      @fedora                                                     143 k
 rpmautospec-rpm-macros                                                      noarch                                     0.2.6-1.fc36                                        @updates-testing                                            698  
 rpmdevtools                                                                 noarch                                     9.6-1.fc36                                          @fedora                                                     220 k
 rust-srpm-macros                                                            noarch                                     21-1.fc36                                           @fedora                                                     2.4 k

Transaction Summary
==============================================================================================================================================================================================================================================
Remove  49 Packages

Freed space: 94 M
Is this ok [Y/n]: n
Operation aborted.


Removing openssl and some others doesn't seem right...
Comment 1 Sérgio Basto 2022-06-22 11:23:50 CEST
yeah but seems a bug in dnf autoremove 

remove akmods, kmodtools and akmos remove gcc is ok etc 
but   openssl ,  python3-babel, python3-progressbar2 andpython3-pytz I don't see the relation .

please just run `dnf autoremove` before remove  VirtualBox
Comment 2 leigh scott 2022-06-22 11:55:26 CEST
It isn't a bug IMO.

akmods needs the openssl (/usr/bin/openssl) binary to create the signing key used to sign modules.
openssl is rarely used by normal installs