Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
Packages
Package management
Relationships between packages. Depends, Recommends, Suggests, Pre-Depends, …. explained
apt-get
aptitude
dpkg
ldd - Print shared object dependencies
Information
apt-cache show somepackage
Check if
it is installed
All packages
apt list --installed
Check if nano is installed
dpkg-query -l nano
Returns a 0 if true and a 1 if false (not installed)
what version(s) there are
Example: gtk
dpkg -l libgtk* | grep "GTK+ graphical user interface library" | grep ":amd64"
it needs a restart
needrestart
it is a dependency for an other package
dpkg-query --show --showformat='${Package}\t${Status}\n' | tac | awk '/installed$/ {print $1}' | xargs apt-cache rdepends --installed | tac | awk '{ if (/^ /) ++deps; else if (!/:$/) { if (!deps) print; deps = 0 } }'
Download only
aptitude download packagename apt-get download --download-only packagename
List dependencies
Add --installed if you only want to list the installed dependened packages List which pacakges depend on a certain package
apt-cache rdepends somepackage
List which packages are dependencies for a package
apt-cache depends somepackage apt-cache --installed depends somepackage
Extract a deb package
Make sure ar is installed by installing binutils
ar x package.deb
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.