Install Binutils on Ubuntu 24.04

Install Binutils on Ubuntu 24.04

Binutils is a collection of low-level tools used for manipulating binary and object files on Linux systems. Binutils includes tools for assembling source code, linking object files, examining and modifying binaries, stripping symbols, managing archives, and more. Here are the most commonly used tools:

No.ToolDescription
1.arCreates, modifies, and extracts archives (used for static libraries).
2.asThe GNU assembler, which converts assembly language into machine code.
3.ldThe GNU linker, which links object files into executables.
4.nmLists symbols from object files.
5.objdumpDisplays information about object files (disassembly, headers, symbols, etc.).
6.readelfDisplays information about ELF (Executable and Linkable Format) files.
7.stringsExtracts printable text from binary files.
8.stripRemoves debugging and symbol information to reduce file size.

This tutorial demonstrates how to install Binutils on Ubuntu 24.04.

Install Binutils

Execute the following command to update the package lists:

sudo apt update

Install Binutils:

sudo apt install -y binutils

Several tools have been installed. Check the versions of a few of them:

ld --version
objdump --version
strip --version

Uninstall Binutils

To completely remove Binutils and its related dependencies, execute the following command:

sudo apt purge --autoremove -y binutils

Leave a Comment

Cancel reply

Your email address will not be published.