tar: Reading, writing and manipulating ".tar" archive files.

[ bsd3, codec, library ] [ Propose Tags ] [ Report a vulnerability ]

This library is for working with ".tar" archive files. It can read and write a range of common variations of archive format including V7, POSIX USTAR and GNU formats.

It provides support for packing and unpacking portable archives. This makes it suitable for distribution but not backup because details like file ownership and exact permissions are not preserved.

It also provides features for random access to archive content using an index.


[Skip to Readme]

library tar

library tar:tar-internal

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.1.1, 0.1.1.3, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.4.0.0, 0.4.0.1, 0.4.1.0, 0.4.2.0, 0.4.2.1, 0.4.2.2, 0.4.3.0, 0.4.4.0, 0.4.5.0, 0.5.0.0, 0.5.0.1, 0.5.0.2, 0.5.0.3, 0.5.1.0, 0.5.1.1, 0.6.0.0, 0.6.1.0, 0.6.2.0, 0.6.3.0 (info)
Change log changelog.md
Dependencies array (<0.6), base (>=4.11 && <5), bytestring (>=0.10 && <0.13), containers (>=0.2 && <0.8), deepseq (>=1.1 && <1.6), directory (>=1.3.1 && <1.4), filepath (<1.6), os-string (>=2.0 && <2.1), tar, time (<1.15), transformers (<0.7) [details]
Tested with ghc ==9.10.1, ghc ==9.8.2, ghc ==9.6.5, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4
License BSD-3-Clause
Copyright 2007 Bjorn Bringert <bjorn@bringert.net> 2008-2016 Duncan Coutts <duncan@community.haskell.org>
Author Duncan Coutts <duncan@community.haskell.org> Bjorn Bringert <bjorn@bringert.net>
Maintainer Bodigrim <andrew.lelechenko@gmail.com>
Revised Revision 1 made by AndreasAbel at 2024-06-26T20:38:18Z
Category Codec
Bug tracker https://github.com/haskell/tar/issues
Source repo head: git clone https://github.com/haskell/tar.git
Uploaded by Bodigrim at 2024-06-15T14:07:29Z
Distributions Arch:0.5.1.1, Debian:0.5.1.1, Fedora:0.5.1.1, FreeBSD:0.4.2.1, LTSHaskell:0.6.3.0, NixOS:0.5.1.1, Stackage:0.6.3.0, openSUSE:0.5.1.1
Reverse Dependencies 56 direct, 56 indirect [details]
Downloads 143621 total (511 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-06-15 [all 1 reports]

Readme for tar-0.6.3.0

[back to package description]

tar Hackage

This library is for working with .tar archive files. It can read and write a range of common variations of archive format including V7, POSIX USTAR and GNU formats. It provides support for packing and unpacking portable archives and features for random access to archive content using an index.

For a quick start with the API look at htar/htar.hs, which implements a very basic tar command-line tool.

To run benchmarks download 01-index.tar into the package folder:

wget https://hackage.haskell.org/01-index.tar
cabal bench