Debian, any way to list package sizes even for uninstalled ones

by xpt   Last Updated May 27, 2018 19:01 PM

I know a very good command that can nicely list all package sizes:

dpkg-query --show --showformat='${Installed-Size} ${Package}\n'

However, that's only for installed packages. I can't make it to list uninstalled sizes as well.

So, how can I get a list of packages and their sizes, even for uninstalled ones? I want to get such a list for all packages that begins with golang-github-. Thx

Related Questions

How to include upstream file in Debian package?

Updated June 08, 2017 10:01 AM

/usr/bin/dpkg was accidentally deleted

Updated November 25, 2015 14:00 PM

Unable to remove package on Debian 7

Updated January 11, 2018 01:01 AM

How to restore VIM in debian

Updated April 16, 2017 03:01 AM

Install .deb packages into mounted fs

Updated December 17, 2015 10:00 AM