apk-fix(8)

apk-fix8

Repair packages or system

Usage

apk fix [<options> ...] [packages ...]

Overview

apk fix applies repair strategies to correct errors in the installation of the specified packages, or all installed packages if none are specified.

Options

apk fix supports the commit options described in apk(8), as well as the following options:

--depends, -d

Also fix dependencies of specified packages.

--directory-permissions

Reset all directory permissions.

--reinstall, -r

Reinstall packages (default).

--upgrade, -u

Upgrade name PACKAGE if an upgrade exists and does not break dependencies.

--xattr, -x

Fix packages with broken xattrs.

From apk-tools 3.0.8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.