Gambas size

Post

Posted
Rating:
#1 (In Topic #1439)
Avatar
Guru
cogier is in the usergroup ‘Guru’
Does anybody know how much disk space is taken up by Gambas?
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
I came up with this but I dunno how accurate it is…

EDIT: i changed the Size: field to Installed-Size: field, the values seemed lower so i assume it's kb not b

Code (gambas)

  1. Dim iTotal As Integer
  2.  
  3.  
  4. Shell "apt-cache --no-all-versions show gambas3* | awk '$1 == \"Package:\" \{ p = $2 } $1 == \"Installed-Size:\"    \{ printf(\"%10d %s\\n\", $2, p) }'" Wait To sRes
  5. For Each sRes In Split(sRes, "\n", Null, True)
  6.   Print sRes
  7.   iTotal += CInt(Split(sRes, " ", Null, True)[0])
  8.  
  9. Print "total";; iTotal; " k?"
  10. Print iTotal / 1024; " Mb"
  11.  

        55 gambas3
     10072 gambas3-examples
        79 gambas3-gb-args
       134 gambas3-gb-cairo
       151 gambas3-gb-chart
        85 gambas3-gb-complex
        77 gambas3-gb-compress-bzlib2
        77 gambas3-gb-compress-zlib
        77 gambas3-gb-compress-zstd
        81 gambas3-gb-crypt
       162 gambas3-gb-data
       104 gambas3-gb-db-mysql
        99 gambas3-gb-db-odbc
       115 gambas3-gb-db-postgresql
       107 gambas3-gb-db-sqlite3
       170 gambas3-gb-dbus
       112 gambas3-gb-dbus-trayicon
       111 gambas3-gb-gmp
       168 gambas3-gb-gsl
        89 gambas3-gb-hash
       149 gambas3-gb-httpd
       156 gambas3-gb-image-effect
        84 gambas3-gb-image-imlib
        81 gambas3-gb-image-io
        84 gambas3-gb-logging
       196 gambas3-gb-map
        95 gambas3-gb-media-form
        80 gambas3-gb-memcached
        95 gambas3-gb-mime
       146 gambas3-gb-mysql
       117 gambas3-gb-ncurses
        94 gambas3-gb-net-pop3
       107 gambas3-gb-net-smtp
       138 gambas3-gb-openal
       110 gambas3-gb-opengl-glsl
        98 gambas3-gb-opengl-glu
        88 gambas3-gb-opengl-sge
        99 gambas3-gb-openssl
       107 gambas3-gb-poppler
       392 gambas3-gb-report2
       102 gambas3-gb-scanner
       147 gambas3-gb-sdl2
        91 gambas3-gb-sdl2-audio
       210 gambas3-gb-term-form
        81 gambas3-gb-vb
       142 gambas3-gb-web
       125 gambas3-gb-web-feed
       703 gambas3-gb-web-gui
       103 gambas3-gb-xml-html
       114 gambas3-gb-xml-rpc
        81 gambas3-gb-xml-xslt
      6679 gambas3-ide
       257 gambas3-scripter
       500 gambas3-devel
      1998 gambas3-runtime
       161 gambas3-gb-image
      1021 gambas3-gb-form
       200 gambas3-gb-clipper
        82 gambas3-gb-compress
       171 gambas3-gb-db
       228 gambas3-gb-db-form
       422 gambas3-gb-desktop
       146 gambas3-gb-desktop-x11
       205 gambas3-gb-eval-highlight
        94 gambas3-gb-form-dialog
       291 gambas3-gb-form-editor
       171 gambas3-gb-highlight
      1129 gambas3-gb-form-htmlview
       225 gambas3-gb-form-mdi
        81 gambas3-gb-settings
       105 gambas3-gb-form-print
      3192 gambas3-gb-form-stock
       207 gambas3-gb-form-terminal
       105 gambas3-gb-term
       730 gambas3-gb-gtk3
        81 gambas3-gb-gtk3-opengl
       227 gambas3-gb-opengl
        78 gambas3-gb-gtk3-wayland
       110 gambas3-gb-gtk3-webview
        87 gambas3-gb-gtk3-x11
       140 gambas3-gb-gui
       754 gambas3-gb-qt5
        87 gambas3-gb-inotify
       304 gambas3-gb-jit
       113 gambas3-gb-libxml
       158 gambas3-gb-net-curl
       150 gambas3-gb-net
       177 gambas3-gb-xml
       100 gambas3-gb-markdown
       158 gambas3-gb-media
        81 gambas3-gb-option
        88 gambas3-gb-pcre
       116 gambas3-gb-pdf
       118 gambas3-gb-qt5-ext
        89 gambas3-gb-qt5-opengl
        79 gambas3-gb-qt5-wayland
       200 gambas3-gb-qt5-webkit
       126 gambas3-gb-qt5-webview
        87 gambas3-gb-qt5-x11
       462 gambas3-gb-report
        83 gambas3-gb-signal
       233 gambas3-gb-util
        86 gambas3-gb-util-web
       116 gambas3-gb-v4l
       459 gambas3-gb-web-form
total 40087 k?
39.147 Mb
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
 The wiki is big though if you use offline docs ~/.local/share/gambas3/wiki
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Guru
cogier is in the usergroup ‘Guru’
Thanks Bruce. I just wondered, and at around 40Mb it seems very small.
Online now: No Back to the top

Post

Posted
Rating:
#5
Guru
BruceSteers is in the usergroup ‘Guru’
it not accurate  :(
I just checked

/usr/lib/gambas3
557 items, totalling 116.2 MB (117.3 MB on disk)

/usr/share/gambas3/
464 items, totalling 1.1 MB (2.4 MB on disk)

ide /usr/bin/gambas3.gambas is 6.8mb

/usr/bin/gb*3 binaries are about 4mb combined
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
Yeh, apt-cache (and dpkg) return a wild guess of the installed size and it has nothing to do with the real world. According to somewhere on the intertubes it is apparently a guess of the size of the installable components / 1024 where the units of "size" are milli-carrots or something.  :)
b

p.s. Here:
/usr/lib/gambas3
547 items, totalling 354.9mb (gambas only, doesn't include our own components)

/usr/share/gambas3/
532  items, totalling 1.14mb (gambas only, doesn't include our own components)

ide /usr/bin/gambas3.gambas is 6.9mb

/usr/bin/gb*3 binaries are 5.2mb combined

So actually manually counting the installed items gives different outcomes depending on where they came from i.e. some distro or manually built. (Here, the latter from origin/stable 803e6d2dacf47187f1b58cfee964a1b4f8e9575a)

Online now: No Back to the top
1 guest and 0 members have just viewed this.