Project pageView on GitHub

pakket

A file archiver for the terminal: compress, extract, encrypt, list and test archives in dozens of formats, from a keyboard-driven file browser or from scripts. It covers what the Keka app does, in a terminal.

Features · Install · Use it · Formats · Keys · Settings · Compared with Keka · How it works · Limits · Contributing

License: MIT Go 1.27+ macOS · Linux Homebrew: gitguy268/tap

pakket in a terminal: selecting a folder and a file, compressing them to an encrypted 7z, listing its contents and extracting it again

Project page: gitguy268.github.io/pakket

Prefer a browser? web-pak is pakket as a web app, with previews, editing and converting: gitguy268.github.io/web-pak. Nothing is uploaded.

Run it locally, step by step

  1. Install it with Homebrew (macOS or Linux). This also installs 7-Zip. Homebrew asks you to trust a tap once:

    brew trust gitguy268/tap
    brew install gitguy268/tap/pakket
    

    Or build it yourself: install Go 1.27 or newer and 7-Zip (brew install sevenzip, or sudo apt install 7zip), then:

    git clone https://github.com/Gitguy268/pakket.git
    cd pakket
    go build -o pakket .
    
  2. Open the file browser in any folder:

    pakket
    
  3. Pick files with the arrow keys and space, press c to compress or x to extract, set the options and press Compress or Extract. Press ? for every key, q to quit.

  4. Or script it:

    pakket compress -f zip -p secret Photos/      # AES-256 zip
    pakket extract archive.rar                     # next to the archive
    pakket formats                                 # what works on this machine
    

Features

The contents view of an encrypted 7z archive: sizes, packed sizes, dates and a lock on each encrypted file

Install

How Command
Homebrew (macOS, Linux) brew trust gitguy268/tap && brew install gitguy268/tap/pakket
Go go install github.com/Gitguy268/pakket@latest, then brew install sevenzip or apt install 7zip
From source see Run it locally

Optional extras: brew install unar (StuffIt, Compact Pro, InstallShield) and brew install lrzip (lrz). pakket formats shows what is available.

Use it

pakket                                   # file browser in the current folder
pakket Photos report.pdf                 # compress with your defaults (7z unless changed)
pakket download.zip                      # an archive: extract it

pakket compress -f 7z -P Photos/         # ask for a password, encrypt names too
pakket c -f tar.zst -l 9 project/        # short command and flags
pakket c -f zip --split 650m big-folder/ # big-folder.zip.001, .002, ...
pakket c -s -f gz *.log                  # one .gz per file
pakket c -f dmg --volume-name Backup -p secret Documents/
pakket encrypt -r age1... secrets.txt    # age, to a public key
pakket encrypt notes/                    # age, asks for a passphrase

pakket extract -d ~/Desktop *.rar        # several archives
pakket x --folder always --delete a.7z   # always a folder, archive to Trash
pakket x -e shift_jis old.zip            # Japanese names from an old Windows zip
pakket x big-folder.zip.002              # any volume of a split archive
pakket decrypt -i ~/.age/key.txt file.tar.age

pakket list archive.7z                   # sizes, packed sizes, dates, encryption
pakket list --json archive.iso | jq '.[].name'
pakket test *.zip                        # check CRCs; exit code 1 if one fails
pakket keychain save archive.7z          # remember a password for this archive
All compress options
Flag Meaning
-f, --format output format, see Formats
-l, --level 0-9 0 stores only, 9 is maximum compression
-p, --password, -P, --ask-password encrypt (7z, zip, dmg, age); also $PAKKET_PASSWORD
--show-names 7z: leave file names readable
--zip-legacy zip: ZipCrypto instead of AES-256
--no-solid 7z: non-solid
--keep-mac keep .DS_Store, ._ files and __MACOSX
-x, --exclude GLOB skip matching names, repeatable
-s, --separate one archive per input
--delete move the originals to the Trash afterwards
--split SIZE volumes such as 100m, 700m, 4.7g
-o, --output, -d, --dest, -n, --name where the archive goes and what it is called
--volume-name dmg and iso volume name
--checksum md5|sha256 write <archive>.md5 or .sha256
--export-password write the password to <archive>.txt
--keychain save the password in the macOS Keychain
-r, --recipient age public key or key file, repeatable
--overwrite replace an existing archive
--threads N 7-Zip threads
--notify desktop notification when done
-q, --quiet no progress bar
All extract, list and test options
Flag Meaning
-d, --dest where to extract (default: next to the archive)
--folder smart|always|never smart makes a folder only for several items
-p, --password, -P, --ask-password password; also $PAKKET_PASSWORD
--no-keychain do not look up a stored password
--delete move the archive and its volumes to the Trash afterwards
--no-quarantine do not copy the quarantine flag to the contents
-e, --encoding names in old zips: auto, cp437, shift_jis, gbk, big5, euc-kr, cp866, windows-1251, ...
--overwrite rename|overwrite|skip what to do with existing items
--ignore-gz-name name a .gz result after the archive, not the stored name
--no-nested leave a .tar inside a 7z, lrz or age file packed
-i, --identity age identity (private key) file, repeatable
--json list only: JSON output
--notify, -q, --quiet as for compress

