Before i try to install a program in ubuntu, where can i see how much disk space the package including the needed dependency packages will need. Perhaps a commandline way?
At the bottom you can see that the total size to fetch from internet is 376MB and after installation it will use 815MB of disk space.
If you are ok with this type 'Y' to continue the installation or type 'n' to cancel the installation.
You can simply use the Ubuntu Software Centre. It shows how much you have to download (inclusive of undownloaded dependencies) and the also the size when installed.
This isn't really directly possible in any tool that I know of.
Synaptic can show you the required disk space for a given package (Right-click -> Properties, bottom two lines), but I'm pretty sure that number doesn't recursively work out what each dependency requires.
More promising is that it's possible to use
The commands in question:
It's a bit brute-forcey, but I reckon your best bet is to:
Kind of messy, but I'm just not sure it's do-able with a single command.