.\" Generated by scdoc 1.11.3 .\" 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-upgrade" "8" "2024-04-29" .PP .SH NAME .PP apk upgrade - upgrade installed packages .PP .SH SYNOPSIS .PP \fBapk upgrade\fR [<\fIoptions\fR>.\&.\&.\&] [<\fIpackages\fR>.\&.\&.\&] .PP .SH DESCRIPTION .PP \fBapk upgrade\fR upgrades installed packages to the latest version available from configured package repositories (see \fBapk-repositories\fR(5)).\& When no packages are specified, all packages are upgraded if possible.\& If list of packages is provided, only those packages are upgraded along with needed dependencies.\& .PP .SH OPTIONS .PP \fBapk upgrade\fR supports the commit options described in \fBapk\fR(8), as well as the following options: .PP \fB-a, --available\fR .RS 4 Reset all packages to versions available from current repositories.\& This resets all versioned dependencies in \fIworld\fR (see \fBapk-world\fR(5)).\& Additionally, packages are selected from active repositories if possible even if it means replacing or downgrading the package.\& .PP This is useful to reset system against new set of packages after updating repositories.\& .PP .RE \fB--ignore\fR .RS 4 Upgrade all other packages than the ones listed.\& This inverts the given package name list to mean packages that should not be upgraded.\& .PP .RE \fB-l, --latest\fR .RS 4 Always choose the latest package by version.\& However, the versions considered are based on the package pinning.\& Primarily this overrides the default heuristic and will cause an error to displayed if all dependencies cannot be satisfied.\& .PP .RE \fB--no-self-upgrade\fR .RS 4 Do not do an early upgrade of the '\&apk-tools'\& package.\& .PP .RE \fB--prune\fR .RS 4 Prune the \fIworld\fR by removing packages which are no longer available from any configured repository.\& .PP .RE \fB--self-upgrade-only\fR .RS 4 Only perform a self-upgrade of the '\&apk-tools'\& package.\&