User Tools

Site Tools


packages

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 } }'

Source

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.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
packages.txt · Last modified: 16-01-2024 16:49 by wim