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 Thu 20 Jun 2013, 05:08
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
standard place in an sfs for table of contents?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
n1mnal

Joined: 15 Jun 2010
Posts: 17

PostPosted: Thu 10 May 2012, 15:01    Post subject:  standard place in an sfs for table of contents?
Subject description: i.e. list of included packages
 

Using lupu-528.005. I would like to keep most of my non-builtin pets in
sfs's rather than in the pupsave. Such an sfs needs a standard location
for keeping the names and contents lists of the pets (or other pkg types)
from which it was built. Rather than just invent one, I'm asking if the folks who
have been doing this for a while have established a custom, or even tools
for the purpose (I know about pets2sfs, but haven't looked inside yet).

thanks ...
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2273
Location: Gatineau (Qc), Canada

PostPosted: Fri 11 May 2012, 00:28    Post subject:  

Hello, n1mnal.

Not sure I'm following your drift...

It's a fact that any pet can be converted to a sfs. Although it makes more sense to convert only the larger pets into sfs format.

Now both pet and sfs formats are archives, i.e. compressed formats.

Perhaps you should investigate peazip or even the more advanced functions of xarchiver if you want to put your pets in one archive, and have a list of them. You wouldn't gain much space, though, since pets are already compressed. Perhaps a simple separate directory for easy reference would do the trick?

Or perhaps you want to put a whole lot of pets into one sfs so you can mount them all in one shot? That is possible, too.

But as I said, I am not sure I understand what you want to achieve by this.

Best regards.

_________________
Wink "To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) Wink
Back to top
View user's profile Send private message Visit poster's website 
n1mnal

Joined: 15 Jun 2010
Posts: 17

PostPosted: Fri 11 May 2012, 13:10    Post subject:  

>Or perhaps you want to put a whole lot of pets into one sfs so you can
>mount them all in one shot?

Yes. I know how to do this (more or less), but such a collection
also needs to have in it a list of what pets are included, and which
files belong to each of them. This is to make it possible to update
an included pet without needing to rebuild the whole thing from scratch.
If the metadata are in a standard location, it becomes worthwhile to
automate the process.

[edit]
For example, how do the developers maintain the devx sfs? (I'm currently
on a Windows box, so I can't just look inside a devx right now.)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2273
Location: Gatineau (Qc), Canada

PostPosted: Fri 11 May 2012, 23:11    Post subject:  

Hello, n1mnal.

Before you archive each pet, you could issue this command from the top level of the pet.

Code:
ls -RF > files_in_this_pet.lst
(or use a specific name for the list).

This will give you a recursive list of everything in the pet filder, sub-folders included.

Peazip can produce a list of a ready-made pet. Open the pet file with peazip, you'll get a tar file. Then double click again on this tar file within peazip, you'll get a listing. Try to save the listing.

Best I can offer. BFN.

_________________
Wink "To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) Wink
Back to top
View user's profile Send private message Visit poster's website 
n1mnal

Joined: 15 Jun 2010
Posts: 17

PostPosted: Mon 14 May 2012, 12:55    Post subject:  

Thank you for replying, musher0.

But my question was not how to generate this information (I know how
to do that), but where in the sfs file to put it. As far as I have been able
to find out, the Puppy community has not settled on an answer to this
question.

As to why it matters; when I am not running Puppy, I run Another
Distribution (not to start any distribution wars here). This Other
Distribution has a specific directory ("/var/adm/packages") dedicated
to storing a filename list for each installed package. "Clearly" an sfs file
for Puppy "needs" a similar location, but specific to the particular sfs file,
so if one has several sfs files mounted, their table-of-contents files don't
hide one another.

As I said earlier, I could just make up an answer and use it, but having
a standard encourages the collective development of tools.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2273
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 May 2012, 21:43    Post subject:  

Hello, n1mnal.

Ah, I see. Thank you very much for the precision.

Then, AFAIK, such catalogue for pet files is in: /var/log/packages/

Also, all the *.pet and *.deb files that one installs through petget or directly are catalogued in : /root/.packages

However, I have checked in 2-3 sfs archives, and I think no similar catalogue at all is used for the SFS archives.

Best regards.

_________________
Wink "To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) Wink
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 4016
Location: Arizona, U.S.A.

PostPosted: Sat 19 May 2012, 22:34    Post subject:  

SFS files don`t clutter up the file system ( Save file ) like loose file installs do.
So there really isn`t a need to have a SFS files or packages manifest.
That still doesn`t mean that it`s not a good idea though.

For simplicity sake, just put it in the root of the SFS so it`s easy to find !
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 3845

PostPosted: Sun 20 May 2012, 00:04    Post subject:  

you dont really need one

Code:
find /mnt/$SFS_MOUNT_PATH


find has a flag for same file system too, I dont remember it though

_________________
Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0604s ][ Queries: 12 (0.0157s) ][ GZIP on ]