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 Thu 18 Dec 2014, 04:36
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Iguleder's package tools
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message

Joined: 11 Aug 2009
Posts: 1926
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 02 Aug 2010, 03:23    Post_subject:  Iguleder's package tools
Sub_title: Tools I use for creating PETs and DEB to PET conversion

Well ... here are some of the tools I wrote to make packaging easier, I think it would be nice to share them. They're useful with Lupu (with Ubuntu packages), dpup (with Debian Squeeze packages) and 4.x (with Debian Lenny packages). Also, when I compile something, I use these tools to trim it and split it in Puppy fashion.

1) strippkg and xdeb require the devx installed.
2) Use at your own risk.

Usage: strippkg [DIRECTORY]
Strip all binary files under DIRECTORY

--help Display this message and quit

First of all, a script that strips all executables, libraries and kernel modules under a directory. Very useful for trimming packages.

Usage: mkpkg [DIRECTORY]
Process the package in the directory DIRECTORY to separate DEV, NLS and DOC from it

--help Display this message and quit

Then, a script that processes packages and splits documentation, locales and development files from them automatically.

Usage: xdeb [PACKAGE]
Extract the Debian package PACKAGE to a subdirectory under the current directory

--help Display this message and quit

A script that extracts DEB packages to a subdirectory of the current directory.

When I convert DEB packages to PET packages, I extract them with xdeb, then run strippkg on them and finally, split them with mkpkg. Then, I run dir2pet on the DEV, NLS, DOC components and the main package.

Here's an example, I downloaded a GCC DEB from packages.ubuntu.com, then extracted it with xdeb and ran strippkg on it. Then, I used mkpkg to split DEV and DOC from it. Because Puppy comes without docs, I removed the DOC package and the result is a perfectly Puppy-trimmed package, stripped to the max. Wink

Filename  iguleder_tools-001.pet 
Filesize  2.25 KB 
Downloaded  287 Time(s) 

My homepage
My GitHub profile
Back to top
View user's profile Send_private_message Visit_website MSNM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot attach files in this forum
You can download files in this forum

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