View contents of .pet or .deb packages

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#16 Post by RSH »

[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]

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

#17 Post by zandarian »

amigo wrote:

Code: Select all

dpkg-deb -l $1 
should work.
Here, with Slacko Puppy version 5.7, that doesn't work. But this yes:

Code: Select all

dpkg-deb -x filename.deb folder_where_deb_extracted
With this I can extract and see the contents of deb packages.

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

#18 Post by zandarian »

OK. Just to see the contents of the deb packages, without extracting them:

Code: Select all

dpkg-deb -c filename.deb

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#19 Post by mikeb »

Curious...is Xarchive not working with debs now...its what I always use.

If you alter Xarchive script for tar by adding .pet to its list of accepted extensions it saves all that renaming.

mike

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

#20 Post by zandarian »

Thanks, mikeb.

Yes, with XArchive I can see the contents of deb packages.

As you proposed, 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"
Source: upnorth in http://www.murga-linux.com/puppy/viewtopic.php?t=58641
Without XArchive, just using the terminal, to see the contents of the pet packages without extracting them we can use the command:

Code: Select all

tar -tf filename.pet
It's a shorter, easier to remember, command derived from the one provided by amigo in this thread.

Post Reply