Config...:Approx(3pm)

πŸ“¦
version 1.012 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 🫢


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