How do I create the smallest pet possible?

discuss compiling applications for Puppy
Post Reply
Message
Author
Lassar
Posts: 235
Joined: Tue 08 Jul 2014, 20:01

How do I create the smallest pet possible?

#1 Post 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?

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#2 Post 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
Last edited by drunkjedi on Tue 30 Jan 2018, 19:43, edited 1 time in total.

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#3 Post 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

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#4 Post by drunkjedi »

Oops the link had an extra '8'. I wonder where it came from.
Thanks.

User avatar
festus
Posts: 235
Joined: Wed 14 Jan 2015, 19:10

#5 Post 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

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#6 Post by rockedge »


User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#7 Post 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.
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

Post Reply