How to determine the size of a package in terminal prior to downloading?

Posted by user14590 on Ask Ubuntu See other posts from Ask Ubuntu or by user14590
Published on 2011-04-19T14:46:10Z Indexed on 2014/06/01 9:41 UTC
Read the original article Hit count: 180

When using apt-get install <package_name>, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation before downloading.

But, when dependencies are satisfied and nothing but the named package needs to be downloaded there is no size output and no confirmation.

When using Synaptic, I can see the total size that new packages that will use after installation but no way to see the size that needs to be downloaded, except to go from package to package and use properties to see the compressed size.

I would like to know if there is a way to see the size of a package(s) in terminal and Synaptic prior to downloading and installing it/them?

© Ask Ubuntu or respective owner

Related posts about package-management

Related posts about command-line