Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

repair

Clean up packages left in incomplete states when commands such as install or activate do not complete cleanly.

repair only performs cleanup. It does not retry or resume those commands.

Usage

foton repair [OPTIONS] [<PACKAGE>...]

Arguments

<PACKAGE>

Package names, optionally with an exact version as <package-name>@<version>.

If not specified, every package that needs cleanup will be cleaned up.

Global options

--exit-on-lock

Exit immediately if the package database is locked by another operation.

--no-confirm

Skip interactive confirmation prompts.

--warnings-as-errors

Treat warnings as errors, causing the command to fail if any warning is emitted.

Examples

foton repair
foton repair <package-name>
foton repair <package-name>@<version>

Notes

  • If cleanup cannot be completed, the package may remain in the local package database so that you can retry repair later.