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 Fri 24 Oct 2014, 09:55
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 Posts_count  
Author Message
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Sun 22 Nov 2009, 05:46    Post_subject:  Pets to portable apps
Sub_title: 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_website 
technosaurus


Joined: 18 May 2008
Posts: 4353

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: 236

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: 2261

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0518s ][ Queries: 11 (0.0040s) ][ GZIP on ]