LinuxQuestions.org
Help answer threads with 0 replies.
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 07-27-2009, 09:29 PM   #1
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Question about installing a package manager


I've just started chapter 6. I decided I'll install dpkg/apt instead of coming up with my own system. Should I do that now or when everything is in place? I'm using this hint, but specific tips or instructions would be helpful too.
 
Old 07-29-2009, 04:03 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Package managers such as dpkg or RPM keep a database of installed packages. Based on my experience playing around with packages managers on my CLFS systems, the base system packages need to be in that database or the package manager attempts to pull them in later to satisfy dependencies. Scanning the hint, it looks like the intent is to install dpkg after building the base system. However, it also looks like the intent is really to create your own deb files rather than use pre-built deb packages from the internet. There may be a discussion about convincing dpkg that base system packages are installed. I just may not have seen it.
 
Old 07-29-2009, 05:33 PM   #3
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
I'm sorry, but I didn't really understand what you said. Should I install the package manager before or after chapter 6?

And what's the base system? Is it the tools, or is it everything installed in part III?
 
Old 07-30-2009, 02:53 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I guess you're going to make me read the entire hint. When you're finished with the LFS book, you have a base system. At this point implement the hint. When you're finished with the hint, you can start installing packages from BLFS using dpkg to create .debs.
 
Old 07-30-2009, 11:07 AM   #5
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Sorry, it's not that I want to make you read the entire hint, it's just that I didn't exactly understand what "base system" meant. Thanks for your help.
 
Old 08-03-2009, 12:06 AM   #6
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Quote:
Originally Posted by ReyJavikVI View Post
Sorry, it's not that I want to make you read the entire hint, it's just that I didn't exactly understand what "base system" meant. Thanks for your help.
I usually do this at the start of chapter 6 have you have charooted into the $LFS system, I install pkgtool though, I love it so much! but lets not go into package manager wars.

I do this at the beginning of chapter 6 because it allows me to build a database of even the base system, so it i need to change one minor thing its easy to rebuild a known package cause i can just uninstall that one and not worry about what flags i used to build it with.
 
Old 08-03-2009, 09:24 AM   #7
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
I thought the same thing, but apparently to install dpkg you have to finish LFS first. Oh well.
 
Old 08-06-2009, 07:15 PM   #8
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Rep: Reputation: 16
I don't think you need to finish LFS, that's a matter of taste. You can start installing pkgtool as soon as you chrooted. I'd rather have a stable and checked base system (weibullguy's answer) before adding anything else though.

Remember to add (e)glibc, gcc and such to your package manager "ignore" list, importing a prebuilt c library into a LFS system defeats the purpose of building your own

R.
 
Old 08-13-2009, 11:08 AM   #9
sanitynotvanity
Member
 
Registered: Jul 2007
Location: UK
Distribution: LFS 6.8, Android, Ubuntu 10.10, XP, 7 (HB,HP,Ultimate)
Posts: 41

Rep: Reputation: 15
even better...dont have a package manager! LoL.

thats what i did. tho mainly because i couldn't decide how to implement it. Most (but not all) of the packages have the ability to be uninstalled if you still have the source.

as its LFS you will need the source code to install anything anyway...
 
Old 08-13-2009, 11:28 AM   #10
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Quote:
Originally Posted by sanitynotvanity View Post
even better...dont have a package manager! LoL.

thats what i did. tho mainly because i couldn't decide how to implement it. Most (but not all) of the packages have the ability to be uninstalled if you still have the source.

as its LFS you will need the source code to install anything anyway...
This is true, but if you wanted to build your own distro off of LFS then you will still require a package manager.
 
Old 08-13-2009, 11:32 AM   #11
sanitynotvanity
Member
 
Registered: Jul 2007
Location: UK
Distribution: LFS 6.8, Android, Ubuntu 10.10, XP, 7 (HB,HP,Ultimate)
Posts: 41

Rep: Reputation: 15
Quote:
Originally Posted by ProtoformX View Post
This is true, but if you wanted to build your own distro off of LFS then you will still require a package manager.
Good point!
 
Old 08-14-2009, 10:56 PM   #12
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
When I try to install apt using dpkg, I get that the package architecture doesn't match the system's (I don't have the exact message right now). I'm sure the package and the system are both i386, but the odd thing is that the error message didn't say my system arch. It said something like this:
Code:
package architecture doesn't match system ()
Running uname -a says that I am using i686.
 
Old 08-16-2009, 02:38 PM   #13
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
OK, I found out that I can use --force-architecture and install dpkg through dpkg and then the problem should be solved. But it seems that it doesn't recognize the libraries I installed from source. For example, it tells me that it needs coreutils installed, and it's obviously installed, just not from a .deb. How to solve this?
 
Old 08-22-2009, 09:07 AM   #14
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Anyone?
 
Old 08-23-2009, 03:02 PM   #15
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Like *all* package managers dpkg keeps a database of installed packages. I believe dpkg uses a text file for this purpose. Like I said in my other post, you need to add the base system packages to this database so dpkg doesn't try to pull in these for dependencies. I don't use dpkg, never have, and probably never will. I'm sure if use the great Google, you'll be bale to find a discussion of how to edit this database.
 
  


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
gentoo package manager question lemonlaw95 Gentoo 9 06-03-2009 10:59 AM
Package manager question dave247 Debian 10 10-07-2008 07:20 PM
Installing my package manager. hepburnenthorpe Linux From Scratch 2 01-17-2007 12:01 PM
Installing a package manager indienick Linux - Software 30 09-04-2006 04:49 AM
installing without a package manager walterbyrd Linux - Software 4 07-07-2005 12:54 AM

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

All times are GMT -5. The time now is 07:14 AM.

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