How To Install mingw64-binutils on Rocky Linux 8

In this tutorial we learn how to install mingw64-binutils on Rocky Linux 8. mingw64-binutils is Cross-compiled version of binutils for the Win64 environment

Introduction

In this tutorial we learn how to install mingw64-binutils on Rocky Linux 8.

What is mingw64-binutils

Cross compiled binutils (utilities like ‘strip’, ‘as’, ’ld’) which understand Windows executables and DLLs.

We can use yum or dnf to install mingw64-binutils on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mingw64-binutils.

Install mingw64-binutils on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mingw64-binutils using dnf by running the following command:

sudo dnf -y install mingw64-binutils

Install mingw64-binutils on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mingw64-binutils using yum by running the following command:

sudo yum -y install mingw64-binutils

How To Uninstall mingw64-binutils on Rocky Linux 8

To uninstall only the mingw64-binutils package we can use the following command:

sudo dnf remove mingw64-binutils

mingw64-binutils Package Contents on Rocky Linux 8

/usr/bin/x86_64-w64-mingw32-addr2line
/usr/bin/x86_64-w64-mingw32-ar
/usr/bin/x86_64-w64-mingw32-as
/usr/bin/x86_64-w64-mingw32-c++filt
/usr/bin/x86_64-w64-mingw32-dlltool
/usr/bin/x86_64-w64-mingw32-dllwrap
/usr/bin/x86_64-w64-mingw32-elfedit
/usr/bin/x86_64-w64-mingw32-gprof
/usr/bin/x86_64-w64-mingw32-ld
/usr/bin/x86_64-w64-mingw32-ld.bfd
/usr/bin/x86_64-w64-mingw32-nm
/usr/bin/x86_64-w64-mingw32-objcopy
/usr/bin/x86_64-w64-mingw32-objdump
/usr/bin/x86_64-w64-mingw32-ranlib
/usr/bin/x86_64-w64-mingw32-readelf
/usr/bin/x86_64-w64-mingw32-size
/usr/bin/x86_64-w64-mingw32-strings
/usr/bin/x86_64-w64-mingw32-strip
/usr/bin/x86_64-w64-mingw32-windmc
/usr/bin/x86_64-w64-mingw32-windres
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/cce2f22e2b85be0e4f807fd361278ee534e1f9
/usr/lib/.build-id/06/cce2f22e2b85be0e4f807fd361278ee534e1f9.1
/usr/lib/.build-id/15
/usr/lib/.build-id/15/25c302384631527cb1b0827465fd6bf2f6cb72
/usr/lib/.build-id/16
/usr/lib/.build-id/16/c7aee107204195877798ac12b3869fe8656584
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/782967655a23e7fc373b10e0b4baf8ddb5b19a
/usr/lib/.build-id/1a/782967655a23e7fc373b10e0b4baf8ddb5b19a.1
/usr/lib/.build-id/21
/usr/lib/.build-id/21/52f399c4315790aceafc791414e122b4904758
/usr/lib/.build-id/21/52f399c4315790aceafc791414e122b4904758.1
/usr/lib/.build-id/23
/usr/lib/.build-id/23/d687379dabdb94f27c6c1fad0304445a0926b1
/usr/lib/.build-id/23/d687379dabdb94f27c6c1fad0304445a0926b1.1
/usr/lib/.build-id/31
/usr/lib/.build-id/31/c3f7e7ffef67bf4e1d6c31be2431b50561108b
/usr/lib/.build-id/31/c3f7e7ffef67bf4e1d6c31be2431b50561108b.1
/usr/lib/.build-id/41
/usr/lib/.build-id/41/ebb74eaa649f39008bc9b22e58ff86140ea759
/usr/lib/.build-id/48
/usr/lib/.build-id/48/b36b29afc65543a23f507fc5d08bfde0188b21
/usr/lib/.build-id/56
/usr/lib/.build-id/56/b3c68aeecf3958de518f28368dbddce87bb9d0
/usr/lib/.build-id/56/b3c68aeecf3958de518f28368dbddce87bb9d0.1
/usr/lib/.build-id/70
/usr/lib/.build-id/70/bbcf61b9e535182471d50cc61a0ee2a921b991
/usr/lib/.build-id/72/a3bb863bcaad6577afb7150d129962d1d4d810.2
/usr/lib/.build-id/72/a3bb863bcaad6577afb7150d129962d1d4d810.3
/usr/lib/.build-id/84
/usr/lib/.build-id/84/98e85188dea452ea74869653b839de50e524b7
/usr/lib/.build-id/84/98e85188dea452ea74869653b839de50e524b7.1
/usr/lib/.build-id/86
/usr/lib/.build-id/86/11ed2515d60353b8d03f8f8abc23c41f2e9c51
/usr/lib/.build-id/86/11ed2515d60353b8d03f8f8abc23c41f2e9c51.1
/usr/lib/.build-id/86/11ed2515d60353b8d03f8f8abc23c41f2e9c51.2
/usr/lib/.build-id/86/11ed2515d60353b8d03f8f8abc23c41f2e9c51.3
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/a75b6790c83135cabeea02c29ed0b4f112fffd
/usr/lib/.build-id/bf/8d973991a5fd007beab54d73dffc2ecb3a5c35.1
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/97df1f6067aa64ac90c21ab9f0514f4e466b95
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/98c40033051638c889a4d69fc117a00eef026a
/usr/lib/.build-id/dd/98c40033051638c889a4d69fc117a00eef026a.1
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/90bac5ad7d4638c8ada72ec74ed8a22df8c6ff
/usr/x86_64-w64-mingw32/bin/ar
/usr/x86_64-w64-mingw32/bin/as
/usr/x86_64-w64-mingw32/bin/dlltool
/usr/x86_64-w64-mingw32/bin/ld
/usr/x86_64-w64-mingw32/bin/ld.bfd
/usr/x86_64-w64-mingw32/bin/nm
/usr/x86_64-w64-mingw32/bin/objcopy
/usr/x86_64-w64-mingw32/bin/objdump
/usr/x86_64-w64-mingw32/bin/ranlib
/usr/x86_64-w64-mingw32/bin/readelf
/usr/x86_64-w64-mingw32/bin/strip
/usr/x86_64-w64-mingw32/lib/ldscripts
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.x
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.xa
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.xbn
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.xe
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.xn
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.xr
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pe.xu
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.x
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.xa
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.xbn
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.xe
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.xn
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.xr
/usr/x86_64-w64-mingw32/lib/ldscripts/i386pep.xu

References

Summary

In this tutorial we learn how to install mingw64-binutils on Rocky Linux 8 using yum and dnf.