3 ms·
On http://www.linuxfromscratch.org/lfs/view/stable/chapter06/pkgmgt.html http://www.linuxfromscratch.org/lfs/view/stable/chapter06/pk...: > Symlink Style Packa
by johnisgood 6y ago
On http://www.linuxfromscratch.org/lfs/view/stable/chapter06/pkgmgt.html http://www.linuxfromscratch.org/lfs/view/stable/chapter06/pk...:
> Symlink Style Package Management
For this I highly recommend https://zolk3ri.name/cgit/zpkg/ https://zolk3ri.name/cgit/zpkg/ which I have been using for years now. It works wonderfully.
Environment variables and their defaults:
ZPKG_SRC = ~/.local/pkg
ZPKG_DST = ~/.local
ZPKG_DB = ~/.db
It means that if you install anything from scratch, you have to `make install` (or the like, depending on the build system) it to, say, `~/.local/pkg/foo-1.0` and then run `zpkg link foo:1.0` to install (i.e. link) the "package". After that you just have to make sure you have added `~/.local/bin` to your `PATH` environment variable, and `~/.local/man` to your `MANPATH` environment variable (in your `~/.bash_profile` file). Seems to do the job. It does lack a README file for which I may contact the author. In any case, `zpkg --help` should be of tremendous help.
By the way, I have noticed that someone created a package manager with the same name, but its initial commit was in 2019, while this one's was in 2017.
- johnisgood 6y agoOh and yeah, it is written in OCaml, so you do need to have the OCaml compiler installed. I recommend doing it via `opam`, but your Linux distribution's package manager will suffice (simply `ocaml` on Arch Linux, for example). With regarding to `zpkg`: if you run into any issues, bugs, or you miss a feature, contact the author or me. You will not be able to reply to this message after some days and I do not have contact details here, so you will have to contact the author then. :D
- johnisgood 6y agoWhoops, correction: `ZPKG_DB` actually defaults to `~/.local/pkg/.db`, not `~/.db`.