![Forrest logo](/images/logo.png)
aptitude:tldr:9ea23
aptitude: Search for an installed package (`?installed` is an aptitude search term).
$ aptitude search '?installed(${package})'
try on your machine
This command is utilized in the package manager called aptitude in Linux systems. It is used to search for installed packages that match a specific criteria.
In this specific command, the criteria is defined using a pattern which includes a variable named "package". The syntax '${package}' is used to refer to the value of this variable.
The command 'aptitude search' is used to search for packages matching a given pattern. The '?installed()' syntax is what specifies the criteria for the search. In this case, the 'installed()' function is used to check if a package is installed on the system.
So, this command will search for packages that are installed on the system and match the value specified for the variable 'package'.
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.