How to view contents of PET packages before installing?

Using applications, configuring, problems
Post Reply
Message
Author
mow9902
Posts: 187
Joined: Wed 26 Nov 2008, 08:29

How to view contents of PET packages before installing?

#1 Post by mow9902 »

Excuse my ignorance. I would like to be able to examine the contents of a PET package before I actually click on it to install. How can I do this please.
Last edited by mow9902 on Thu 07 May 2009, 00:05, edited 1 time in total.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

Re: How to view contents of PET packages before installing?

#2 Post by trio »

mow9902 wrote:Excuse my ignorance. I would like to be able to examine the contents of a PET package before I actually click on it to install. How can I do this please.
you are excused! :wink:

well, you right click the .pet and choose rename, then on the rename window you add words so it will be like this --> xxx.pet.tar.gz

then you can open that xxx.pet.tar.gz by clicking on it so the default archiver will open it....well now you can see inside .pet! ...some more? you can also extract it somewhere........and dive inside the folder...

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

Try This

#3 Post by gposil »

This pet will allow you right click on any pet and view in XArchive.

.
Attachments
pet2xarc.pet
Pet Context Viewer
(3.04 KiB) Downloaded 619 times
pet2Xarc.jpg
Screenshot
(53.07 KiB) Downloaded 1461 times
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#4 Post by jrb »

Wow! Nicely done gposil. The ., t, g, and z keys on my keyboard thank you very much.

Bruce B

#5 Post by Bruce B »

Midnight Commander

I use one tool for about all file archives.

Attached is a picture. Left pane shows Midnight Commander
opening a pet file. Open means literally 'open', it doesn't
extract the contents. It opens the .pet package in a VFS
(Virtual File System)

The wanted contents in this example are the AbiWord
dictionary and hash file.

The right pane shows .AbiSuite dictionary directory. All that
needs be done is highlight the two files in the left panel and
copy them to the right side.

Bruce

~
Attachments
midnight-commander-opening-pet-file.png
(56.69 KiB) Downloaded 1584 times

mow9902
Posts: 187
Joined: Wed 26 Nov 2008, 08:29

#6 Post by mow9902 »

Brilliant! thanks

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#7 Post by ecomoney »

Wow, brilliant idea for a feature gposil! Push to have it included in the main puppy please!
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

Re: Try This

#8 Post by charlie6 »

Hi gposil,
gposil wrote:This pet will allow you right click on any pet and view in XArchive.
.
I apologize if my question is irrelevant...which desktop theme do you use on the screenshot? is this icewm, isn't? Do you run puppy on a Mac PC?

Thanks for answer
Cheers, Charlie

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#9 Post by gposil »

It's Icewm on a PC with the Abby Leopard Theme...neat
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#10 Post by zandarian »

To see the contents of the pet packages without extracting them:

Code: Select all

tar -tf filename.pet
Source: amigo in http://murga-linux.com/puppy/viewtopic.php?t=90292

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#11 Post by zandarian »

To make XArchive show the contents of the pet packages without renaming them, I've edited /usr/lib/xarchive/wrappers/tar-wrap.sh and changed ...

Code: Select all

GZIP_EXTS="tar.gz tgz"
... to ...

Code: Select all

GZIP_EXTS="tar.gz tgz pet"
Sources:
* upnorth in http://www.murga-linux.com/puppy/viewtopic.php?t=58641
* gposil's pet2xarc.pet (in this thread)
* mikeb in http://murga-linux.com/puppy/viewtopic.php?t=90292

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#12 Post by jrb »

Thanks for calling my attention to this pet zandarian. Somehow I had let it slip away.

I have repackaged gposil's pet2xarc.pet so that it works in Slacko-5.7 and 5.9.3 and also Tahr-5.8.3. Tested minimally in those three, hopefully it works in all the other new Puppies as well.

Cheers, J
Attachments
pet2xarc.02.pet
updated pet2xarc
(3.17 KiB) Downloaded 261 times

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#13 Post by MochiMoppel »

Hmmm...doesn't work for me as it directly writes to /root/.config/rox.sourceforge.net/OpenWith instead of /root/.config/rox.sourceforge.net/SendTo. AFAIK OpenWith was the mandatory directory name when gposil posted his pet, now it's SendTo.

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#14 Post by neerajkolte »

Hi everyone,
In Fatdog64 when I right click a .pet file, I get 2 options,

1) See contents of this pet -- this pops up an dialog listing all directories, sub-directories and files inside the pet.
2) Extract the pet -- This extracts the containts of pet in a directory of pet's name.

I will look at /root/.config/rox.sourceforge.net/SendTo when I get back home from work.

Thanks.

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#15 Post by jrb »

MochiMoppel wrote:Hmmm...doesn't work for me as it directly writes to /root/.config/rox.sourceforge.net/OpenWith instead of /root/.config/rox.sourceforge.net/SendTo. AFAIK OpenWith was the mandatory directory name when gposil posted his pet, now it's SendTo.
You don't mention which Puppy you are using :?: /root/.config/rox.sourceforge.net/OpenWith is still the default in Slacko-5.9.3, Slacko-5.7 and Tahr-5.8.3. SendTo is just a symlink to OpenWith.

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#16 Post by MochiMoppel »

I use Slacko 5.6.

OpenWith is not the default. Try this: Temporarily rename OpenWith and the symlink SendTo. Now rightclick any file and choose "Customize menu". ROX will immediately create a new SendTo directory, not OpenWith. See also here.

The reason why your approach doesn't work for me: I don't use a pupsave file and my startup script directs the SendTo symlink to a directory outside of Puppy. I think the cleanest approach for your script would be to copy to SendTo. You shouldn't be concerned if it is "just a symlink" or a "real" directory. It's the directory ROX expects and uses, and if Puppymakers still find it wise to symlink it to another directory then it's their choice, but IMO it's not needed and adds an unnecessary level of complexity....and - obviously - confusion :cry:

User avatar
tuxtoo
Posts: 173
Joined: Tue 14 Dec 2010, 19:45
Location: Knaresborough, North Yorkshire, UK
Contact:

#17 Post by tuxtoo »

The one I find most useful is pet2dir which can be found here - http://www.murga-linux.com/puppy/viewto ... 458#584458
Puppy Linux search engine.

[b][url]http://wellminded.net63.net/[/url][/b] Suitable for older browsers.

Mirror [b][url]https://puppysearch.neocities.org[/url][/b]

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#18 Post by jrb »

MochiMoppel wrote:I use Slacko 5.6.

OpenWith is not the default. Try this: Temporarily rename OpenWith and the symlink SendTo. Now rightclick any file and choose "Customize menu". ROX will immediately create a new SendTo directory, not OpenWith. See also here.

The reason why your approach doesn't work for me: I don't use a pupsave file and my startup script directs the SendTo symlink to a directory outside of Puppy. I think the cleanest approach for your script would be to copy to SendTo. You shouldn't be concerned if it is "just a symlink" or a "real" directory. It's the directory ROX expects and uses, and if Puppymakers still find it wise to symlink it to another directory then it's their choice, but IMO it's not needed and adds an unnecessary level of complexity....and - obviously - confusion :cry:
Ah, I see. This pet does not work because of your modifications. I was aware of Rox's using SendTo instead of OpenWith because I have set up Rox in other distros and perhaps you're are right about there being an "unnecessary level of complexity and ... confusion" but there are many such in Puppy, also in other distros. You are wrong about this being my script. I did a simple repackage of gposil's script. That's what's so great about Puppy and Linux, anyone may make the changes they like. By all means feel free to make the changes you suggest and repost the pet.

Cheers, J

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#19 Post by trio »


User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#20 Post by Smithy »

Pemasu Debian Pup has a right click option that says extract here, and just extracts it all in a folder. It says Extract-Pet 1.7.
Maybe it's available as a pet somewhere. He's also got packit and uextract in there.
Good stuff.

Post Reply