Formats

Run pakket formats to see the same table for your machine, with anything missing marked.

Format Create Extract Password Made by
7z ✓ ✓ AES-256, names too 7-Zip
zip ✓ ✓ AES-256 or ZipCrypto Go; 7-Zip when encrypted
tar, tar.gz/bz2/xz/zst/br/lz4/lz/lzma ✓ ✓ Go
gz, bz2, xz, zst, br, lz4, lz, lzma ✓ ✓ Go (folders become .tar.*)
age ✓ ✓ passphrase or keys Go
dmg ✓ macOS ✓ AES-256 hdiutil (7-Zip on Linux, read only)
iso ✓ macOS ✓ hdiutil makehybrid (UDF, ISO 9660, Joliet); 7-Zip to read
wim ✓ ✓ 7-Zip
aar (Apple Archive) ✓ macOS ✓ macOS aa
lrz ✓ ✓ lrzip, optional
rar, cab, msi, exe, deb, rpm, xar/pkg, cpio, Z, arj, lzh, chm, vhd, vmdk, squashfs, zipx ✓ when the format has one 7-Zip
jar, war, ipa, apk, appx, xpi, epub, cbz, whl ✓ Go (they are zips)
xip ✓ macOS xip
cpgz, pax, spk, wpress ✓ Go (+ 7-Zip for cpio)
sit, sitx, cpt, is3 ✓ unar, optional

Keys

Where Keys
Browser ↑↓/jk move · enter/→ open folder or view archive · ←/⌫ parent · ~ home · space select · a all · esc clear · . hidden files · / filter · r refresh
Actions c compress · x extract · e encrypt (age) · v contents · t test · tab queue · ? help · q quit
Forms ↑↓/tab move · ←→/space change · type into text fields · enter next or press · esc back
Queue ↑↓ move · d cancel or remove · p enter a password · o show in Finder · C clear finished

Settings

Defaults live in ~/.config/pakket/config.json (or $XDG_CONFIG_HOME/pakket). Change them with Save as default in the TUI, or:

pakket config                       # show all
pakket config set format zip
pakket config set level 9
pakket config set folder always
pakket config set notify true
pakket config keys                  # every setting name
pakket config reset

Out of the box: 7z, level 5, solid, encrypted names, Mac junk excluded, smart folders, quarantine kept, Keychain lookup on.

Compared with Keka

pakket follows the feature list Keka documents on keka.io and in its wiki. It is an independent project, not affiliated with Keka.

Keka pakket
Create 7z, zip, tar, gzip, bzip2, xz, lzip, dmg, iso, brotli, zstd, lrzip, aar, wim all of these, plus lz4, lzma and age
Extract 33 formats incl. rar, exe, cab, msi, xip, cpgz, wpress, cpt, spk all of these (cpt and is3 through unar), plus deb, rpm, vhd, squashfs and more
AES-256 7z with encrypted names; zip legacy by default, AES-256 as a hidden setting the same, with AES-256 the zip default and --zip-legacy to switch
Split, solid, exclude resource forks, archive separately, delete after same flags and toggles
ExportPassword and CalculateMD5 hidden settings --export-password, --checksum md5 (or sha256)
Drag files onto the Dock icon or window pakket <files>, or the TUI browser
Finder context menu and default-app integration not built in: see Limits
Keychain password storage, age encryption, JSON listings, integrity test, scripts

How it works

Engine, external tools and safety

Limits

Contributing

Bug reports, format samples (that hold nothing private) and pull requests are welcome. See CONTRIBUTING.md; report security problems privately as described in SECURITY.md.

License

MIT © 2026 Lucas Van De Weerd. Third-party code and the programs pakket runs are listed in NOTICE. 7-Zip is LGPL and runs as a separate program. pakket is not affiliated with Keka or aONe.