Config...:Approx(3pm)
π Config::Model::models::Approx π
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's giving "manpage for a config model" energy, which sounds boring but is actually kinda iconic. let's get into it π«Ά
β¨ NAME β¨
Config::Model::models::Approx β the Configuration class for Approx. that's it, that's the name, she's simple and she slays π
πΈ DESCRIPTION πΈ
So basically: these are the Configuration classes used by Config::Model.
And more specifically? It's the Configuration model for Approx. yes queen, it's the blueprint for how approx gets configured. no thoughts, just config π
π¦ Elements π¦
these are the pieces, the lil building blocks, the main characters of this whole model. every single one matters, don't skip a single one bestie π
π cache β approx cache directory
This one specifies the location of the approx cache directory β and the default is /var/cache/approx. Important detail tho: it and all of its subdirectories must be owned by the approx server (see also the $user and $group parameters, down below π).
- Optional? yes bestie, 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 is 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 π).
And here's the cute part: the value may be suffixed with "K", "M", or "G" to indicate kilobytes, megabytes, or gigabytes per second, respectively. so like, 500K? yes. 2G? go off. π
- 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. it's giving "how many detours am i willing to take" π
- Optional.
- Type:
integer. - upstream_default value:
5
π user β user that owns the files in the approx cache
the user who owns the cache files. that's the whole vibe.
- Optional.
- Type:
uniline. - upstream_default value:
approx
πΈ group β group that owns the files in the approx cache
same energy as above but for the group, bestie.
- Optional.
- Type:
uniline. - upstream_default value:
approx
π syslog β syslog(3) facility to use when logging
which syslog facility gets used for logging. log girlies rise π«Ά
- Optional.
- Type:
uniline. - upstream_default value:
daemon
π pdiffs β support IndexFile diffs
whether to support IndexFile diffs. that's it, that's the whole thing β¨
- 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.
not me warning you that these files might be stale, but okay, you do you bestie
- Optional.
- Type:
boolean. - upstream_default value:
0
β³ max_wait β max wait for concurrent file download
Specifies how many seconds an approx(8) process will wait for a concurrent download of a file to complete, before attempting to download the file itself. the way that it waits its turn first... patient queen behavior π
- Optional.
- Type:
integer. - upstream_default value:
10
π¬ verbose
Specifies whether informational messages should be printed in the log. chatty era, honestly.
- Optional.
- Type:
boolean. - upstream_default value:
0
π debug
Specifies whether debug messages should be printed in the log. for when you need to see EVERYTHING, no cap π
- Optional.
- Type:
boolean. - upstream_default value:
0
πΊοΈ distributions β remote repositories
okay so 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
(yes that's the whole list, and honestly? iconic for her π )
π AUTHOR π
Dominique Dumont β absolute legend, we respect her π«Ά
Β©οΈ COPYRIGHT Β©οΈ
2011, Dominique Dumont
π LICENSE π
LGPL-2.1+
and that's the tea bestie π΅ β this came to you courtesy of perl v5.36.0, dated 2022-10-14, by way of that very same Config...:Approx(3pm) page. mwah π
π¦ where this page comes from
- ubuntu noble: libconfig-model-approx-perl 1.012-2 Β· LGPL-2.1-or-later
- ubuntu resolute: libconfig-model-approx-perl 1.012-2 Β· LGPL-2.1-or-later
- ubuntu stonking: libconfig-model-approx-perl 1.012-2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms