LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-02-2002, 09:31 AM   #1
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Question Package management in LFS


The only thing I think that LFS is lacking is a package management system. I know that it may go against the ideals of LFS, but I still think that some sort of simple management of installed files should be an essential part of a distro. I have seen on the site some 'third party' package management programs which can be used, but I was wondering what the opinion of other LFS users on this matter is, and especially Gerards.

What I would hate to see, and do hate anyway, are RPM's. They are bloated and a bit pointless to a distro that compiles from source. I have read that gentoo does have some sort of package system for its distro, and maybe something for LFS would also be of use?

Opinions? Flames?
 
Old 10-02-2002, 10:02 AM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
What I personally use is a simple scheme that finds all the files that were modified after a certain time. In one window I start a script that creates a temp file. Then in another window I start an installation (running make install). When the install is done, I hit enter in the first window and that script goes looking for all files and directories that were modified after the tempfile was created (the find program does a good job at it).

This scheme detects changed files as well as added files. It doesn't detect deleted files.

Something else I used to do was this:

before installation run "find /" and exclude a few directories like /proc /tmp and what not. Then run the installation. Then run find / again and diff the outputs of the two finds. It'll show you added and deleted files. However it doesn't show changed files.

You could combine those two methods but I don't really care about deleted files. I rarely find a package that actually removes files.

Another things you might consider is a package called "checkinstall" or something. It's a library that's preloaded when you run a program, it can then spy on all system calls made such as the calls to open and write to a file but I've never used it. I create my own Linux from scratch, so I created my own package management scripts to go with it.

An old copy of the scripts I use can be found at http://linuxfromscratch.org/~gerard

Look for log-install and pkgdel
 
Old 10-02-2002, 01:00 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
What about scripts like installwatch, etc?
 
Old 10-02-2002, 01:29 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
installwatch is one of those libraries that gets prelinked. checkinstall that I mentioned before uses installwatch in the background.
 
Old 10-02-2002, 08:13 PM   #5
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I really like install-log.... good script gerard.
 
Old 10-14-2002, 09:17 AM   #6
Baloo
Member
 
Registered: Feb 2002
Distribution: LFS
Posts: 41

Rep: Reputation: 15
Ooops, DB

Last edited by Baloo; 10-14-2002 at 09:20 AM.
 
Old 10-14-2002, 09:18 AM   #7
Baloo
Member
 
Registered: Feb 2002
Distribution: LFS
Posts: 41

Rep: Reputation: 15
What about nALFS (http://linuxfromscratch.org/~neven/nALFS/).

Last edited by Baloo; 10-14-2002 at 09:19 AM.
 
Old 11-04-2002, 02:58 AM   #8
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Original Poster
Rep: Reputation: 47
Gerard - I can't access the web link you put up, just goes to the page where you can choose the graphically closest server. Could you post the scripts up.

Thanks

Note - sorry I have just found it!

Last edited by CragStar; 11-04-2002 at 03:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM
Has anyone tried to use package management conary to build LFS? jery_wang2002 Linux From Scratch 1 05-31-2005 06:30 PM
LFS and package management michaely Linux From Scratch 7 07-02-2004 12:57 AM
Package management? darkRoom Linux From Scratch 9 06-04-2004 10:00 AM
LFS package management aes12 Linux From Scratch 4 05-09-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration