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 Sun 21 Dec 2014, 18:30
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
How to install a Pet file from the command line?
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
ndujoe1

Joined: 04 Dec 2005
Posts: 700

PostPosted: Sun 28 Feb 2010, 09:48    Post_subject:  How to install a Pet file from the command line?  

Is there a command line statement that will install a pet file without being in X?
Back to top
View user's profile Send_private_message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Tue 02 Mar 2010, 13:12    Post_subject:  

maybe this?

http://www.murga-linux.com/puppy/viewtopic.php?p=333801

this may be useful, too

http://www.murga-linux.com/puppy/viewtopic.php?t=39109

Aitch Smile
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 02 Mar 2010, 14:13    Post_subject:  

or something like this should work most of the time

wget -c http://URL/package.pet
pet2tgz package.pet
tar -xf package.tar.gz /
/.pinstall.sh
rm /.pinstall.sh

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
upnorth


Joined: 11 Jan 2010
Posts: 262
Location: Wisconsin UTC-6 (-5 DST)

PostPosted: Tue 02 Mar 2010, 14:25    Post_subject: petget at command line noX
Sub_title: petget at command line noX
 

You should try "petget +<package name>" to install
"petget -<package name>" to uninstall

Just to clarify:

when installing, use an absolute path.
eg: #petget +/root/downloads/firefox-3.0.pet

when uninstalling, don't specify name with suffix, only package name.

eg: #petget -firefox-3.0
Back to top
View user's profile Send_private_message Visit_website 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Wed 12 Jan 2011, 17:27    Post_subject:  

I resume this topic to know if there are some updates...

I want to make a little script that will install a bunch of pets so I can avoid the hassle of doing it one by one every time I need to make a new savefile...

Of course there must be no confirmation dialogs etc... error handling is welcome but I'd use it only with already well tested pets.

Of course I want to be able to uninstall every single pet installed with this script via classic Package manager.

Any tip?
Back to top
View user's profile Send_private_message 
Lord_Solrac2

Joined: 22 Dec 2010
Posts: 35
Location: Gurabo, Puerto Rico

PostPosted: Tue 24 May 2011, 08:24    Post_subject:  

Copy and Paste This Save as "petall" (PET Install)

Code:
#!/bin/sh
if [ $1 = "" ]; then
 echo "Usage :: petall /dir/to/pet/file "\("Don't Put The .pet at the end"\)""
 exit 0
fi
if [ -f "$1" ]; then
 pet2tgz "$1".pet
 tar -xf "$1".tar.gz
 cd "$1"
 if [ -f ./pinstall.sh ]; then
  ./pinistall.sh
  exit 0
 fi
 if [ -f ./.pinstall.sh ]; then
  ./.pinstall.sh
  exit 0
 fi
 rm -rf ./pet.specs
 mv -rf ./* /
 echo "Done"
 exit 0
fi


To Do Multiple I Would Suggest Making a Folder where all the pets are (of the program/lib you want are the only ones in the folder)
in the terminal

cd /dir/to/pet/files/folder
pet2tgz ./*
tar -xf ./*

Now you should have all the packages in separated folders, now just copy and paste all of the contents into another new folder (SAME DIRECTORY)

example
dir1/
bin/
app
usr/
lib/
lib.so
pet.specs

move each FOLDER (Not The Files, it'll take you longer obviously)(Forget About the pet.specs)
into one New Folder and now just close the folder
it should look like this

dir1/
<EMPTY>
pet.specs

dir2/
bin/
app
app2
usr/
lib/
lib.so
lib2.so

and in the terminal

dir2pet <FOLDER_NAME_WHERE_ALL_THE_FILES_ARE>
#^^ __Not The bin folder, the main folder (example dir would be dir2)

in the GUI window you'll just select stuff, put the package ID and Author,
The Section (if a Library, chose BuildBlock)
the rest is self done so click ok
and now

petget <THE_FINAL_DOTPET_IS_NAMED_JUST_LIKE_THE_FOLDER>

Or Just Click the pet file and install

lol I think I wrote something noob friendly xD lol No Offense
I'm Currently Doing Something Like That[/code]

For WITHOUT X just use the terminal Command above (Green Text)
And It should work still :3
Back to top
View user's profile Send_private_message AIM YIM 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Tue 24 May 2011, 08:41    Post_subject:  

Thanks Lord_Solrac2 but your procedure would take me more than the time to install all pets just clicking on them Wink nor I will be then able to uninstall a single package.

What I was looking for, and probably the hard part is to get rid of dialogs, a CLI tool that should work like this (suppose tool is named petjet, I omit versions in pet names):

Code:
petjet gimp.pet deadbeef.pet numlockx.pet shell-fm.pet trayfm.pet tinygmc.pet skype.pet ...


or even

Code:
petjet defaults/*.pet


and will install them one-by-one in a bunch with no more user intervention (given I already tested all pets in a precedent installation and I'm sure they work).

One-by-one part is mandatory sinc I want to be free to, say, later disinstall skype only and replace it with a newer version.

It's not easy, I know, but a kind of Ubuntu apt-get with limited features on install and remove and a force option to assume I always agree to the default option:

- install? => Y
- remove? => Y
- deps missing, install anyway? => Y
- rm -r / ? => N Very Happy
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2387
Location: UK

PostPosted: Tue 24 May 2011, 12:26    Post_subject: Re: petget at command line noX
Sub_title: petget at command line noX
 

upnorth wrote:
You should try "petget +<package name>" to install
"petget -<package name>" to uninstall

Just to clarify:

when installing, use an absolute path.
eg: #petget +/root/downloads/firefox-3.0.pet

when uninstalling, don't specify name with suffix, only package name.

eg: #petget -firefox-3.0

I will have to try this... Never found petget to work for me before, unless I am running an X desktop... I want a true CLI version... So I'll try this again!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
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.0678s ][ Queries: 11 (0.0043s) ][ GZIP on ]