linux:debian:packages-query
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:debian:packages-query [2024/04/24 16:43] – oscar | linux:debian:packages-query [2024/09/15 07:42] (current) – oscar | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| # apt-cache show package_name | # apt-cache show package_name | ||
| - | | ||
| # apt-cache showpkg package_name | # apt-cache showpkg package_name | ||
| - | + | # apt-cache list package_name | |
| ====== Installed Packages ====== | ====== Installed Packages ====== | ||
| - | ==== Check single package ==== | + | ===== Check single package |
| Run apt list package, it will return the available version and if it is installed " | Run apt list package, it will return the available version and if it is installed " | ||
| # apt list package | # apt list package | ||
| Line 22: | Line 20: | ||
| bluez/ | bluez/ | ||
| ------------------------------------------ | ------------------------------------------ | ||
| - | ==== Query all manually installed packages ==== | + | ===== Query all manually installed packages |
| # apt list --manual-installed=true | # apt list --manual-installed=true | ||
| or | or | ||
| # apt-mark showmanual | # apt-mark showmanual | ||
| + | |||
| + | ====== dpkg-query - Low Level ====== | ||
| + | dpkg-query is a tool to query the dpkg database. | ||
| + | < | ||
| + | -l, --list [package-name-pattern...] | ||
| + | | ||
| + | If no package-name-pattern is given, list all packages in / | ||
| + | | ||
| + | |||
| + | -s, --status package-name... | ||
| + | | ||
| + | This just displays the entry in the installed package status database. | ||
| + | |||
| + | -L, --listfiles package-name... | ||
| + | List files installed to your system from package-name. | ||
| + | |||
| + | -S, --search filename-search-pattern... | ||
| + | | ||
| + | | ||
| + | |||
| + | -p, --print-avail package-name... | ||
| + | | ||
| + | Users of APT-based frontends should use apt-cache show package-name instead as the available file | ||
| + | is only kept up-to-date when using dselect. | ||
| + | </ | ||
linux/debian/packages-query.1713976984.txt.gz · Last modified: by oscar
