strip

Discard symbols from executables or object files. More information: <https://manned.org/strip>.

Install

All systems
curl cmd.cat/strip.sh
Debian Debian
apt-get install binutils-i586-linux-gnu
Ubuntu
apt-get install binutils-2.26
Alpine
apk add binutils
Arch Arch Linux
pacman -S aarch64-linux-gnu-binutils
image/svg+xml Kali Linux
apt-get install binutils-mipsisa32r6el-linux-gnu
CentOS
yum install binutils
Fedora
dnf install binutils-arc-linux-gnu
Windows (WSL2)
sudo apt-get update sudo apt-get install binutils-2.26
OS X
brew install binutils
Raspbian
apt-get install binutils-multiarch
Docker
docker run cmd.cat/strip strip powered by Commando

Discard symbols from executables or object files. More information: <https://manned.org/strip>.

  • Replace the input file with its stripped version:
    strip path/to/file
  • Strip symbols from a file, saving the output to a specific file:
    strip path/to/input_file -o path/to/output_file
  • Strip debug symbols only:
    strip --strip-debug path/to/file.o

© tl;dr; authors and contributors