blob: 682487c74d04e009a4416e77a2a24cdeaeb0ff0c [file] [log] [blame]
.TH "EMAINT" "1" "Feb 2021" "Portage VERSION" "Portage"
emaint \- performs package management related system health checks and maintenance
.BR emaint
[\fBall\fR | \fBbinhost\fR | \fBcleanresume\fR | \
\fBmerges\fR | \fBmovebin\fR | \fBmoveinst\fR | \fBsync\fR | \fBworld\fR]
The emaint program provides a command line interface to package
management health checks and maintenance.
.BR all
Perform all supported commands that accept the specified option.
.BR binhost
Generate a metadata index for binary packages located in \fBPKGDIR\fR (for
download by remote clients). See the \fBPORTAGE_BINHOST\fR documentation in
the \fBmake.conf\fR(5) man page for additional information.
OPTIONS: check, fix
.BR cleanconfmem
Discard no longer installed config tracker entries.
OPTIONS: check, fix
.BR cleanresume
Discard merge lists saved for the \fBemerge\fR(1) \fB--resume\fR action.
OPTIONS: check, fix
.BR logs
Clean out old logs from the \fBPORTAGE_LOGDIR\fR using the command
See the \fBmake.conf\fR(5) man page for additional information as well as
enabling the \fB'clean-logs'\fR feature in emerge to do this automatically.
OPTIONS: check, clean
.BR merges
Scan for failed package merges and attempt to fix those failed packages.
OPTIONS: check, fix, purge
.BR movebin
Perform package move updates for binary packages located in \fBPKGDIR\fR.
OPTIONS: check, fix
.BR moveinst
Perform package move updates for installed packages.
OPTIONS: check, fix
.BR sync
Perform sync actions on specified repositories.
OPTIONS: allrepos, auto, repo
.BR world
Fix problems in the \fIworld\fR file.
OPTIONS: check, fix
.SH DEFAULT OPTIONS (Not supported in all commands)
.BR \-c ", " \-\-check
Check for any problems that may exist.
.BR \-f ", " \-\-fix
Fix any problems that may exist.
.SH OPTIONS logs command only
.BR \-C ", " \-\-clean
Cleans the logs from \fBPORTAGE_LOGDIR\fR
.BR \-p ", " \-\-pretend
Sets pretend mode (same as \-c, \-\-check) for use with the \-C, \-\-clean
.BR \-t \ \fINUM\fR,\ \-\-time \ \fINUM\fR
Changes the minimum age \fINUM\fR (in days) of the logs to be listed or
.SH OPTIONS merges command only
.BR \-y ", " \-\-yes
Do not prompt for emerge invocations.
.SH OPTIONS sync command only
.BR \-a ", " \-\-auto
Sync repositories which have their auto\-sync setting set yes, true.
.BR \-A ", " \-\-allrepos
Sync all repositories which have a sync\-uri specified.
.BR \-r ", " \-\-repo \ \fIREPO\fR
Sync the repository specified.
.BR \-\-sync-submodule \ \fI<glsa|news|profiles>\fR
Restrict sync to the specified submodule(s). This option may be
specified multiple times, in order to sync multiple submodules.
Currently, this option has no effect for sync protocols other
than rsync.
Please report bugs via
Pavel Kazakov <>
Mike Frysinger <>
Brian Dolbec <>
.B /var/lib/portage/world
Contains a list of all user\-specified packages.
.B /var/lib/portage/config
Contains the paths and md5sums of all the config files being tracked.
.B /var/lib/portage/failed-merges
Contains the packages and timestamps of any failed merges being cleaned from
the system, and to be re-emerged.
.BR emerge (1),
.BR portage (5)