Need a package manager for my LFS system, any advice?
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20
Rep:
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
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...
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
Distribution: Arch and derivatives, Debian, Fedora, LFS 10.1
Posts: 20
Original Poster
Rep:
Quote:
Originally Posted by Keith Hedger
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)?
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.
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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' ).
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.