Homepage › Forums › Articles › Operating Systems › Linux › Debian Linux › Debian Package Management Commands
Tagged: apt-get, debian, dpkg, package-management
This topic was published by DevynCJohnson and viewed 1689 times since "". The last page revision was "".
Viewing 1 post (of 1 total)
- AuthorPosts
Command Description apt-cache apt-cache depends PKG list package's dependencies apt-cache PKG list available packages apt-cache pkgname KEYWORD list all package names starting with KEYWORD apt-cache search KEYWORD list packages and a brief description apt-cache show PKG get info on package apt-cache showpkg PKG list dependencies apt-cache stats cache statistics apt-cdrom apt-cdrom add add an optical disc as a repo apt-cdrom -d=/MNT_PT add add an ISO file as a repo apt-file apt-file search FILE find packages containing the specified file apt-file show PKG list files installed by the package apt-get apt-get --compile source PKG download source code and compile it apt-get --download-only source PKG obtain the source code of the listed packages apt-get autoclean clear local temp repo (containing downloaded DEB files) apt-get autoremove remove no longer needed packages previously needed as dependencies apt-get build-dep PKG install the build dependencies for the listed packages apt-get changelog PKG view changelog apt-get check find broken dependencies apt-get clean remove the DEB files of no-longer installed packages apt-get dist-upgrade same as "upgrade", but satisfy dependencies apt-get download PKG download DEB file, but do not install apt-get install PKG install packages (each separated by a space) apt-get install PKG --only-upgrade upgrade the listed packages apt-get purge PKG remove listed packages and config files apt-get remove PKG remove listed packages (keep config files) apt-get update refresh repo index apt-get update && apt-get dist-upgrade update and upgrade apt-get upgrade upgrade all packages dpkg dpkg --get-selections list all installed packages dpkg --get-selections > FILEPATH.txt save the list of installed packages dpkg -i FILE.deb install or upgrade the package dpkg -l list installed packages dpkg -l | grep -i KEYWORD list installed package's matching the keyword dpkg -L PKG list files that a package will install dpkg -P PKG remove package and conf files dpkg -p PKG display package info such as dependencies, version, etc. dpkg -R DIR install packages recursively in directory dpkg -r PKG remove package, but keep conf files dpkg -S FILEPATH list th package that owns/installed the file dpkg -s PKG get the installation status Special Files /etc/apt/sources.list repo/package addresses /var/cache/apt/archives cache of downloaded packages Miscellaneous dpkg-reconfigure PKG reconfigure the package dpkg-split -j FILES join DEB files dpkg-split -s FILE split DEB file dpkg-vendor --is VENDOR exit with 0 if VENDOR is the current vendor (/etc/dpkg/origins/) du -h /var/cache/apt/archives/ display DEB cache size Further Reading
- The Structure of a Debian File - https://dcjtech.info/topic/the-structure-of-a-debian-file/
- Debian Package Management Tricks - https://dcjtech.info/topic/debian-package-management-tricks/
- PDF Cheatsheets - https://dcjtech.info/topic/free-pdf-cheatsheets/
- AuthorPosts
Viewing 1 post (of 1 total)