LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-15-2009, 08:48 AM   #1
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Need help coming up with a package management system


Now, this is my problem. I've gotten to chapter 6, where the building of the real system begins, and it tells you to adopt a package management system. The best one seems to be the "fakeroot" approach, described here. But I've stumped on the details on how to use it. The text does a general description, but it doesn't point out the specific methods and steps to implement it.

So does anybody know some step-by-step tutorial for just one installation, to help me understand the procedures and advantages/disavdantages of this approach? I know that I'm supposed to do my own research, but Google hasn't been helpful so far and I don't have a clue on how to do this.
 
Old 06-15-2009, 10:52 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,734
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
Did you read the fakeroot hint?
 
Old 06-15-2009, 11:01 AM   #3
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Yes, sorry, the "described here" was meant to be a link. I read it, and though it describes the general picture, I've no idea on how to implement this.
 
Old 06-15-2009, 01:21 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,734
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
What, exactly, do you not understand? The steps for this method are described near the middle of the hint. Look for the paragraph beginning with, "The steps to installing a package with this approach are as follows."
 
Old 06-15-2009, 02:10 PM   #5
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
The hint says to do "the appropiate maintenance" and "post install configuration". On what cases would this be needed?
It also says that the method is good for cases when a package would collide with something already installed. But how would I know if it does?
 
Old 06-15-2009, 02:36 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,734
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
Take a look at http://www.linuxfromscratch.org/blfs...r/postfix.html. The stuff about /etc/aliases would be post install configuration.

After you install the package in your fakeroot, you can see what files are installed. Compare this to existing files. If there are files installed in the same directory with the same name as files already installed, you can move them, rename them, whatever you need while they are in your fakeroot and before you create a tarball. Then, when you unpack the tarball into /, the existing files won't be overwritten. This would be appropriate maintenance.
 
Old 06-15-2009, 03:04 PM   #7
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Thanks for the advice. I understand the uses of post-installation configuration, but just one thing: I don't understand why the fakeroot system would make this any easier. It doesn't put a magical "Configure me" button on packages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
system update/package management N_A_J_M Ubuntu 1 09-03-2007 08:55 PM
User Based Package Management System Chowroc Linux From Scratch 2 03-16-2007 04:30 PM
Package Management System is Broken Ashex Ubuntu 3 06-09-2006 12:40 AM
FC2 Package Management System - Broken? Harryc Fedora 4 06-03-2004 07:14 AM
Slackware package management on non-slack system moreon Linux - General 2 12-13-2000 08:20 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration