Forrest logo
back to the pacman tool

pacman:tldr:da6d4

pacman: List orphan packages (installed as dependencies but not actually required by any package).
$ pacman -Qtdq
try on your machine

The command "pacman -Qtdq" is used in the Arch Linux operating system to list orphaned packages. Here is an explanation of each component:

  • "pacman" refers to the package manager utility of Arch Linux.
  • "-Q" is a flag indicating that the command is querying the package database.
  • "t" is a flag specifying that the query should target packages that are no longer required as dependencies.
  • "d" is a flag indicating that the query should target explicitly installed packages.
  • "q" is a flag to produce the output in a more concise, quiet format.

When you run the command "pacman -Qtdq", it will display a list of packages that are no longer required as dependencies and have been explicitly installed by the user. These packages are commonly referred to as "orphans" because they are not needed by any other package on the system. This command is useful for identifying and removing unnecessary packages to keep the system clean and optimize disk space usage.

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 pacman tool