dpkg Flashcards
dpkg
dpkg is a tool to install, build, remove and manage Debian packages.
dpkg -i
-i, –install package-file, install the package.
dpkg -l
-l, –list package-name-pattern, List packages matching given pattern.
dpkg -r
-r, –remove package, Remove an installed package.
dpkg -P
-P, –purge package, Purge an installed or already removed package. Removes both the package and configuration file. -r only removes the package.
dpkg -c
-c, –contents archive, Lists contents of a deb package.
dpkg -s
-s, –status package-name, Report status of specified package.
dpkg -L
-L, –listfiles package-name, List files installed to the system from package-name.
dpkg -R
dpkg -R –install
- R, –recursive, Recursively handle all regular files matching pattern *.deb in specified directory.
- R –install, Recursively install all packages in specified directory.
dpkg –unpack
–unpack package-file, Unpack the package, but don’t configure it.
dpkg –configure
–configure package, Configure a package which has been unpacked but not yet configured.
dpkg –update-avail
dpkg –merge-avail
Update dpkg’s and dselect’s idea of which packages are available.
–update-avail, Replaces old information with information in the Packages-file.
–merge-avail, Old information is combined with information from the Packages-file.
dpkg –clear-avail
–clear-avail, Erase the existing information about what packages are available.
dpkg –forget-old-unavail
This option is now obsolete because dpkg will automatically forget uninstalled unavailable packages.
dpkg –version
Displays the dpkg version.