PKG-FETCH(8)
π 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 calledAllof 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 settingCASE_SENSITIVE_MATCHtotruein 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 theAlldirectory when using-oto 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 inAll/. 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_DBDIRCASE_SENSITIVE_MATCHPKG_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
- nixos 26.05: pkg 2.7.5
- nixpkgs unstable: pkg 2.7.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms