Page 1 of 1

How do I create the smallest pet possible?

Posted: Tue 30 Jan 2018, 16:11
by Lassar
Have been using lubuntu to create kodi pets.

Been checking on ubuntu packages.

Looked at one that had about 6 or 7 library files in it.

It seems to me, that if you use these packages, you end up with
libraries that you are not using, and don't need.

Have been learning about ldd. It seems that some programs have
unused dependencies.

What is the best way to create the smallest pet with only
the dependencies that are needed?

How do you create the smallest pet possible?

Posted: Tue 30 Jan 2018, 18:01
by drunkjedi
PPM while installing packages does offer to "Trim the Fat".
I believe it does this by removing documents in /usr/share/doc/ and also in /usr/lib/locale/ (remove not needed locales) and not by looking at extra libs.
But need to go through the code of PPM to be sure.

Here's an old thread talking about reducing size of pets using strip command on libs.
http://www.murga-linux.com/puppy/viewtopic.php?t=39421

Posted: Tue 30 Jan 2018, 19:25
by watchdog
drunkjedi wrote: Here's an old thread talking about reducing size of pets using strip command on libs.
http://www.murga-linux.com/puppy/viewtopic.php?t=394218
The link does not work. I remember a Iguleder's post:

http://www.murga-linux.com/puppy/viewtopic.php?t=58331

Posted: Tue 30 Jan 2018, 19:48
by drunkjedi
Oops the link had an extra '8'. I wonder where it came from.
Thanks.

Posted: Wed 31 Jan 2018, 12:17
by festus
@Lassar
Take a look here:
http://www.murga-linux.com/puppy/viewtopic.php?t=109010
The "strip" commands for the 'bin' & 'lib' files do reduce the size of the package.

bliss,
festus

Posted: Wed 31 Jan 2018, 18:19
by rockedge

Posted: Sun 04 Feb 2018, 19:06
by Dingo
Usually, in pet packges I create, always perform executables compression with upx. Many times, this reduces greatly the filesize (combinated with stripping unused symbols from libs, as written by others in this topic), before to run dir2pet. Stripping libs has only the effect to make hard the debug in case of problems, but this does not affect in any way the user, only developers perform debug, and, in any case, you can releayse two separate packages, one with stripped libs and one without for debug.