Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 15 Oct 2018, 17:55
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
How do I create the smallest pet possible?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
Lassar

Joined: 08 Jul 2014
Posts: 221

PostPosted: Tue 30 Jan 2018, 12:11    Post subject:  How do I create the smallest pet possible?  

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?
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Tue 30 Jan 2018, 14:01    Post subject:  

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, 15:43; edited 1 time in total
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 1671
Location: Italy

PostPosted: Tue 30 Jan 2018, 15:25    Post subject:  

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
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Tue 30 Jan 2018, 15:48    Post subject:  

Oops the link had an extra '8'. I wonder where it came from.
Thanks.
Back to top
View user's profile Send private message 
festus


Joined: 14 Jan 2015
Posts: 196

PostPosted: Wed 31 Jan 2018, 08:17    Post subject:  

@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
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 829
Location: Connecticut, United States

PostPosted: Wed 31 Jan 2018, 14:19    Post subject:  

Pet packaging 101
http://www.murga-linux.com/puppy/viewtopic.php?t=35507
Back to top
View user's profile Send private message Visit poster's website 
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Sun 04 Feb 2018, 15:06    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0472s ][ Queries: 12 (0.0134s) ][ GZIP on ]