Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.07 KB

USAGE.md

File metadata and controls

41 lines (27 loc) · 1.07 KB

How to configure and run go-apt-mirror

Synopsis

go-apt-mirror [options] [MIRROR MIRROR2...]

go-apt-mirror is a console application.
Run it in your shell, or use sudo -u USER to run it as USER.

If MIRROR arguments are given, go-apt-mirror updates only the specified Debian repository mirrors. With no arguments, it updates all mirrors defined in the configuration file.

Configuration

go-apt-mirror reads configurations from a TOML file.
The default location is /etc/apt/mirror.toml.

A sample configuration file is available here.

Proxy

go-apt-mirror uses HTTP proxy as specified in ProxyFromEnvironment.

Options

Option Default Description
-f /etc/apt/mirror.toml Configurations

As go-apt-cacher uses github.com/cybozu-go/well, flags provided by well is also available.