Trying to uninstall 'rocm-*' libraries

,

Hi, I recently installed some rocm packages trying to get blender to work with HIP (I couldn’t). Now I’m trying to uninstall some of the libraries but I’m having some issues.

After uninstalling rocm-hip and rocm-runtime some rocm related libraries are still on the system:

⋊> ~ dnf list --installed | grep rocm                                                               15:10:38
rocm-clinfo.x86_64                                   5.7.1-1.fc39                        @updates                                      
rocm-cmake.noarch                                    5.7.0-1.fc39                        @updates                                      
rocm-comgr.x86_64                                    17.0-3.fc39                         @updates                                      
rocm-comgr-devel.x86_64                              17.0-3.fc39                         @updates                                      
rocm-device-libs.x86_64                              17.1-1.fc39                         @updates                                      
rocm-rpm-macros.x86_64                               1.0-7.fc39                          @updates                                      
rocm-rpm-macros-modules.x86_64                       1.0-7.fc39                          @updates                                      
rocm-smi.x86_64                                      5.7.1-1.fc39                        @updates                                      
rocm-smi-devel.x86_64                                5.7.1-1.fc39                        @updates                                      

(as you can see I’m using Fish shell, maybe it’s useful info, idk)

I intuitively try to uninstall this libraries with the command sudo dnf remove 'rocm-*' however dnf shows this list of packages and dependencies and I’m not sure if I’m safe to proceed with the operation.

⋊> ~ sudo dnf remove 'rocm-*'                                                                       15:09:54
Dependencies resolved.
============================================================================================================
 Package                             Architecture     Version                      Repository          Size
============================================================================================================
Removing:
 rocm-clinfo                         x86_64           5.7.1-1.fc39                 @updates            79 k
 rocm-cmake                          noarch           5.7.0-1.fc39                 @updates           120 k
 rocm-comgr                          x86_64           17.0-3.fc39                  @updates           9.2 M
 rocm-comgr-devel                    x86_64           17.0-3.fc39                  @updates            98 k
 rocm-device-libs                    x86_64           17.1-1.fc39                  @updates           3.2 M
 rocm-rpm-macros                     x86_64           1.0-7.fc39                   @updates            19 k
 rocm-rpm-macros-modules             x86_64           1.0-7.fc39                   @updates            19 k
 rocm-smi                            x86_64           5.7.1-1.fc39                 @updates           1.5 M
 rocm-smi-devel                      x86_64           5.7.1-1.fc39                 @updates           216 k
Removing unused dependencies:
 clang                               x86_64           17.0.6-1.fc39                @updates           586 k
 clang-libs                          x86_64           17.0.6-1.fc39                @updates           112 M
 clang-resource-filesystem           noarch           17.0.6-1.fc39                @updates           476  
 cmake                               x86_64           3.27.7-1.fc39                @fedora             31 M
 cmake-data                          noarch           3.27.7-1.fc39                @fedora            7.8 M
 environment-modules                 x86_64           5.3.1-2.fc39                 @fedora            1.6 M
 gc                                  x86_64           8.2.2-4.fc39                 @fedora            258 k
 gcc                                 x86_64           13.2.1-6.fc39                @updates            95 M
 gcc-c++                             x86_64           13.2.1-6.fc39                @updates            34 M
 glibc-devel                         x86_64           2.38-14.fc39                 @updates            35 k
 glibc-headers-x86                   noarch           2.38-14.fc39                 @updates           2.1 M
 guile22                             x86_64           2.2.7-9.fc39                 @fedora             44 M
 kernel-headers                      x86_64           6.6.3-200.fc39               @updates           6.1 M
 libstdc++-devel                     x86_64           13.2.1-6.fc39                @updates            14 M
 libxcrypt-devel                     x86_64           4.4.36-2.fc39                @fedora             30 k
 lld-libs                            x86_64           17.0.6-1.fc39                @updates           5.3 M
 make                                x86_64           1:4.4.1-2.fc39               @fedora            1.8 M
 nagelfar                            noarch           1.3.3-3.fc39                 @fedora            693 k
 rhash                               x86_64           1.4.3-3.fc39                 @fedora            353 k
 vim-filesystem                      noarch           2:9.0.2167-1.fc39            @updates            40  

Transaction Summary
============================================================================================================
Remove  29 Packages

Freed space: 371 M
Is this ok [y/N]: n
Operation aborted.

My main concerns are with gc, clang and make related packages. Also kernel-headers.

Now I’m not sure what to do…

It seems to be saying that when you installed the rocm-* RPMs the other RPMs where pulled in.

As you remove the rocm-* its also removing the other RPMs that where pulled in.

You can check if this makes sense by looking at the dnf history for the update that where you installed the rocm-* RPMs.

I think this should find the transaction dnf history rocm-smi then you can use the ID to see all the RPMs that where installed in the transaction with dnf history info <ID>.

