23

Can I mount a zip (or other non-solid (so that accessing a file wouldn't decompress the whole archive) compressed archive format file) as a file system in Ubuntu?

Ivan
  • 58,745

3 Answers3

26

Install the package avfs then execute:

mountavfs

Say you have a zip file in ~/Documents/file.zip, then

cd ~/.avfs/home/$USER/Documents
ls -l file.zip#/

You could also browse the content in Nautilus, but you need to add a trailing # character by hand to the path (Ctrl-L to access the address bar).

enzotib
  • 96,093
5

In Nautilus, right click on the archive and then click "Open with Archive Mounter", once you've done this, your archive will show up as a new “drive” in Nautilus. (check tutorial here)

2

fuse-zip is a fuse filesystem, that enables any program to work with a ZIP archive as though it is a plain directory. Unlike KIO or Gnome VFS, it can be used in any application without modifications.

https://github.com/google/mount-zip

Le Droid
  • 121