10f93 how much disk space is necessary for a package? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old April 14th, 2009, 09:50
godo godo is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Question how much disk space is necessary for a package?

I would like to know if is it possible to know how much disk space is necessary for a, specific, packet installation when, obviusly, this specific packet hasn't been installed yet.

For example, with Debian “apt”, it's possible to do:

Code:
alpechin:/home/godo# apt-cache show kplato
Package: kplato
Priority: optional
Section: kde
Installed-Size: 2868
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Architecture: i386
Source: koffice
Version: 1:1.6.3-7
Depends: kdelibs4c2a (>= 4:3.5.9), koffice-libs (>= 1:1.6.3), libart-2.0-2 (>= 2.3.18), libaudio2, libc6 (>= 2.7-1), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libgcc1 (>= 1:4.1.1), libice6 (>= 1:1.0.0), libidn11 (>= 0.5.18), libjpeg62, libpng12-0 (>= 1.2.13-4), libqt3-mt (>= 3:3.3.8b), libsm6, libstdc++6 (>= 4.1.1), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxft2 (>> 2.1.1), libxi6, libxinerama1, libxrandr2, libxrender1, libxt6, zlib1g (>= 1:1.1.4), koffice-libs (<< 1:1.6.4)
Recommends: khelpcenter | koffice-doc-html (= 1:1.6.3-7)
Filename: pool/main/k/koffice/kplato_1.6.3-7_i386.deb
Size: 903700
MD5sum: 4aef3c57f9e7469592cc9d3254ee62d6
SHA1: 700966e50d884deefb030b0a96efe90d22b66bda
SHA256: 5fdbf74c7bd4aff62832f5b8536d0647c0643236197a231c3eb4c7dc2e6fe247
Description: an integrated project management and planning tool
 KPlato is a project management application, allowing for the planning and
 scheduling of projects. It is in the very early stages of development.
 .
 This package is part of the KDE Office Suite.
Homepage: http://www.koffice.org
Tag: implemented-in::c++, interface::x11, office::project-management, role::program, suite::kde, uitoolkit::qt, use::organizing, x11::application
Where you can see the Installed-Size: 2868.

And, if you decide to install it, again apt shows you the disk space necessary for it and all their dependencies:

Code:
alpechin:/home/godo# apt-get install kplato
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes extras:
  koffice-data koffice-libs latex-xft-fonts
Paquetes sugeridos:
  wordnet
Se instalarán los siguientes paquetes NUEVOS:
  koffice-data koffice-libs kplato latex-xft-fonts
0 actualizados, 4 se instalarán, 0 para eliminar y 9 no actualizados.
Necesito descargar 4331kB de archivos.
Se utilizarán 13,7MB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? n
Abortado.
alpechin:/home/godo#

Where we can see the disk space necessary: 13,7MB.

I miss this information... ¿Could you help me?

Thanks.

P.D.:I know that
Code:
 pkg_info -s packet
shows “this information” when the specific packet is already installed, but I would like to know before.
Reply With Quote
  #2  
Old April 14th, 2009, 15:54
rhyous's Avatar
rhyous rhyous is offline
Member
 
Join Date: Apr 2009
Location: West Jordan, Utah
Posts: 136
Thanks: 1
Thanked 26 Times in 14 Posts
Default

I haven't seen that feature, but I have not tried to look. I wonder if you could pass in the web location of the patch or some switch that finds the package on the web and gets its info?
Reply With Quote
  #3  
Old April 14th, 2009, 16:00
rhyous's Avatar
rhyous rhyous is offline
Member
 
Join Date: Apr 2009
Location: West Jordan, Utah
Posts: 136
Thanks: 1
Thanked 26 Times in 14 Posts
Default

I just looked and if the feature is there, it isn't easy, cause I don't see it.

I have never needed this feature personally, but it is definitely an important feature to know the disk space requirements before hand.
Reply With Quote
  #4  
Old April 15th, 2009, 14:29
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Default

I think it pretty useless
You can setup system with bigger disk, and monitor disk usage for some time, if it's to much Big next time you rebuild system shrink partition
i use 9GB /usr and that is more than enough for me.

Disk space is real cheap these days
Reply With Quote
  #5  
Old April 15th, 2009, 20:13
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,702
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Quote:
Originally Posted by killasmurf86
I think it pretty useless
Personally, I usually need to know the size of packages and their dependencies beforehand, because of connection limits.

Quote:
Originally Posted by killasmurf86
Disk space is real cheap these days
Not everywhere. Not for everyone.
__________________
May the source be with you!
Reply With Quote
  #6  
Old April 15th, 2009, 21:28
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

As far as I can tell, the only way is to look at the package sizes on the ftp server. It's rather time consuming.
pkg_add -n will (or should) tell you what all would be installed.

I'm sorry that I can't really test this hypothesis for you, as I'm lazily enough running 8-current for which packages are not officialy built yet.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
  #7  
Old April 15th, 2009, 22:41
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 703 Times in 579 Posts
Default

You can see the package sizes on the FTP server. However, that is the size of the compress package, and not the amount of disk space that would be used if you install the package.

For ports, you can see the size of the source tarball that will be downloaded by looking in the distinfo file in the port's directory. However, that only tells you how much needs to be downloaded, not how much space would be needed to extract the tarball, nor how much temp space will be needed to compile the port, nor how much space would be needed to install the app. It's just not possible to "guesstimate" that, as it will depend on the OPTIONS you select, what settings you have in /etc/make.conf, what other ports are installed, which filesystem you are using, etc.

IOW, you can get information on how many bytes need to be downloaded, but you can't get information on how many bytes of disk space are needed for the install.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #8  
Old April 25th, 2009, 19:03
godo godo is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks everyone.

I think that If I want to test different utilities that are used to get the same feature (different servers, different clients, etc.), I would like to know the space of disk is going to be required because my partition space is almost full. So, I can decide if I install every of them or I install one of them, remove it, install other, remove it... and so.

I think that this feature would be possible if I am working with binary version of packets (pkg_add -r ...). This binary version is already compiled and every its dependencies are known. So, if the installed-size was shown "into the packet", it would be possible to develop a script to calculate it.

Maybe, some developer of the "packet system" shares this opinion and promote it to get implement it.

Thanks.
Reply With Quote
Reply

Tags
disk, install, packet, space

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Var space full bloodhound General 15 August 22nd, 2011 13:17
[Solved] sendto: No buffer space anujshrestha Networking 4 May 18th, 2009 10:03
[Solved] OpenOffice 3: No space left on device Asset Installation and Maintenance of FreeBSD Ports or Packages 8 April 3rd, 2009 10:33
RAID-Z Space Weaseal General 1 February 12th, 2009 17:54
Best use for a second hard disk / disk imaging geokes System Hardware 6 December 2nd, 2008 01:08


All times are GMT +1. The time now is 07:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0