Discrepancy between actual and reported package size

Hi all, so I wanted to find out the installed size of a package (in this case gawk). Checking in /usr/lib/opkg/info/gawk.control, I'm getting this result:

$ grep Installed-Size: /usr/lib/opkg/info/gawk.control
Installed-Size: 278116

However when looking directly at the binary size, I'm getting a very different result:

$ ls -lh /usr/bin/gawk
-rwxr-xr-x    1 root     root      456.3K Jun  7  2023 /usr/bin/gawk

So the opkg-reported size is 271KiB vs 456KiB binary size.

Why the discrepancy?

installed-size was erroneously calculated on the compressed file size. That error has "recent-ish-ly" been fixed, but unless someone backports it the fix will take effect starting with the next release version (or snapshot, if you are so inclined).

4 Likes

Thank you!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.