Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository hosting #2

Open
RennyDemmy opened this issue Oct 5, 2022 · 2 comments
Open

Repository hosting #2

RennyDemmy opened this issue Oct 5, 2022 · 2 comments

Comments

@RennyDemmy
Copy link

Hello there,

If we use this project in general, how can we add repositories to download packages?

Also is this compatible with pamac (even if it's weird question to ask)?

@FSMaxB
Copy link
Owner

FSMaxB commented Oct 6, 2022

If we use this project in general

Just to be clear. This project is not there to actually be used. It's a fun project to play around with how package managers work.
Please do not install packages with it into a working Linux system, unless you really know what you're doing and make sure that packages are only installed into some subdirectory that doesn't interfer with it.

lfs-me is a project that I created for two main reasons.

  1. I was going through Linux From Scratch and had to start over from the beginning too many times because of making a mistake that broke everything, so I thought I'd like to have a way to recover if I make a mistake.
  2. I was thinking: How hard could it actually be to make a simple package manager 😅

If you understand German, there is even a talk I made about this 7! years ago (I'm getting old ...): https://www.youtube.com/watch?v=qO0M7alWimY

how can we add repositories to download packages?

I don't know, that is up to you.
I never planned for adding repositories of binary packages, because this is primarily intended to compile packages from source directly. The only concept of a repository that lfs-me has is a directory of package descriptions, like https://github.com/FSMaxB/lfs-me-repos. But there is no dependency resolution whatsoever.

I mean if you build binary packages and put them on a webserver, you could probably hack together something that will download and install them. Feel free to do that, this is a project to play around with how package managers can work, after all.

Also is this compatible with pamac (even if it's weird question to ask)?

Simple answer: No!

The build files are just shell scripts that load the package manager into itself. I took my inspiration from Archlinux' pacman, but that's all there is, it's a completely different format that is completely incompatible with everything except lfs-me. And even that doesn't have any real compatibility across versions.

@RennyDemmy
Copy link
Author

I never thought I would get a reply for this, but thank you for your response.

I was thinking: How hard could it actually be to make a simple package manager 😅

I also tried out making my own. It turns out a package management system just automates stuff. Mine is something that downloads a script from a remote site and then executes the script that contains the commands to download and compile a package. Mine is way less advanced than yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants