How To Install annobin on Fedora 34

annobin is Annotate and examine compiled binary files

Introduction

In this tutorial we learn how to install annobin on Fedora 34.

What is annobin

Provides a plugin for GCC that records extra information in the files that it compiles. Note - the plugin is automatically enabled in gcc builds via flags provided by the redhat-rpm-macros package. Also provides a plugin for Clang which performs a similar function. Also provides a plugin for LLVM which performs a similar function.

We can use yum or dnf to install annobin on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install annobin.

Install annobin on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install annobin

Install annobin on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install annobin using yum by running the following command:

sudo yum -y install annobin

How To Uninstall annobin on Fedora 34

To uninstall only the annobin package we can use the following command:

sudo dnf remove annobin

annobin Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/e4c723439bd85c81c62ab765ff0a68fd52257f
/usr/lib/.build-id/21
/usr/lib/.build-id/21/3f59eebee8bf9a911ca80bce5a72f4d6bd16ef
/usr/lib/.build-id/60
/usr/lib/.build-id/60/21ef3c7111bd94c800be561bfec2087e65fc7b
/usr/lib/gcc/x86_64-redhat-linux/11/plugin
/usr/lib/gcc/x86_64-redhat-linux/11/plugin/annobin.so
/usr/lib/gcc/x86_64-redhat-linux/11/plugin/annobin.so.0
/usr/lib/gcc/x86_64-redhat-linux/11/plugin/annobin.so.0.0.0
/usr/lib64/clang/12.0.0
/usr/lib64/clang/12.0.0/annobin-for-clang.so
/usr/lib64/clang/12.0.0/annobin-for-llvm.so
/usr/share/doc/annobin-plugin/annotation.proposal.txt
/usr/share/info/annobin.info.gz
/usr/share/licenses/annobin
/usr/share/licenses/annobin/COPYING3
/usr/share/licenses/annobin/LICENSE
/usr/share/man/man1/annobin.1.gz
/usr/share/man/man1/built-by.1.gz
/usr/share/man/man1/check-abi.1.gz
/usr/share/man/man1/hardened.1.gz
/usr/share/man/man1/run-on-binaries-in.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/e4b2a7d1dd489fb758f74e3be442b71f733019
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/1c910924d48180eda0e91de850ce2e2f7742f9
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/4380aea94a5ed679daf780a485d61010db012d
/usr/lib/gcc/x86_64-redhat-linux/11/plugin
/usr/lib/gcc/x86_64-redhat-linux/11/plugin/annobin.so
/usr/lib/gcc/x86_64-redhat-linux/11/plugin/annobin.so.0
/usr/lib/gcc/x86_64-redhat-linux/11/plugin/annobin.so.0.0.0
/usr/lib64/clang/12.0.0
/usr/lib64/clang/12.0.0/annobin-for-clang.so
/usr/lib64/clang/12.0.0/annobin-for-llvm.so
/usr/share/doc/annobin-plugin/annotation.proposal.txt
/usr/share/info/annobin.info.gz
/usr/share/licenses/annobin
/usr/share/licenses/annobin/COPYING3
/usr/share/licenses/annobin/LICENSE
/usr/share/man/man1/annobin.1.gz
/usr/share/man/man1/built-by.1.gz
/usr/share/man/man1/check-abi.1.gz
/usr/share/man/man1/hardened.1.gz
/usr/share/man/man1/run-on-binaries-in.1.gz

References

Summary

In this tutorial we learn how to install annobin on Fedora 34 using yum and dnf.