easypackage

Miscellaneous tools
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

easypackage

#1 Post by sc0ttman »

easypackage
cli tool for combining pets into pet or sfs

This is a very simple little tool that will combine the pets in a given directory into either a pet file or sfs file.
There is little error checking, but just make sure the directory you point it to contains only pets and you will be fine.

It's offered as is, in case anyone wants it.

It requires Xdialog and dir2pet.

Usage:

Code: Select all

easypackage [directory]
Attachments
easypackage-0.1.pet
(1022 Bytes) Downloaded 1587 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#2 Post by neurino »

This could be a great resource every time I need to start up with a new save file and I don't want to get bored installing 20+ little pets: I simply could use this tool and make a unique pet and get things installed in a few clicks...

but...

what about if I want to uninstall just one of the 20+ packages, say to upgrade it or whatever...

it would be veery handy the ability to have a package manager that will install all pets in a row, something like apt-get for local files:

Code: Select all

easypackage cmus-2.3.3-w5.pet p7zip-4.58.pet edit_sfs-2.1.pet pwidgets-2.3.1.pet ...
so, for example, I just can group my pets in a folder and run

Code: Select all

easypackage *.pet

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#3 Post by jemimah »

Something like

Code: Select all

for i in `ls *.pet` ; do 
   petget $i
done
should do the job. You'll still have to press OK a lot.,

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#4 Post by seaside »

Or maybe have your own auto-keypuncher. :D

Code: Select all

for i in *.pet ; do
   petget $i & xdotool key Return
   sleep 2 # probably needs sleep adjusting here and below
   xdotool key Return
   sleep 2
done
s

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#5 Post by neurino »

jemimah wrote: You'll still have to press OK a lot.,
It's right what I'd like to duck...

I give auto-keypuncher a try 8)

Anyway the fact in puppy there's no pure cli package installing / removing is strange... does petget work without X?

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#6 Post by sc0ttman »

yeah sorry neurino, this is only for making packages, not installing them.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#7 Post by neurino »

Well I'm givin' a look at petget source and I'm goin' to edit it (in a new file...) to get rid of gtkdialog3 parts with simple prints to stdout and without user confirmation, also removing all non-pet-related code (deb, tgz|.txz, tar.gz).

All I need, and maybe also others want, is just a quick and dirty install all these pets I already tested.

Let's see... what sounds weird to me is no one already did it before so maybe there are difficulties I can't see now.

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#8 Post by battleshooter »

Ah heck, I wish I discovered this a long time ago. All this while I've been extracting I don't know how many pets to make KDE sfses. Hah, ah well, at least I've discovered it today thanks to some Chinese spam bot ;)

Of course thanks to you too Scott :D

Battleshooter
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

Pelo

Hum interressant / interesting

#9 Post by Pelo »

When we start a new session by puppy pfix=ram, it would be very quicker to have a package of usual things we do to make our personal desk browser, etc... la routine.

easy package seems to do that : a package of pets.

In fact I am looking for a macro.

At the end of the first session, we have the sum of changes registered somewhere. Where ?

Is it possible to do a pet with that ? Merci messieurs les techniciens.

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

Re: Hum interressant / interesting

#10 Post by tlchost »

Pelo wrote: In fact I am looking for a macro.
I like the idea of a macro that installs a series of individual pets, or indirvidual pets in a directory. The advantage is that if they are installed
individually, you can uninstall a single one. I don't belive you can do that with the combined pet approach.

Thom

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Re: Hum interressant / interesting

#11 Post by RSH »

tlchost wrote:
Pelo wrote: In fact I am looking for a macro.
I like the idea of a macro that installs a series of individual pets, or indirvidual pets in a directory. The advantage is that if they are installed
individually, you can uninstall a single one. I don't belive you can do that with the combined pet approach.

Thom
Hi.

I have made something like that in LazY Puppy. You can do a right-click on a directory containing .pet files and convert them all to sfs in batch function. Might be helpful to have a look at the applications in /root/my-roxapps inside LazY Puppy.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

A really smart dog...

#12 Post by RSH »

Aaahhhh,

forget about the batch function to convert .pet to sfs. :lol:

LazY Puppy has already exactly what you want. The LazY Puppy Remaster Suite (/usr/local/lazy_remaster) is able to install all .pet files from a directory in front of running the remaster script.

Sometimes i do not have in mind, how smart this dog really is ! ! ! 8)

So, you can go to /usr/local/lazy_remaster and have a look at those two files:

- lp2_install_to_remaster
- lp2_pkginstall_on_remaster

Grab and modify those files for your own purposes, or, better solution:

Wait a few minutes until i have made my next post. Then there will be LazY-FBI, the (F)antastic (B)atch-Mode Pet-(I)nstaller. I have modified exactly those two files and made a .pet.

Using LazY-FBI you can do a right-click on a directory and then install all included .pet files.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Pelo

Lazy Puppy is our future

#13 Post by Pelo »

Lazy Puppy is our future !
and I am wasting time exploring other distros !

Post Reply