When I install something I want to know the changes [SOLVED]

Under development: PCMCIA, wireless, etc.
Message
Author
big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#16 Post by big_bass »

Hey amigo

thanks for the links to apps on your site you always have good stuff :D

which amigo has the better solution using the stock puppy
----------------------------------------------------------------------------------------

there is also another way to check to see what will be installed and what will get generated by the install script

**but that only works using pkgtools and slackware packages

I do this on TXZ pup by running a new root

Code: Select all

cd /path-to-folder/PackageName   # you have the package or packages you want to install 
  installpkg -root  /root/squashfs-root *.t?z
# /root/squashfs-root · this is what you get when you uncompress the sfs
#by default thats the name that is given

this may look odd to someone else that doesnt use pkgtools so I 'll explain what happens for them



basically you are telling the install command to use a new root
so in this case is installing into a folder called
/root/squashfs-root

and then from there you have a real installed program to a folder
making it 100% transparent to see only what was installed
and all the files that get registered in the package management too

this is much better than a chroot because its clean

Joe


I took this a few more steps further and have a GUI for it

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#17 Post by amigo »

Tracklist, when used with sentry, will track file, etc creation by any command. So, if you are running an installer script, or the command 'make install' or whatever, it will tell what happens when the command is run.

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#18 Post by steve_s »

Thanks again, all! Great stuff! 8)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

list pet contents

#19 Post by vovchik »

Dear puppians,

Here is a little script I just wrote to show the contents of a pet in a terminal. Just type lspet filename.pet in a console session and you will see something like:
root$ [/mnt/hdb6/install]-> lspet pupRadio-0.5.pet
All OK...checking contents....
For some pets (e.g. Wine), this make take a while!
-----------------------------------------------------
Contents of pupRadio-0.5.pet:
-----------------------------------------------------
/usr/share/applications/pupRadio.desktop
/usr/local/pupradio/urls
/usr/local/pupradio/tel-urls
/usr/local/pupradio/config
/usr/local/pupradio/pupradio
/usr/local/pupradio/tel-stations
/usr/local/pupradio/func
/usr/local/pupradio/stations
/usr/local/pupradio/help
/usr/sbin/pupradio
/pinstall.sh
It should install in /usr/local/bin. I may also do a gui version.

Have fun.

With kind regards,
vovchik
Attachments
lspet.pet
(1005 Bytes) Downloaded 480 times

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

Re: list pet contents

#20 Post by seaside »

vovchik wrote:Dear puppians,

Here is a little script I just wrote to show the contents of a pet in a terminal.
Vovchik,

As usual, a handsome piece of code. Thanks.

I also felt the need some time ago to see what the pet had before installing and for a while I just renamed the .pet extension to tar.gz and opened it with Xarchive until it dawned on me to just change the wrapper file.

Change the file "/usr/local/lib/xarchive/wrappers/tar-wrap.sh" - in the section under "Supported file extentions for tar" add the pet extension.

Code: Select all

GZIP_EXTS="tar.gz tgz pet"
Now a right click with Xarchive opens the pet file and you have all the information and the possibility to extract any individual file for a further look.

Regards,
s

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

New BaCon ls-pet lister

#21 Post by vovchik »

Dear Puppians,

I decided to implement a new version in BaCon http://www.basic-converter.org/ , in preparation for a gui version. This one shows filesizes and runs more quickly - I think - than the bash script I did yesterday. The source code is also here, so you can compile it yourself if you download the BaCon sources.

The output looks like this:
----------------------------------------------------------------
Contents of pup-advert-blocker.pet:
----------------------------------------------------------------
/usr/share/applications/pup-advert-blocker.desktop (251 bytes)
/usr/local/pup-advert-blocker/pup-advert-blocker (6748 bytes)
/usr/bin/pup-advert-blocker -> ../local/pup-advert-blocker/pup-advert-blocker (0 bytes)
----------------------------------------------------------------
Total installed package size (in bytes): 6999
----------------------------------------------------------------
With kind regards,
vovchik
Attachments
ls-pet.src.tar.gz
(1.21 KiB) Downloaded 442 times
ls-pet-0.1a.pet
(11.02 KiB) Downloaded 448 times

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#22 Post by vovchik »

Dear puppians,

Here is a gtk gui version of ls-pet. After installation, I recommend right-clicking in a pet in ROX-Filer and going to "Customize Menu". There make a symlink to /usr/local/bin/ls-pet-gui. Then you will be able to right click on a pet, select ls-pet-gui and it will show you the contents in a gtk window, so you don't have to open a terminal. The program is extremely simple, but I find it useful. The tar.gz file contains the source files I used for BaCon.

With kind regards,
vovchik
Attachments
ls-pet-gui.jpg
(73.43 KiB) Downloaded 809 times
ls-pet-gui-0.1b.src.tar.gz
(10.45 KiB) Downloaded 455 times
ls-pet-gui-0.1b.pet
(23.13 KiB) Downloaded 462 times

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#23 Post by steve_s »

Vovchik: sweet! Great stuff!

Post Reply