2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/dpkg

13 lines
416 B
Plaintext
Raw Normal View History

2020-02-17 01:59:30 +00:00
# Display the package(s) in which the given file would be found. This is very
# useful, because it lets you know to which package a file belongs.
dpkg -S /usr/bin/awk
2020-02-17 02:06:00 +00:00
# Where FILE is the provided Debian package to install, so instructed by `-i`.
dpkg -i [FILE]
# List Debian packages currently installed.
dpkg --get-selections
# List Debian packages installed and in other states, such as not-yet-purged.
dpkg -l