r/linuxfromscratch • u/Scienceblossom • Aug 24 '20
(Beginner) Question on LFS: Does LFS solve my problem?
Hi, I need a Linux distribution which will have certain packages(based on my own needs), will I be able to achieve this goal using LFS? Specifically, I need apt to work in my distribution and also I have some packages which are ".deb"s and are not part of any official repositories, so I want them to be installed when someone else installs my distribution(I don't want to use Debian/Ubuntu/RH/etc. customization tools. I want to build this Linux myself from scratch). Also I don't need any GUIs, Desktops, etc.
Thank you all in advance.
5
u/lestrenched Aug 24 '20
I believe that answers it? LFS is essentially you building your own linux distribution on top of another as your base. As you're going for APT and DEB, it has to be a debian base. No, you don't need a GUI, you'd probably be building a barebones distro with certain packages (as you mention). So perhaps yes, although I would be looking at other alternatives to APT and DEB. LFS is a big project, and if you're new to the game it can take quite a while. Just my 2 cents. Cheers!
14
u/linuxloner Aug 24 '20 edited Aug 24 '20
If you need apt why not just install Ubuntu. If you really need a package manager on lfs build it yourself.
Otherwise you are just reinventing the wheel.
To paragraphase Rick and morty "that just sounds like Ubuntu with extra steps"
2
u/syazwanemmett Aug 24 '20
If you want to use apt and ubuntu/debian debs in your distribution its gonna end up ubuntu/debian anyway, so whats the point build LFS.
2
u/kabads Aug 25 '20
I can't see why you don't just ship the .deb file. If you need to have a whole OS, then perhaps you're better off dockerising your application.
0
u/supermario9590 Aug 24 '20
If you want a package manager then use the nix package manager, which was made for cross platform