Thanks for the reply! Here’s the output of that history

dnf history info 60                                                                            16:01:48
Transaction ID : 60
Begin time     : Sun 17 Dec 2023 01:58:21 AM -03
Begin rpmdb    : 64567967ceb5d5461bb4c25de7587477ce3c428196eaee283ca880bb47907485
End time       : Sun 17 Dec 2023 01:58:30 AM -03 (9 seconds)
End rpmdb      : a0a522d8b92e60fc91b962829671b7a42084a76bac341ee53c1c1f81c8bed7c8
User           : Lautaro Losio <lau>
Return-Code    : Success
Releasever     : 39
Command Line   : install rocm-*
Comment        : 
Packages Altered:
    Install cmake-3.27.7-1.fc39.x86_64                           @fedora
    Install cmake-data-3.27.7-1.fc39.noarch                      @fedora
    Install environment-modules-5.3.1-2.fc39.x86_64              @fedora
    Install gc-8.2.2-4.fc39.x86_64                               @fedora
    Install guile22-2.2.7-9.fc39.x86_64                          @fedora
    Install libxcrypt-devel-4.4.36-2.fc39.x86_64                 @fedora
    Install make-1:4.4.1-2.fc39.x86_64                           @fedora
    Install nagelfar-1.3.3-3.fc39.noarch                         @fedora
    Install ocl-icd-devel-2.3.2-2.fc39.x86_64                    @fedora
    Install opencl-filesystem-1.0-18.fc39.noarch                 @fedora
    Install perl-File-Which-1.27-9.fc39.noarch                   @fedora
    Install perl-URI-Encode-1.1.1-21.fc39.noarch                 @fedora
    Install rhash-1.4.3-3.fc39.x86_64                            @fedora
    Install tk-1:8.6.12-5.fc39.x86_64                            @fedora
    Install clang-17.0.6-1.fc39.x86_64                           @updates
    Install clang-libs-17.0.6-1.fc39.x86_64                      @updates
    Install clang-resource-filesystem-17.0.6-1.fc39.noarch       @updates
    Install gcc-13.2.1-6.fc39.x86_64                             @updates
    Install gcc-c++-13.2.1-6.fc39.x86_64                         @updates
    Install glibc-devel-2.38-14.fc39.x86_64                      @updates
    Install glibc-headers-x86-2.38-14.fc39.noarch                @updates
    Install hip-devel-5.7.1-1.fc39.noarch                        @updates
    Install hipcc-5.7.1-1.fc39.noarch                            @updates
    Install hsakmt-1.0.6-34.rocm5.7.0.fc39.x86_64                @updates
    Install hsakmt-devel-1.0.6-34.rocm5.7.0.fc39.x86_64          @updates
    Install kernel-headers-6.6.3-200.fc39.x86_64                 @updates
    Install libstdc++-devel-13.2.1-6.fc39.x86_64                 @updates
    Install lld-libs-17.0.6-1.fc39.x86_64                        @updates
    Install llvm-libs-17.0.6-1.fc39.x86_64                       @updates
    Install opencl-headers-3.0-18.20231003git9ce9a72.fc39.noarch @updates
    Install perl-File-Copy-2.41-502.fc39.noarch                  @updates
    Install rocm-clinfo-5.7.1-1.fc39.x86_64                      @updates
    Install rocm-cmake-5.7.0-1.fc39.noarch                       @updates
    Install rocm-comgr-17.0-3.fc39.x86_64                        @updates
    Install rocm-comgr-devel-17.0-3.fc39.x86_64                  @updates
    Install rocm-device-libs-17.1-1.fc39.x86_64                  @updates
    Install rocm-hip-5.7.1-1.fc39.x86_64                         @updates
    Install rocm-hip-devel-5.7.1-1.fc39.x86_64                   @updates
    Install rocm-opencl-5.7.1-1.fc39.x86_64                      @updates
    Install rocm-opencl-devel-5.7.1-1.fc39.x86_64                @updates
    Install rocm-rpm-macros-1.0-7.fc39.x86_64                    @updates
    Install rocm-rpm-macros-modules-1.0-7.fc39.x86_64            @updates
    Install rocm-runtime-5.7.1-1.fc39.x86_64                     @updates
    Install rocm-runtime-devel-5.7.1-1.fc39.x86_64               @updates
    Install rocm-smi-5.7.1-1.fc39.x86_64                         @updates
    Install rocm-smi-devel-5.7.1-1.fc39.x86_64                   @updates
    Install rocminfo-5.7.0-1.fc39.x86_64                         @updates
    Install vim-filesystem-2:9.0.2153-1.fc39.noarch              @updates

It seems that those libraries were indeed installed with that command. Honestly it wasn’t a very good idea to do sudo dnf install rocm-* but I was kind of desperate at that point :sweat_smile: .

But if I understand correctly there should be no issue if I uninstall those libraries right?

Correct no problem

1 Like