archivemount — mount an archive for access as a filesystem
Contents
Archive Formats
See libarchive(3) for a definitive list, but all kinds of tar/ustar/pax/cpio archives, 7-Zip, ISO9660,
ar, and RAR/Zip may be read. These may be compressed with gzip(1), xz(1), zstd(1), &c. and are processed
transparently. The same applies for writing (except you can't write RARs).
Bugs
Writing archives, probably.
Description
Mounts, through fuse(8), a file tree contained in archive on directory mountpoint. umount and fusermount-u can undo this mapping.
Examples
$ls
files.tar.gz mnt/
$tar-tffiles.tar.gz
file1 file2
$archivemountfiles.tar.gzmnt$lsmnt
file1 file2
$echozupa>mnt/file3$rmmnt/file1$umountmnt$ls
files.tar.gz files.tar.gz.orig mnt/
$tar-tffiles.tar.gz
file2 file3
$tar-tfvoreutils.tar.gz
src/ src/…
man/ man/aliases man/basename.1
README.md
$archivemount-osubtree=manvoreutils.tar.gzmnt$lsmnt
aliases basename.1
Name
archivemount — mount an archive for access as a filesystem
Options
See fuse(8) for a complete list of the baseline FUSE options supported. The following options are
handled specially by archivemount:
-h, --help Write usage and all available options to standard error stream, then exit.
-V, --version Write version of archivemount, libarchive, and FUSE to the standard output stream, then
exit.
-r, -oro, -oreadonly: Disable writes entirely.
-opassword Prompt for archive passphrase.
-onobackup When saving writes, the original archive is moved to "archive.orig". This flag removes
that file afterward.
-onosave Allow writes in memory, but don't actually write them out on unmount.
-osubtree=regex Hide files not matching regex, and on those that do match, remove the matched prefix
(cf. second example above). regex is a basic regular expression that behaves as-if
prepended with the equivalent of "^.?". Implies -r.
-oformatrawarchive is actually a compressed file, made available under mounpoint/saved-filename or
mounpoint/data. Implies -r.
See Also
fusermount(1), libarchive(3), regex(7), fuse(8), umount(8) archivemount-ng 1a-1 December 21, 2024 ARCHIVEMOUNT(1)
Synopsis
archivemount [-hVdf] [-ooption[,option]…]… archivemountpoint
