apk-fetch(8) System Manager's Manual apk-fetch(8)

# [NAME](#NAME)

apk fetch - download packages from global repositories to a local directory

# [SYNOPSIS](#SYNOPSIS)

**apk fetch** \[&lt;*options*&gt;...] *packages*...

# [DESCRIPTION](#DESCRIPTION)

**apk fetch** downloads the requested packages from the configured package repositories (see [**apk-repositories**(5)](/man/os/apk-tools/apk-repositories.5)) to a local directory. The current working directory is used as the destination directory unless **-o** is specified.

# [OPTIONS](#OPTIONS)

**--built-after** *TIMESPEC*

Only fetch packages that have buildtime more recent than TIMESPEC. TIMESPEC can be a "YYYY-MM-DD HH:MM:SS" date, or seconds since epoch.

**-l, --link**

Create hard links if possible.

**-o, --output** *DIR*

Write the downloaded file(s) to *DIR*.

**-R, --recursive**

Fetch packages and all of their dependencies.

**-s, --stdout**

Dump the .apk file(s) to stdout.

**Note**: this option is incompatible with **-o**, **-R**, and the global **--progress** option.

**-w, --world**

Download packages needed to satisfy *world*. Implies **--recursive**.

**--simulate**

Simulate the requested operation without making any changes.

**Note**: this option is unreliable if needed indexes are not up-to-date as this omits refresing or downloading of missing indexes.

**--url**

Print the full URL for downloaded packages.

2026-10-01

---

Document: apk-fetch(8) from apk-tools 2.14.10-r17 (Chainguard OS)
Source: https://gitlab.alpinelinux.org/alpine/apk-tools.git
