Peek quickly into any archive or unpack it easily
  • C 96.4%
  • Makefile 3.6%
Find a file
2025-06-19 12:58:31 +02:00
src fixed libarchive utf-8 error 2025-06-19 12:58:31 +02:00
.gitignore .gitignore, make and version stuff 2025-05-20 21:41:29 +02:00
LICENSE Update LICENSE 2025-05-23 17:47:05 +02:00
Makefile why break?... 2025-05-22 11:35:46 +02:00
README.md fixed libarchive utf-8 error 2025-06-19 12:58:31 +02:00

AM

A small command line utility for quickly and easily peeking into archives and unpacking its content.

For now it uses https://github.com/libarchive/libarchive for viewing and extracting archives.

Usage

List the content of archive.tar.gz

$ am archive.tar.gz

Extract archive.tar.gz into the current working directory

$ am -x archive.tar.gz

Extract archive.tar.gz into ~/Downloads

$ am -x archive.tar.gz -o ~/Downloads

By default am extracts the content in an archive-named directory if the top level of the archive contains several files to avoid vomitting the files all over the current directory.

Same behaviour if the root folder in the archive isn't named the same as the archive.

This can be ommited by:

$ am -x archive.tar.gz -p

Supported Formats

Everything that libarchive supports

https://github.com/libarchive/libarchive?tab=readme-ov-file#supported-formats

Dependencies:

Debian / Ubuntu

sudo apt install gcc make pkg-config libarchive-dev

Fedora / RHEL

sudo dnf install gcc make pkgconf-pkg-config libarchive-devel

Manual installation

git clone https://github.com/pgml/am
cd am
make
make install