---
name: "Config::Model::models::Approx"
section: "3pm"
platform: "linux"
package: "libconfig-model-approx-perl"
version: "1.012-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Config::Model::models::Approx"
---

# Config::Model::models::Approx(3pm)

Configuration class Approx

## NAME

Config::Model::models::Approx - Configuration class Approx

## DESCRIPTION

Configuration classes used by Config::Model

Configuration model for Approx

## Elements

### cache - approx cache directory

Specifies the location of the approx cache directory (default: /var/cache/approx). It and all its subdirectories must be owned by the approx server (see also the `$user` and `$group` parameters, below.)  *Optional. Type uniline.*

- upstream\_default value :

  /var/cache/approx

### interval - file cache expiration in minutes

Specifies the time in minutes after which a cached file will be considered too old to deliver without first checking with the remote repository for a newer version.  *Optional. Type integer.*

- upstream\_default value :

  720

### max\_rate - maximum download rate from remote repositories

Specifies the maximum download rate from remote repositories, in bytes per second (default: unlimited). The value may be suffixed with "K", "M", or "G" to indicate kilobytes, megabytes, or gigabytes per second, respectively.  *Optional. Type uniline.*

### max\_redirects - maximum number of HTTP redirections

Specifies the maximum number of HTTP redirections that will be followed when downloading a remote file.  *Optional. Type integer.*

- upstream\_default value :

  5

### user - user that owns the files in the approx cache

 *Optional. Type uniline.*

- upstream\_default value :

  approx

### group - group that owns the files in the approx cache

 *Optional. Type uniline.*

- upstream\_default value :

  approx

### syslog - syslog(3) facility to use when logging

 *Optional. Type uniline.*

- upstream\_default value :

  daemon

### pdiffs - support IndexFile diffs

 *Optional. Type boolean.*

- upstream\_default value :

  1

### offline - use cached files when offline

Specifies whether to deliver (possibly out-of-date) cached files when they cannot be downloaded from remote repositories.  *Optional. Type boolean.*

- upstream\_default value :

  0

### max\_wait - max wait for concurrent file download

Specifies how many seconds an [**approx**(8)](/approx/8.md) process will wait for a concurrent download of a file to complete, before attempting to download the file itself.  *Optional. Type integer.*

- upstream\_default value :

  10

### verbose

Specifies whether informational messages should be printed in the log.  *Optional. Type boolean.*

- upstream\_default value :

  0

### debug

Specifies whether debug messages should be printed in the log.  *Optional. Type boolean.*

- upstream\_default value :

  0

### distributions - remote repositories

The other name/value pairs are used to map distribution names to remote repositories. For example,

```
  debian     =>   http://ftp.debian.org/debian
  security   =>   http://security.debian.org/debian-security
```

Use the distribution name as the key of the hash element and the URL as the value .  *Optional. Type hash of uniline.*

## SEE ALSO

- •

  cme

## AUTHOR

- Dominique Dumont

  ## COPYRIGHT

- 2011, Dominique Dumont

  ## LICENSE

- LGPL-2.1+
