'\" t .TH "PORT\-RESTORE" "1" "2\&.10\&.99" "MacPorts 2\&.10\&.99" "MacPorts Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" port-restore \- Restore snapshots of installed ports\&. .SH "SYNOPSIS" .sp .nf \fBport\fR [\fB\-vdN\fR] \fBrestore\fR [\-\-snapshot\-id \fIid\fR] [\-\-last] [\-\-all] .fi .SH "DESCRIPTION" .sp \fBport restore\fR changes the set of active ports to match the state recorded in a previously created snapshot\&. All ports are first deactivated, and then each port included in the snapshot is installed or activated as needed, with the requested variants also as set in the snapshot\&. .SH "OPTIONS" .PP \fB\-\-snapshot\-id ID\fR .RS 4 Restore the snapshot with the specified ID\&. .RE .PP \fB\-\-last\fR .RS 4 Restore the last created snapshot\&. .RE .PP \fB\-\-all\fR .RS 4 Restore all ports in the snapshot including unrequested ones\&. By default, only requested ports and their dependencies are restored\&. .RE .SH "GLOBAL OPTIONS" .sp Please see the section \fBGLOBAL OPTIONS\fR in the \fBport\fR(1) man page for a description of global port options\&. .PP \fB\-N\fR .RS 4 Non\-interactive mode, fail if multiple snapshots exist and a particular snapshot was not specified\&. .RE .SH "SEE ALSO" .sp \fBport\fR(1), \fBport-snapshot\fR(1), \fBport-migrate\fR(1) .SH "AUTHORS" .sp .if n \{\ .RS 4 .\} .nf (C) 2024 The MacPorts Project Joshua Root .fi .if n \{\ .RE .\}