ar
Create, modify, and extract from archives (.a, .so, .o). More information: <https://manned.org/ar>.
Install
- All systems
-
curl cmd.cat/ar.sh
- Debian
-
apt-get install binutils-i586-linux-gnu
- Ubuntu
-
apt-get install binutils-2.26
-
Alpine
-
apk add binutils
- Arch Linux
-
pacman -S aarch64-linux-gnu-binutils
- Kali Linux
-
apt-get install binutils-x86-64-kfreebsd-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
- Dockerfile
- dockerfile.run/ar
- Docker
-
docker run cmd.cat/ar ar
powered by Commando
Create, modify, and extract from archives (.a, .so, .o). More information: <https://manned.org/ar>.
-
Extract all members from an archive:
ar -x path/to/file.a
-
List the members of an archive:
ar -t path/to/file.a
-
Replace or add files to an archive:
ar -r path/to/file.a path/to/file1.o path/to/file2.o
-
Insert an object file index (equivalent to using `ranlib`):
ar -s path/to/file.a
-
Create an archive with files and an accompanying object file index:
ar -rs path/to/file.a path/to/file1.o path/to/file2.o
© tl;dr; authors and contributors