LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Package manager for LFS (https://www.linuxquestions.org/questions/linux-from-scratch-13/package-manager-for-lfs-4175560724/)

ativg 12-05-2015 08:40 AM

Package manager for LFS
 
I finished building my LFS 7.7 systemd a few weeks ago now I want to install some sort of package manager like yum or apt get is there anyway to do it I want a tool to download the packges from the internet and install them for me, if that exists.

Thanks in advance

Keruskerfuerst 12-05-2015 10:00 AM

LFS = Linux from Scratch
You must download the source packages for the system.

Gentoo has a package manager.

hendrickxm 12-05-2015 10:36 AM

There are a bunch of topics here to add a package manager. Did you build BLFS yet or only the basic system?

ativg 12-05-2015 12:14 PM

Quote:

Originally Posted by hendrickxm (Post 5460215)
There are a bunch of topics here to add a package manager. Did you build BLFS yet or only the basic system?

just the basic one

hendrickxm 12-05-2015 12:23 PM

Quote:

Originally Posted by ativg (Post 5460273)
just the basic one

Well in that case, I would recommend something like pkgutils, pacman or lfspkg and even pkgtools. There has been written enough on them you could use so you could add it to your LFS.
Neither come with prebuilt binaries though. Another option is guix but I have no experience with it.
CRUX uses pkgutils and is very similar to LFS, there are also binaries you can find online in some repos.
Same thing with pacman from Arch, Arch is not that different from LFS. I used binaries from arch on my LFS before. Things can go wrong though.
Slackware uses pkgtools.
I would not update the toolchain and base (basic LFS book) packages. But adding stuff could be possible for most packages, do check the dependencies.
pkgutils is compatible with archlinux binaries if you rename them to packagename#version.tar.*z and to add it to LFS is as easy as adding libarchive and pkgutils itself.
But then again, why would you mainly want to use binaries from CRUX, Arch or Slack if you run LFS. I used it to try out stuff like firefox, libreoffice and other stuff that compiles way too long for my liking.

moonfrog 12-06-2015 04:31 AM

I started using the whole suite from CRUX (pkgutils, prt-get, prt-utils, ports) on my four LFS boxes sharing a local ports server.
At my skill level it was a nightmare to get the ports built and working...not done, just working.(fully PM'ed core/wm build running great!)

Anyway, pkgutils works really well with LFS but its prt-get front end gives me 'tech vertigo' (a good thing)

local prioritized ports collection list
+ 'semi-automatic' dep tracking
+ your own custom built ports tree
= the possibility of radically different builds sharing the same tree with easy software version testing

If you just want to try a few apps and easily remove them then collections and dep lists probably don't matter.


Be careful using CRUX Pkgfiles, some try to build multi-lib/static-lib and some call for files that you don't have
..the init is different and there are folders that will bite you
Nutyx has Pkgfiles that are more compatible with LFS but aren't fully compatible with pkgutils.

For difficult builds I've been comparing the two to merge with the LFS instructions and it's got me past some big road blocks

I guess the goal is to master faked root installs...still hoping a new book will come Linux From Ports . . . As for auto-downloading the source files...pkgutils w/wget will do that.


All times are GMT -5. The time now is 08:25 AM.