acngfs(8) | Eduard Bloch | acngfs(8) |
acngfs - Virtual file system for use with apt-cacher-ng
acngfs BaseURL MountPoint [ proxy=ProxyHost:ProxyPort ] [ cachedir=CachePath ] [ more_acng=settings] [FUSE Mount Options]
acngfs is a FUSE based filesystem which represents files downloadable via HTTP as part of a local filesystem. It has been developed for very specific purposes and is not intended to be a general purpose HTTP filesystem.
The main use case for acngfs is a situation where:
If the apt-cacher-ng instance happens to run on the same system as acngfs or its cache repository is mounted via fast remote file system, this cache repository can be optionally specified as alternative source path. In this cache, acngfs will attempt to read files directly from this filesystem where possible, reducing network latency and avoiding additional load of apt-cacher-ng server. The directory levels of BaseURL and CachePath should match.
Typical use may be to let apt/dpkg use package file like they are present on the local filesystem so there is no need to download them. In sources.list, the source appears as a file:/ type URL, like:
deb file:/var/local/acngfs_debian unstable main contrib
and the filesystem backend is prepared with a command like:
/usr/lib/apt-cacher-ng/acngfs http://ftp.uni-kl.de/debian proxy=cacheBox:3142 /var/local/acngfs_debian -o allow_root
or for a locally installed apt-cacher-ng with common Debian cache repository stored in /var/cache/apt-cacher-ng/debrep:
/usr/lib/apt-cacher-ng/acngfs http://ftp.uni-kl.de/debian /var/cache/apt-cacher-ng/debrep proxy=localhost:3142 cachedir=/var/local/acngfs_debian -o allow_root
The command-line options supported by acngfs are:
Permissions of the files are important when using mounting when sharing data with other users (including root!). To mount as user and let root use the package management tools (apt, dpkg), one may need to use FUSE options like in the following example:
acngfs http://ftp.uni-kl.de/debian http://localhost:3142 /mnt/misc -o allow_root
See FUSE documentation for details about file permissions representation.
Software is still experimental, use at your own risk!
There are natural limitations on capabilities of the FS: no directory browsing is allowed (only blind descending), permissions of files are inherited from the mount point as well as other properties of the filesystem.
Should be used with apt-cacher-ng version 0.2pre2 or newer; otherwise it could flood log files with many requests from small file chunks.
apt-cacher-ng(8), fusermount(1)
For more information on Apt-Cacher NG, read the User Manual which can be found either in the doc/pdf directory of the software source package or installed in the documentation directory of apt-cacher-ng by your distribution.
Juni 2008 | acngfs |