Page 1 of 1

How do I look inside a ".pet" ?

Posted: Fri 06 Apr 2012, 01:12
by tytower
I want to see whats in one I downloaded . Is there a how to on this?

Re: How do I look inside a ".pet" ?

Posted: Fri 06 Apr 2012, 01:30
by James C
tytower wrote:I want to see whats in one I downloaded . Is there a how to on this?
I just right click on the pet and rename the extension from "pet" to "tar.gz" (without the quotes). Then just left click it, extract it and explore.
HTH.

Posted: Fri 06 Apr 2012, 02:01
by rcrsn51
Or use "pet2tgz package.pet".

Posted: Fri 20 Apr 2012, 06:47
by postfs1
cd /tmp ; curl -C - -O file:///mnt/sr0/PET_files/mesa-7.6-q1.pet ; pet2tgz mesa-7.6-q1.pet ; tar -tf mesa-7.6-q1.tar.gz | cut -d '/' -f 2-7 | sed 's/^/\//' ; rm /tmp/mesa-7.6-q1.tar.gz
Addition

[=1----=>]

Code: Select all

dd bs=1 if=/archive/clearlooks-0.6.2-i386.pet of=/archive/clearlooks-0.6.2-i386.pet.pet; pet2tgz /archive/clearlooks-0.6.2-i386.pet.pet; tar tvf /archive/clearlooks-0.6.2-i386.pet.tar.gz; rm /archive/clearlooks-0.6.2-i386.pet.tar.gz
[<=1=]

[=2----=>]

Code: Select all

cd /archive/ ; curl -C - --upload-file clearlooks-0.6.2-i386.pet --url file:///archive/clearlooks-0.6.2-i386.pet.pet; pet2tgz /archive/clearlooks-0.6.2-i386.pet.pet; tar tf /archive/clearlooks-0.6.2-i386.pet.tar.gz; rm /archive/clearlooks-0.6.2-i386.pet.tar.gz
[<=2=]

Edit: 2014, jan 30.

Posted: Fri 20 Apr 2012, 07:42
by vovchik
You can also try my lspet or lspet-gui:

http://murga-linux.com/puppy/viewtopic. ... 2f8d768e55

Both are on the second page.

With kind regards,
vovchik

Posted: Thu 03 May 2012, 10:20
by tytower
vovchik wrote:You can also try my lspet or lspet-gui:
http://murga-linux.com/puppy/viewtopic. ... 2f8d768e55
Both are on the second page.
With kind regards,
vovchik
Don't be misled by this .It lists some of the directory names only.
About 6 or 7 in the case of LibreOffice.pet

Changing the name to ".tgz " and then opening it ,in fact, showed the hundreds of files and directories contained in the pet . That's what I wanted to see and I don't see any point in downloading or using "lspet"?

Posted: Sun 11 Aug 2013, 14:08
by dejan555

Code: Select all

tar xf somepackage.pet


it will extract files into directory because .pet is basically tar archive with some additional info attached, it will show some errors in console because of this but all files will be extracted normally

Posted: Mon 09 Sep 2013, 15:40
by amigo
'tar -tf archivename' to simply list the archive without extracting it -except that you need to tell atr that it is a gzipped tarred archive like this:
'tar --use-compress-program=gzip -tf archivename'
Add '2>/dev/null' if the warning about garbage at the end bothers you...

Probably someone here will come up with a 'new distro' especially dedicated to listing the contents of pets, with a full range of pet2?? and ??2pet scripts -maybe even a gui to create a partition dedicated to holding the pet contents so that lspet or lsdir can list them. LOL