PKG-FETCH(8)

πŸ“¦ version 2.7.5, in nixos 26.05, nixpkgs unstable

πŸ’… NAME

pkg fetch β€” fetch remote packages 🫢✨ (like, it goes and grabs packages for you from a remote repo, no cap)

System Manager's Manual energy, but make it group chat πŸ’–


✨ SYNOPSIS ✨

pkg fetch [-r reponame ...] [-dqUy] [-Cgix] pkg-name [...]
pkg fetch [-r reponame ...] [-o destdir] [-dqsUy] -a
pkg fetch [-r reponame ...] [-dqUy] -u

pkg fetch [--repository reponame ...] [--output destdir]
    [--{dependencies,quiet,symlink,no-repo-update,yes}]
    [--{case-sensitive,glob,case-insensitive,regex}] pkg-name [...]
pkg fetch [--repository reponame ...]
    [--{dependencies,quiet,symlink,no-repo-update,yes}] --all
pkg fetch [--repository reponame ...]
    [--{dependencies,quiet,no-repo-update,yes}] --available-updates

🌸 DESCRIPTION 🌸

okay so pkg fetch is literally the downloader bestie πŸ’… β€” it grabs binary packages from a remote repository and pulls them down for you. Obsessed.

You can name one or more packages, or patterns, and it'll go get them πŸŽ€

And here's the lil automatic thing you need to know: package repository catalogues get auto-updated whenever pkg fetch is run by a user ID with write access to the package database β€” unless you disable it with the -U flag, or by setting REPO_AUTOUPDATE to NO in pkg.conf(5). iykyk ✨


πŸ‘‘ OPTIONS πŸ‘‘

The following options are supported by pkg fetch (the full lineup, fr fr, nothing skipped):

  • -a, --all β€” Fetch all packages. every single one bestie πŸ’€
  • -o destdir, --output destdir β€” Place files in a sub-directory called All of the specified directory. In this mode, packages are fetched for distribution instead of placing them into the internal cache. so like, distribution mode, not cache mode 🫢
  • -C, --case-sensitive β€” Make the standard or the regular expression (-x) matching against pkg-name case sensitive.
  • -d, --dependencies β€” Fetch the package and its dependencies as well. the whole friend group comes too πŸ˜­πŸ’–
  • -g, --glob β€” Treat pkg-name as a shell glob pattern.
  • -i, --case-insensitive β€” Make the standard or regular expression (-x) matching against pkg-name case insensitive. This is the default, unless modified by setting CASE_SENSITIVE_MATCH to true in pkg.conf. default slay πŸ’…
  • -q, --quiet β€” Quiet mode. Show less output. for when the yapping is too much πŸ™ˆ
  • -r reponame, --repository reponame β€” Fetches packages from the given reponame if multiple repo support is enabled. This option can be specified multiple times to use several repositories. See pkg.conf(5). stack 'em, bestie ✨
  • -s, --symlink β€” Create a symlink to the fetched package in the All directory when using -o to fetch packages for distribution. This is useful when the remote repository stores packages in a hashed directory structure (All/Hashed/xx/) but local tools expect packages directly in All/. linking things up, iconic behavior πŸ”₯
  • -u, --available-updates β€” Fetch all available updates for the currently installed packages. glow-up time for your installed stuff πŸ‘‘
  • -U, --no-repo-update β€” Suppress the automatic update of the local copy of the repository catalogue from remote. Automatic repository catalogue updates are only attempted when the effective UID of the process has write access to the package database. Otherwise they are silently ignored. so like, no auto-refresh, and if you can't write to the db it just quietly doesn't even try πŸŽ€
  • -x, --regex β€” Treat pkg-name as a regular expression according to the "modern" or "extended" syntax of re_format(7).
  • -y, --yes β€” Assume yes when asked for confirmation before fetching packages. auto-yes, no vibes check needed βœ…πŸ’–

πŸ¦‹ ENVIRONMENT πŸ¦‹

The following environment variables affect the execution of pkg fetch:

  • PKG_DBDIR
  • CASE_SENSITIVE_MATCH
  • PKG_REPO_SYMLINK β€” If set, enables symlink creation when fetching packages with -o, equivalent to specifying -s. literally the same as the flag, no cap ✨

See pkg.conf(5) for additional environment variables that control behaviour.


πŸ“ FILES πŸ“

See pkg.conf(5).


🌈 SEE ALSO 🌈

the whole squad, in order, fr fr:

pkg_create(3), pkg_printf(3), pkg_repo_create(3), pkg_repos(3), pkg-keywords(5), pkg-lua-script(5), pkg-repository(5), pkg-script(5), pkg-triggers(5), pkg.conf(5), pkg(8), pkg-add(8), pkg-alias(8), pkg-annotate(8), pkg-audit(8), pkg-autoremove(8), pkg-check(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-delete(8), pkg-help(8), pkg-info(8), pkg-install(8), pkg-key(8), pkg-lock(8), pkg-plugins(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-repositories(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-triggers(8), pkg-unregister(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)


ngl bestie, that's the whole page β€” go forth and fetch πŸ’…βœ¨

kisses and good vibes from the Debian girlies, dated September 20, 2015 β€” this manual page for PKG-FETCH(8) ate and left no crumbs πŸŽ€πŸ«ΆπŸ’–

πŸ“¦ where this page comes from