Forrest logo
back to the pm tool

pm:tldr:a5a18

pm: List apps matching specific keywords.
$ pm list packages ${keyword1 keyword2 ---}
try on your machine

This command is used to list all the packages installed on an Android device that match the specified keywords.

Here's a breakdown of the command:

  • pm: This refers to the package manager command-line tool in Android. It allows you to manage packages (apps) installed on the device.

  • list packages: This is the specific command within pm that lets you list all the installed packages on the device.

  • ${keyword1 keyword2 ---}: This is where you specify the keywords to filter the output. The ${} is a placeholder for the keywords. In this command, you can replace keyword1 and keyword2 with actual keywords you want to search for. The --- at the end is to indicate the end of the keywords.

For example, if you want to list all the packages that contain the word "music" and "player", you would use the command: pm list packages music player ---.

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