LinuxQuestions.org
Review your favorite Linux distribution.
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


View Poll Results: What package management do you use with LFS?
pacman 3 11.54%
dpkg 2 7.69%
rpm 5 19.23%
No package management for me! 6 23.08%
Other 10 38.46%
Voters: 26. You may not vote on this poll

Reply
  Search this Thread
Old 08-28-2013, 04:06 AM   #1
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
What package management do you use?


Hi!

So I was just curious with what package management system, if any, all the other LFSers are using!

I am currently working at getting pacman running. What about you?
 
Old 08-28-2013, 04:12 AM   #2
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
Haha, I am also looking at pacman

I managed to get dpkg installed fine enough, but it's not all that useful tbh.

With pacman, you might get an error about PATH_MAX not being defined, that's because a file is missing a limits.h include but I got another make error shortly after that which I am still looking into.

If I don't stay with pacman, I might look into what slackware has got going on as apt-get looks like a long list of dependencies to run through to get up and running.
 
Old 08-28-2013, 10:33 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
I'm also using pacman. When I build 7.4-rc1, I needed to add a header file to curl. Take a look at how
Arch solved it
. It worked for me.

I have installed abs from Arch. When I want to install something, I always start with copying their PKGBUILD and then I change it to my needs. Usually I follow the instructions from blfs. So even though I'm rolling my own, it feels like I have a big repo, thanks to the help I get from Arch/abs.
 
Old 08-28-2013, 10:49 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Spooky! I just updated my package manager here:
http://www.linuxquestions.org/questi...fs-4175443147/
When you posted this.
 
Old 08-29-2013, 10:14 AM   #5
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
I use my own package manager built from the ground up.
 
Old 08-29-2013, 01:37 PM   #6
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 87

Rep: Reputation: 27
Well I think you should all use the package user system from Mathias Benkmann, mentioned in the book. Then you can install from source and keep control of what is being loaded onto your machine. It shows you when anything is trying to be written into a protected directory or if a file is trying to overwrite an existing file. For example, it'll prevent a package from writing to /usr/libexec, which LFS and BLFS (and Arch) don't use. (e.g. subversion and gjs).

It takes a bit more effort because you have to set some directories to the install group and change the permissions, bit IMO it's well worth it.

jb.
 
Old 08-29-2013, 05:24 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I just copy source packages to my /sources directory, build them using the LFS/BLFS instructions, and manage everything myself.

Package manager? I don't need no stinkin' package manager!
 
Old 09-04-2013, 04:47 AM   #8
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by /dev/random View Post
I use my own package manager built from the ground up.
Fantabulous! What is the methodology you use?
 
Old 09-04-2013, 04:50 AM   #9
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by Keith Hedger View Post
Spooky! I just updated my package manager here:
http://www.linuxquestions.org/questi...fs-4175443147/
When you posted this.


I mean to have a look at it one day, but feeling too noobooish for it at the moment!


Quote:
Originally Posted by Keith Hedger View Post
Haha, I am also looking at pacman

I managed to get dpkg installed fine enough, but it's not all that useful tbh.

With pacman, you might get an error about PATH_MAX not being defined, that's because a file is missing a limits.h include but I got another make error shortly after that which I am still looking into.

If I don't stay with pacman, I might look into what slackware has got going on as apt-get looks like a long list of dependencies to run through to get up and running.
Try looking through Lennie's code. I am halfway through !
 
Old 09-11-2013, 09:17 AM   #10
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Johnburrell View Post
Well I think you should all use the package user system from Mathias Benkmann, mentioned in the book.
That's what I use too.

I'm just about to start an LFS 7.4 build. I think I'm going to compile su.c into su to use in chapter 5. In previous versions of LFS, su was installed in chapter 5 (su-tools) as part of a coreutils build, but sometime relatively recently, su was moved out of coreutils and into shadow, which doesn't get built until chapter 6.

Older versions of the package user hint had a copy of su.c in them that can be quickly compiled with gcc. Su is necessary for the package user management system to work.

Regards,
 
Old 09-17-2013, 02:35 AM   #11
jelle_
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Rep: Reputation: 0
currently building lfs with a combination of both the user based package management and DESTDIR approach.

I also had trouble with getting su. I ended up using the one from sh-utils.
 
  


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
package management javimd786 Linux - Newbie 1 01-02-2010 04:13 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM
Package Management LDZ420 Fedora 3 06-07-2004 11:42 PM
Package management Ultimaterra2005 Red Hat 1 02-22-2004 12:02 PM

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

All times are GMT -5. The time now is 07:42 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