.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "apk\-fix" "8" "2026\-08\-31" .PP .SH NAME .PP apk fix \- repair packages or system .PP .SH SYNOPSIS .PP \fBapk fix\fR [<\fIoptions\fR>.\&.\&.\&] [\fIpackages\fR.\&.\&.\&] .PP .SH DESCRIPTION .PP \fBapk fix\fR applies repair strategies to correct errors in the installation of the specified packages, or all installed packages if none are specified.\& .PP .SH OPTIONS .PP \fBapk fix\fR supports the commit options described in \fBapk\fR(8), as well as the following options: .PP \fB\-\-depends\fR, \fB\-d\fR .RS 4 Also fix dependencies of specified packages.\& .PP .RE \fB\-\-directory\-permissions\fR .RS 4 Reset all directory permissions.\& .PP .RE \fB\-\-reinstall\fR, \fB\-r\fR .RS 4 Reinstall packages (default).\& .PP .RE \fB\-\-upgrade\fR, \fB\-u\fR .RS 4 Upgrade name \fIPACKAGE\fR if an upgrade exists and does not break dependencies.\& .PP .RE \fB\-\-xattr\fR, \fB\-x\fR .RS 4 Fix packages with broken xattrs.\& .RE