Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm using aptitude as package manager. If one marks packages for removal it calculates the changing in disk usage, i.e. how much space is freed by removing that package and its automatically installed, otherwise unused dependencies.

Is there a way (not necessarily within aptitude) to get this number for, say, all packages marked manually installed?

share|improve this question

marked as duplicate by Eric Carvalho, muru, 2707974, v2r, waltinator Sep 25 '15 at 18:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Does this question help, or no? I guess that doesn't show all dependencies. – Kris Harper Oct 25 '11 at 19:36

If you use the apt-get from the command line it will tell you the total disk usage before you confirm the install.

$ sudo apt-get install php5 .. .. .. 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. Need to get 8,459 kB of archives. After this operation, 23.4 MB of additional disk space will be used. Do you want to continue [Y/n]?

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.