sak: Compression command-line tool

[ bsd3, commandline, compression, program ] [ Propose Tags ] [ Report a vulnerability ]

sak is a command-line tool that detects and handles various compression formats


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
with-brotli

Build with support for brotli encoding/decoding (disable this to statically link)

Disabled
with-snappy

Build with support for snappy encoding/decoding

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0, 0.1.1.1, 0.1.2.0, 0.1.2.1, 0.1.2.3, 0.1.2.4, 0.1.2.5, 0.1.2.6, 0.1.3.0, 0.1.3.1, 0.1.3.2
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), brotli, bytestring, bz2 (>=0.1.1.0), directory (>=1.3.1.0), filepath, lz4-hs (>=0.1.4.0), lzlib (>=1.0.7.0), lzma-static, lzo (>=0.1.1.0), optparse-applicative, parallel-io, snappy-lazy, unix-compat, zlib, zstd [details]
License BSD-3-Clause
Copyright Copyright: (c) 2020-2021 Vanessa McHale
Author Vanessa McHale
Maintainer vamchale@gmail.com
Category CommandLine, Compression
Bug tracker https://hub.darcs.net/vmchale/sak/issues
Source repo head: darcs get https://hub.darcs.net/vmchale/sak
Uploaded by vmchale at 2024-04-20T19:45:18Z
Distributions
Executables sak
Downloads 2966 total (3 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2024-04-20 [all 2 reports]

Readme for sak-0.1.3.2

[back to package description]

sak

sak is a command-line tool for compression.

Installation

Binary Releases

You can find binaries for many platforms here.

Source

With cabal-install:

cabal install sak

Use

To convert compression format:

sak transcode sak-0.1.0.0.tar.gz sak-0.1.0.0.tar.lz

To recompress a file:

sak recompress binary.tar.zst --best

Bash Completions

To get bash completions in your current shell session:

eval "$(sak --bash-completion-script sak)"

You can put this in your ~/.bashrc or ~/.bash_profile as needed.

Manpages

man/sak.1 contains manpages for sak

Comparison

Features

sak has some features not present in most decompressors (such as lzip or zstd)

  • transcode - converts from one compressed format to another (streaming)
  • recompress - loads a file into memory and compresses it at a higher level
  • verify - simply verifies that a file is valid

Performance

Performance should be on the same order of magnitude as the various C command-line tools (gzip, lzop, zstd, &c.).