LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2015, 10:04 AM   #1
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
Install-Size wrong and how to find the true install size. Debian.


How can I tell how much space is needed when installing say science-mathematics with # apt-get install science-mathematics

If I do
# apt-cache show science-mathematics

it says, Installed-Size: 60; clearly this is wrong even if it was kilobytes.

So my questions are,
why is it wrong?
And,
How would you find out before installing?

Is there another way? as I know I could kick off an install and then I'm prompted for yes or no, but I would like to know if its possible before getting that far.

Cheers,
 
Old 02-24-2015, 11:00 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
There's just guesstimates once your disk gets close to full.

I use 'df -h', and that gives you a general idea of how much space is left on a partition. Bear in mind a portion of the disk is left for root, so a user runs out of space when the disk is less than full.

Bear in mind also that logs need to be written. As you get close to full, delete a bit to make space, etc, the amount of fragmentation goes up enormously so disk speeds slow.

An IT manager friend of mine had a rule of thumb of minimum 10% free disk space to keep windows from crashing. Not a bad one. It's the time to start doing something.

If things get desperate, you can always pull a 'rm -rf' on /usr/share/doc, /usr/doc,
 
Old 02-24-2015, 12:13 PM   #3
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Original Poster
Rep: Reputation: 15
thanks for the response. I know all about disk space and thoughtless data retention policies. I just wanted a quick way of finding out how much space a package would take up when installed. it looks like the installed size figure is pretty useless. I guess the answer is to start an install and answer no if there is not enough space. I'm using LVM so I can grow and shrink files stems if needed. I think I am looking at meta packages, which might explain it. Also fs type and block size makes it a guesstimate only. it just puzzled me why use an installed-size value that's really no good.

Cheers.
 
Old 02-25-2015, 03:40 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Most of the packages in distros are broken up into fairly small pieces.

I am inclined to use slackware, which has libs, includes, binaries, documentation & extras all in one package.
 
Old 02-25-2015, 02:22 PM   #5
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
You're right it's a meta-package, it exists only to pull in other packages, hence the small installed size. When you install it through apt-get you are shown how much all the packages you are about to install will take up (or free) in MB terms.
 
1 members found this post helpful.
Old 03-02-2015, 07:06 PM   #6
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Original Poster
Rep: Reputation: 15
Hi all,
Of course I should have remembered from my LPIC-1 exam.
use it or lose it I guess.

answer is
# apt-cache -s <packagename>

-s for simulate.

Shows what will be installed and how much space is required.
Extremely useful.

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] change Debian font size in editable fields - borked after fglrx install Dweeb2010 Debian 14 12-15-2010 05:02 PM
Extended a LV size, but df shows orig size, using DEBIAN ETCH, on a AMD64 hector3rd Linux - Newbie 8 04-23-2008 05:36 AM
Drive Size Reported Wrong After Re-size Phiberoptic Linux - General 2 12-05-2007 05:15 PM
how does pixel aspect relate to frame size in mplayer/how do you find vid frame size? BrianK Linux - General 3 10-31-2007 01:08 PM
SuSE 8 Reports Wrong HD Size on install! Tiburon Linux - Distributions 2 07-25-2002 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration