LinuxQuestions.org
Visit Jeremy's Blog.
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 04-27-2021, 02:44 PM   #1
themightydill
LQ Newbie
 
Registered: Apr 2021
Location: Edmonton, AB
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20

Rep: Reputation: 10
Need a package manager for my LFS system, any advice?


Hey!
So I recently built an LFS system, and find myself in desperate need of a package manager. I know benvd's lfs-pacman thing works but I've already made the system. Something like pacman would be amazing, or at least something that syncs to the AUR without all the dependency stuff. Does anyone know of a good package manager for LFS, or created one?
Thanks! - Dill
 
Old 04-27-2021, 07:32 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Is not as "widely famous" for the most (and the most software) in *buntus but GNU\Debian: https://www.linuxquestions.org/quest...em-4175526423/
APT. I've not built a LFS yet so no real help but you are asking opinions so...
 
Old 04-28-2021, 07:55 AM   #3
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
Package manager:
https://github.com/KeithDHedger/LFSPkg
Build scripts:
https://github.com/KeithDHedger/LFSPkgBuilds

Simple Howto's for sysv and systemd.
 
Old 04-28-2021, 12:34 PM   #4
themightydill
LQ Newbie
 
Registered: Apr 2021
Location: Edmonton, AB
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20

Original Poster
Rep: Reputation: 10
Wow, this is great, @Keith Hedger! I'll try it on my LFS system and let you know how it goes!
 
Old 04-28-2021, 12:49 PM   #5
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
Although its designed to be used from the start of the build, you can start to use it at any point.
Hope you find it useful.

You should use the 10.1 branch rather than the master branch.
git clone https://github.com/KeithDHedger/LFSPkgBuilds.git --branch 10.1 --single-branch

Last edited by Keith Hedger; 04-28-2021 at 12:55 PM. Reason: xtra info
 
Old 04-29-2021, 02:12 AM   #6
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
There are many topics about this, use the search to find out more.
In order of simple to integrate to more complex and adding more stuff: porg or LFSpkg, pkgtools (Slackware), pkgutils (CRUX), pacman (Arch Linux), ... can be used by adding a few things. And it became easier and cleaner to do so since LFS-10.0 as they changed the way to build LFS.
 
Old 04-29-2021, 08:49 PM   #7
themightydill
LQ Newbie
 
Registered: Apr 2021
Location: Edmonton, AB
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20

Original Poster
Rep: Reputation: 10
Posted a problem, now fixed.
How do I install LFSPkg? I'm in a chroot on SSH.

Last edited by themightydill; 04-29-2021 at 11:14 PM.
 
Old 04-30-2021, 04:22 AM   #8
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
Just follow the howto, in LFSPkgBuilds or install manually from the git repo.
Obviously if you have build the tools skip that part same goes for building the filesystem, also if you have already installed the base system skip that part of the howto

Last edited by Keith Hedger; 04-30-2021 at 05:26 AM.
 
Old 04-30-2021, 11:39 AM   #9
themightydill
LQ Newbie
 
Registered: Apr 2021
Location: Edmonton, AB
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Keith Hedger View Post
Just follow the howto, in LFSPkgBuilds or install manually from the git repo.
Obviously if you have build the tools skip that part same goes for building the filesystem, also if you have already installed the base system skip that part of the howto
I know this is a stupid question, but am I supposed to do this from a chroot, or from my host system (Arch)?
 
Old 04-30-2021, 11:52 AM   #10
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
from chroot as presumably you have a base system installed
 
Old 04-30-2021, 09:55 PM   #11
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / GoboLinux / LFS / VoidLinux
Posts: 145

Rep: Reputation: 26
I'd actually use a GoboLinux-like layout; when you don't want the program, you just remove that "app-dir".

It's not a package manager, though, so I would probably use something like pacman from arch.

Note that building a LFS is quite fun and you learn a lot; it's more annoying to want to maintain
it.

Just keeping up on packages that are new, will require some scripts.

I personally actually don't use a package manager right now, I just compile anew. Sometimes I
have to remove files that are obsolete, but here I also try to use scripts that do that for me.
 
Old 05-11-2021, 07:31 PM   #12
dptzippy
LQ Newbie
 
Registered: Dec 2020
Posts: 28

Rep: Reputation: Disabled
Honestly, after using LFS for a while now, and it being my daily-driver, I don't think you should use a package manager. LFS is designed to be tailored to each user's needs, so a package manager is likely to cause some issues with your system.

If you are set on using a package manager, I have found Pacman to be very easy to install. I use package managers for specific types of packages, such as CPANM for Perl modules, and NPM for Node.js packages, but I think that compiling packages is far better when you are using something as DIY as LFS.

Best of luck!
 
Old 05-12-2021, 05:17 AM   #13
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
Depends on what package manager you use, obviously a binary pm is wastfull on LFS but a source based pm like arch or slackware use is ideally suited to LFS ( as is my own LFSPkg, 'coff,coff' ).
 
Old 06-20-2021, 06:48 PM   #14
themightydill
LQ Newbie
 
Registered: Apr 2021
Location: Edmonton, AB
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20

Original Poster
Rep: Reputation: 10
Some people recommended pkgsrc, would this be a good tool?
 
Old 06-21-2021, 09:40 AM   #15
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
At some point in life (at least where humanity or sanity's not involved ) need to cease participating in these opinion threads, by simply saying: run "populars" and see...

opinions always best when yours!
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] LFS package manager for LFS 7.9 dk_ Linux From Scratch 27 06-08-2016 07:32 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
Poll: Yast Package Manager vs. Smart Package Manager in 10.1 agentchange SUSE / openSUSE 6 06-02-2006 08:29 AM

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

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