Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 31 Aug 2014, 00:56
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
When I install something I want to know the changes [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 27 Aug 2010, 23:34    Post_subject:  

Hey amigo

thanks for the links to apps on your site you always have good stuff Very Happy

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:

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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
amigo

Joined: 02 Apr 2007
Posts: 2236

PostPosted: Sat 28 Aug 2010, 04:57    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Sun 29 Aug 2010, 09:04    Post_subject:  

Thanks again, all! Great stuff! Cool
Back to top
View user's profile Send_private_message Visit_website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 29 Aug 2010, 17:08    Post_subject: list pet contents  

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:
Quote:

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
lspet.pet
Description 
pet

 Download 
Filename  lspet.pet 
Filesize  1005 Bytes 
Downloaded  278 Time(s) 
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sun 29 Aug 2010, 23:15    Post_subject: Re: list pet contents  

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:
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
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Mon 30 Aug 2010, 15:29    Post_subject: New BaCon ls-pet lister  

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:

Quote:

----------------------------------------------------------------
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
ls-pet.src.tar.gz
Description 
gz

 Download 
Filename  ls-pet.src.tar.gz 
Filesize  1.21 KB 
Downloaded  248 Time(s) 
ls-pet-0.1a.pet
Description 
pet

 Download 
Filename  ls-pet-0.1a.pet 
Filesize  11.02 KB 
Downloaded  258 Time(s) 
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Tue 31 Aug 2010, 12:27    Post_subject:  

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
ls-pet-gui.jpg
 Description   
 Filesize   73.43 KB
 Viewed   743 Time(s)

ls-pet-gui.jpg

ls-pet-gui-0.1b.src.tar.gz
Description 
gz

 Download 
Filename  ls-pet-gui-0.1b.src.tar.gz 
Filesize  10.45 KB 
Downloaded  258 Time(s) 
ls-pet-gui-0.1b.pet
Description 
pet

 Download 
Filename  ls-pet-gui-0.1b.pet 
Filesize  23.13 KB 
Downloaded  276 Time(s) 
Back to top
View user's profile Send_private_message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Tue 31 Aug 2010, 18:02    Post_subject:  

Vovchik: sweet! Great stuff!
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0668s ][ Queries: 13 (0.0062s) ][ GZIP on ]