The package is in a hold state, meaning the program receives no automatic updates.There are multiple way on how to determine whether a specific package is already installed on your system. The possible conditions are:įor example, to stop a package from updating, use: echo cowsay hold | sudo dpkg -set-selections The command expects the package state as standard input. Set the package selection for a package in the following format: echo | dpkg -set-selections Use this method when you require a list of installed programs. awk prints only the first column with the package names.grep filters out packages marked "deinstall".To fetch a list of installed packages, use the following command: dpkg -get-selections | grep -v "deinstall" | awk '' The list shows package names and the selection marking. Privileged access management helps secure the system by disallowing regular users to make system-wide changes. Information-based options do not require special user privileges. Use before action.Īctions that change the system, such as package installation or removal, require sudo privileges. Handles action recursively in target directory and subdirectories. Search for a pattern in installed packages. Shows the status of an installed package. Sets file selection states from a file read from standard input. Deletes configuration files and other data.įetches packages with current selections. Does not remove configuration files and other data. Unpacks the package without configuration. The table below provides brief descriptions of commonly used options and actions for the dpkg command. The dpkg command detects the foreign options and runs dpkg-query automatically. The action -l is a dpkg-query action that lists all packages from the dpkg database. Therefore, the following two commands show the same result: dpkg -l dpkg-query -l The dpkg command runs actions from dpkg-query and dpkg-deb. The dpkg-query command, which shows the information from the dpkg database. The dpkg-deb command, which shows information about. The dpkg command acts as a front-end for the following two tools:ġ. The command accepts one action and zero or more options. The basic syntax for the dpkg command is: dpkg action
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |