Elara Musayelyan
c2b875db6c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
---|---|---|
assets | ||
cmd/lure-api-server | ||
distro | ||
docs | ||
internal | ||
manager | ||
scripts | ||
.gitignore | ||
.goreleaser.yaml | ||
.woodpecker.yml | ||
build.go | ||
fix.go | ||
go.mod | ||
go.sum | ||
info.go | ||
install.go | ||
LICENSE | ||
list.go | ||
main.go | ||
Makefile | ||
README.md | ||
repo.go | ||
upgrade.go |
LURE (Linux User REpository)
LURE is a distro-agnostic build system for Linux, similar to the AUR. It is currently in beta. Most major bugs have been fixed, and most major features have been added. LURE is ready for general use, but may still break or change occasionally.
LURE is written in pure Go and has zero dependencies after building. The only things LURE requires are a command for privilege elevation such as sudo
, doas
, etc. as well as a supported package manager. Currently, LURE supports apt
, pacman
, apk
, dnf
, yum
, and zypper
. If a supported package manager exists on your system, it will be detected and used automatically.
Installation
Install script
The LURE install script will automatically download and install the appropriate LURE package on your system. To use it, simply run the following command:
curl https://www.elara.ws/lure.sh | bash
IMPORTANT: This method is not recommended as it executes any code that is stored at that URL. In order to make sure nothing malicious is going to occur, download the script and inspect it before running.
Packages
Distro packages and binary archives are provided at the latest Gitea release: https://gitea.elara.ws/Elara6331/lure/releases/latest
LURE is also available on the AUR as linux-user-repository-bin
Building from source
To build LURE from source, you'll need Go 1.18 or newer. Once Go is installed, clone this repo and run:
sudo make install
Why?
Arch Linux's AUR is a very useful feature. It's one of the main reasons I and many others use Arch on most of their devices. However, Arch is not always a good choice. Whether you're running a server that needs to be stable over long periods of time, or you're a beginner and feel intimidated by Arch, there are many different reasons not to use it. Such useful functionality should not be restricted to only a single distro. That is what LURE is meant to solve.
Documentation
The documentation for LURE is in the docs directory in this repo.
Web Interface
LURE now has a web interface! It's open source, licensed under the AGPLv3 (https://gitea.elara.ws/Elara6331/lure-web), and is available at https://lure.elara.ws.
Repositories
Unlike the AUR, LURE supports third-party repositories. Also unlike the AUR, LURE's repos are single git repositories containing all the build scripts. Inside each LURE repo, there is a separate directory for each package, containing a lure.sh
script, which is a PKGBUILD-like build script for LURE. The default repository is hosted on Github: https://github.com/Elara6331/lure-repo, and information about its packages is displayed at https://lure.elara.ws/pkgs.
Dependencies
As mentioned before, LURE has zero dependencies after compilation. Thanks to the following projects for making this possible:
- https://github.com/mvdan/sh
- https://github.com/go-git/go-git
- https://github.com/mholt/archiver
- https://github.com/goreleaser/nfpm
- https://github.com/charmbracelet/bubbletea
- https://gitlab.com/cznic/sqlite
Planned Features
- Automated docker-based testing tool