Consider apt search util-linux
. This shows me that the package util-linux/bionic-updates,bionic-security,now 2.31.1-0.4ubuntu3.7 amd64 [installed]
is available. Additionally, I have worked out that I can do dpkg -s util-linux
and it tells me: "Description: miscellaneous system utilities: This package contains a number of important utilities, most of which are oriented towards maintenance of your system. Some of the more important utilities included in this package allow you to view kernel messages, create new filesystems, view block device information, interface with real time clock, etc."
Before I install a package, I want to find out:
• What size is this package (both download and extracted sizes - I guess I can get that from an apt install 'name'
and then aborting the install as that information is shown)?
• What additional libraries will this package require, and what size are they (download and extracted sizes)?
• What executable binaries are in this package and what paths will they be placed in if I install this package?
• What additional non-executable files are in this package (e.g. configuration files etc) and what paths will they be placed in if I install this package?
• For the situation after install, given a command like git
, how can I also find what package that file originally came from?
• Finally, how can I do all of the above also for snap
and flatpak
packages?