Forrest logo
back to the emerge tool

emerge:tldr:22974

emerge: Remove orphaned packages (that were installed only as dependencies).
$ emerge -avc
try on your machine

The command "emerge -avc" is used in Gentoo Linux (a distribution known for its package manager called Portage) to update and upgrade packages installed on the system.

Here is the breakdown of the command:

  • "emerge" is the package manager command used in Gentoo Linux to handle package installations, updates, and removals.
  • "-a" stands for "ask" and it instructs emerge to prompt the user before performing any actions. This allows the user to review the changes to the system before proceeding.
  • "-v" stands for "verbose" and it provides more detailed output during the process. It shows additional information about the packages being updated or installed.
  • "-c" stands for "clean" and it removes any old versions of the packages after the update or installation is complete. This frees up disk space by removing unnecessary files.

So, when you run "emerge -avc", Portage will check for available updates for all installed packages, show you the changes that will be made to the system, prompt for confirmation, and then proceed to update the packages. After the updates are completed, Portage will clean up any old versions of the packages to save disk space.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the emerge tool