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 Tue 02 Sep 2014, 22:20
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Pets to portable apps
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Dromeno

Joined: 12 Sep 2008
Posts: 536

PostPosted: Sun 22 Nov 2009, 05:46    Post subject:  Pets to portable apps
Subject description: is a conversion possible?
 

I do not know if this is the right forum for a thread like this. Mods: Suggestions for other places are welcome

The disfunctional packet manager in the most recent Puppy 431

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1602382872&t=48590

made me think.

Some applications do not really need to be installed but can be parked anywhere - they work as the puppy linux equivalent of portable apps

Is it possible to convert a .pup, .pet or .sfs into a "puppy portable"? And if so, how? Portable programs are far easier to work with compared to installable programs. If I had the choice I would switch to portables completely.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 22 Nov 2009, 07:57    Post subject:  

you usually can install pets also without petget.

A pet is just a .tar.gz files with additional checksum.
So you can extract it like
tar -xzvf test-123.pet
Ignore the error message, it is caused by the added checksum, but unimportant.

This creates a folder like test-123.
You now can copy the files in it to "/".
Sometimes a postinstall script is included, to run more steps.
You can run it from console like:
cd test-123
./pinstall.sh


You also might use a alternative pet installer from the beginning of the pet development.

Try this version of pkgtool, originally written by Nathan Fisher (grafpup), later modified by Plinej:
http://www.murga-linux.com/puppy/viewtopic.php?t=26857
(look for the attachment in Plinejs message)

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Sun 22 Nov 2009, 17:01    Post subject:  

look at magic ermine - you can package everything in one executable file (but you have to manually tell it to leave out the dependency libraries or it can be huge)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Peterm321

Joined: 29 Jan 2009
Posts: 225

PostPosted: Mon 23 Nov 2009, 09:51    Post subject:  

Quote:
Is it possible to convert a .pup, .pet or .sfs into a "puppy portable"? And if so, how? Portable programs are far easier to work with compared to installable programs. If I had the choice I would switch to portables completely.


Yes, as per above posts.

Some PETs are rather difficult to run portably, I found DILLO, though small, needs installing. Some executables use absolute paths hardcoded into them. Crying or Very sad

I agree that portability is the best way to go, for one thing it means that you can keep portable applications on a separate partition. When upgrading the portable programs don't need installing.

One thing I have done is to amend the PATH and LD_LIBRARY_PATH in
~/.bashrc to include the current working directory:

export PATH=".:$PATH"
export LD_LIBRARY_PATH=".:LD_LIBRARY_PATH"

or

export LD_LIBRARY_PATH="./lib:LD_LIBRARY_PATH"

(If I want to keep libraries in $PWD/lib instead of the same directory as the executable).
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2240

PostPosted: Mon 23 Nov 2009, 13:49    Post subject:  

AppDirs do just that -whether as a wrapper for a program which is normally installed, as a wrapper for scripts contained in the AppDir, or as a compile-in-place source based AppDir. Some of these can still be really portbale on the system -I mean you can moce the app after compiling and it stil works. Only those that can't be configured with relative paths have to be run from the same location they were compiled at.
You can find a bunch of examples here:
http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/AppDirs/
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0539s ][ Queries: 11 (0.0044s) ][ GZIP on ]