LURE 初窥！将 AUR 带入所有 Linux 发行版
AUR LURE

> 
> LURE 是一个新的开源项目，它希望成为所有发行版的 AUR。
> 
> 
> 


![LURE 是一个新的开源项目，它希望成为所有发行版的 AUR！](/data/attachment/album/202210/18/104605rkuwfzbanj4jjnag.jpg)


AUR（<ruby> Arch 用户仓库 <rt>  Arch User Repository </rt></ruby>）是一个由社区驱动的基于 Arch 的 Linux 的发行版仓库。


**简而言之：** 它可以帮助你安装官方仓库中没有的软件包，并让你获得最新的版本。


我发现它对我在 [Manjaro Linux](https://news.itsfoss.com/manjaro-linux-experience/) 上的体验很有帮助。


从技术上讲，AUR 从源头构建一个软件包，然后利用软件包管理器（`pacman`）来安装它。


你也可以在我们的详细指南中探索更多关于它的信息。



> 
> **[什么是 AUR？ 如何在 Arch 和 Manjaro Linux 中使用 AUR？](https://itsfoss.com/aur-arch-linux/)**
> 
> 
> 


? 现在你对 AUR 有了一个基本的了解，有一个 **新的开源项目** 旨在将 AUR 的功能带到所有的发行版中。


这个项目被称为 “<ruby> Linux 用户仓库 <rt>  Linux User REpository </rt></ruby>”（LURE）。



> 
> ? LURE 项目正处于 alpha 阶段，由创建者在几周前宣布。所以，它完全是一个正在进行的工作。
> 
> 
> 


### 已经有这样的项目了？


![lure 添加仓库](/data/attachment/album/202210/18/104606pjzjjjf90rncmiff.png)


**没有。**


开发者们已经尝试做一个 AUR 的替代品，但是是针对特定的发行版。就像 [makedeb 软件包仓库](https://mpr.makedeb.org) 是针对 Debian 的。


LURE 是一个雄心勃勃的想法，可以在你选择的任何发行版上工作。


它试图成为一个帮助你使用类似于 `PKGBUILD` 的脚本为你的发行版创建原生软件包的工具。



> 
> **[创建 PKGBUILD 为 Arch Linux 制作软件包](https://itsfoss.com/create-pkgbuild/)**
> 
> 
> 


开发者在 [Reddit 公告帖子](https://www.reddit.com/r/linux/comments/xq09nf/lure_aur_on_nonarch_distros/) 中提到了一些技术细节：



> 
> 我的项目叫 LURE，是 “Linux 用户仓库”的简称。它构建原生软件包，然后使用系统软件包管理器安装它们，就像 AUR 一样。它使用一个类似于 AUR 的 `PKGBUILD` 的构建脚本来构建软件包。
> 
> 
> 它是用纯 Go 语言编写的，这意味着它在构建后没有任何依赖性，除了一些特权提升命令（`sudo`，`doas` 等等）和任何一个支持的软件包管理器，目前支持 `pacman`、`apt`、`apk`（Alpine Linux 上，不是安卓）、`dnf`、`yum` 和 `zypper`。
> 
> 
> 


**听起来很棒！**



> 
> **[LURE 项目Repo](https://gitea.arsenm.dev/Arsen6331/lure)**
> 
> 
> 


你也可以在它的 [GitHub 镜像](https://github.com/Arsen6331/lure) 上探索更多信息。


### 使用 LURE


你不必安装一个额外的软件包管理器来使它工作，它可以自动与你系统的软件包管理器一起工作。


因此，如果它在其仓库（或任何其添加的仓库）中没有找到一个包，它就会转到系统的默认仓库，并从那里安装它。就像我用 `lure` 命令在我的系统上安装/移除 `neofetch` 一样。


![lure neofetch remove](/data/attachment/album/202210/18/104606hs3dvvvzf7sppba0.png)


虽然该项目处于早期开发阶段，但它为各种发行版提供了 [二进制包](https://gitea.arsenm.dev/Arsen6331/lure/releases/tag/v0.0.2)，以让你安装和测试它们。


![](/data/attachment/album/202210/18/104606li6orupmrafxo122.jpg)


目前，它的仓库包括一个来自创建者自己的项目。但你可以尝试添加一个仓库并构建/安装东西。


为了方便起见，我试着在它的仓库中安装软件包。


![](/data/attachment/album/202210/18/104606b7th007d3eq71bpt.png)


命令看起来像这样：



```
lure in itd-bin

```

在它的 [官方文档页面](https://github.com/Arsen6331/lure/blob/master/docs/usage.md)，你可以读到更多关于它在构建/安装/添加存储库方面的用法。


未来版本的一些计划中的功能包括：


* 自动安装脚本
* 基于 Docker 的自动测试工具
* 仓库的网页接口


### 让它变得更好


嗯，首先，这是一个优秀的项目。如果你是过去使用过 Arch 的人，或者想离开 Arch Linux，这将是一个很好的工具。


然而，对于大多数终端用户和非 Arch Linux 新手来说，像 [Pamac GUI 软件包管理器](https://itsfoss.com/install-pamac-arch-linux/) 这样的软件包管理器支持 LURE 应该是锦上添花的。


当然，在目前的阶段，它需要开源贡献者的支持。所以，如果你喜欢这个想法，请随时为该项目贡献改进意见


\*? 你对 LURE 有什么看法？请在下面的评论中分享你的想法！ \*




---


via: <https://news.itsfoss.com/lure-aur/>


作者：[Ankush Das](https://news.itsfoss.com/author/ankush/) 选题：[lkxed](https://github.com/lkxed) 译者：[wxy](https://github.com/wxy) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![](/assets/images/pikapods-banner-v3.webp)


![](/assets/images/pikapods-banner-v3.webp)

**AUR** (Arch User Repository) is a community-driven repository for Arch-based Linux distributions.

**Long story short:** it helps install packages not available in the official repositories and lets you get the latest releases.

I found it helpful with my experience on [Manjaro Linux](https://news.itsfoss.com/manjaro-linux-experience/).

Technically, AUR builds a package from the source and then utilizes the package manager (pacman) to install it.

You can also explore more about it in our detailed guide:

[What is AUR? How to use AUR in Arch and Manjaro Linux?What is AUR? What are the pros and cons of using AUR? How to use AUR in Arch-based Linux distributions? This beginner’s guide answers all such questions.](https://itsfoss.com/aur-arch-linux/?ref=news.itsfoss.com)![](https://itsfoss.com/wp-content/uploads/2020/04/what-is-aur.png)


![](https://itsfoss.com/wp-content/uploads/2020/04/what-is-aur.png)

📢 Now that you have a good idea about AUR, a **new open-source project **aims to bring the utility of AUR to all the distributions.

The project is called **Linux User REpository (or LURE).**

## A Project Like This Already Exists?

![lure adding repo](https://news.itsfoss.com/content/images/2022/10/lure-repos.png)

**No.**

Developers have tried making an AUR alternative, but for a specific distribution. Like [makedeb Package Repository](https://mpr.makedeb.org/?ref=news.itsfoss.com) for Debian.

LURE is an ambitious idea that could work on any distribution of your choice.

It seeks to be a tool that helps you create native packages for your distribution using a script similar to **PKGBUILD**.

[Creating a PKGBUILD to Make Packages for Arch Linux - It’s FOSSHow do you go from a PKGBUILD to an installable package in Arch Linux? What exactly is going on between the two and how can you make them for your own packages?](https://itsfoss.com/create-pkgbuild/?ref=news.itsfoss.com)![](https://itsfoss.com/wp-content/uploads/2021/07/pkgbuild-guide.png)


![](https://itsfoss.com/wp-content/uploads/2021/07/pkgbuild-guide.png)

The developer mentions some of the technical details in a [Reddit announcement post](https://www.reddit.com/r/linux/comments/xq09nf/lure_aur_on_nonarch_distros/?ref=news.itsfoss.com):

My project is called LURE, short for Linux User REpository. It builds native packages and then installs them using the system package manager, just like the AUR. It uses a build script similar to the AUR's PKGBUILD to build the packages.

It is written in pure Go, which means that it has zero dependencies after it's built, other than any privilege escalation command (`sudo`

,`doas`

, etc.) and any one of the supported package managers, which currently are:`pacman`

,`apt`

,`apk`

(Alpine Linux, not Android),`dnf`

,`yum`

, and`zypper`

.

**Sounds exciting!**

You can also explore more about it on its [GitHub mirror](https://github.com/Arsen6331/lure?ref=news.itsfoss.com).

## Using LURE

You do not have to install an additional package manager to make it work; it works automatically with your system's package manager.

So, if it does not find a package in its repo (or any of its added repo), it moves to the system's default repo and installs it from there. Just like I installed/removed **neofetch** on my system using the lure command:

![lure neofetch remove](https://news.itsfoss.com/content/images/2022/10/lure-neofetch-rm.png)

While the project is in early development, it offers [binary packages](https://gitea.arsenm.dev/Arsen6331/lure/releases/tag/v0.0.2?ref=news.itsfoss.com) for various distributions allowing you to install and test them.

![](https://news.itsfoss.com/content/images/2022/10/lure-binaries.jpg)

Currently, its repository includes one project from the creator itself. But you can try to add a repo and build/install things.

For the sake of convenience, I tried installing the package in its repo:

![](https://news.itsfoss.com/content/images/2022/10/lure-test.png)

The command looks like this:

` lure in itd-bin `

On its [official documentation page](https://github.com/Arsen6331/lure/blob/master/docs/usage.md?ref=news.itsfoss.com), you can read more about its usage to build/install/add repositories.

Some of the planned features for future releases include:

**Automated install script****Automated docker-based testing tool****Web interface for repos**

## What Would Make It Better?

Well, for starters, this is an excellent project. If you are someone who used Arch in the past or want to move away from Arch Linux, this will be a good tool for you.

However, for most end-users and non-Arch Linux newbies, something like the [Pamac GUI package manager](https://itsfoss.com/install-pamac-arch-linux/?ref=news.itsfoss.com) with LURE support should be the icing on the cake.

Of course, at its current stage, it needs support from open-source contributors. So, if you like the idea, feel free to contribute improvements to the project!

*💭 What do you think about LURE? Share your thoughts in the comments below!*

## More from It's FOSS...

- Support us by opting for
[It's FOSS Plus](https://itsfoss.com/#/portal/signup)membership. - Join our
[community forum](https://itsfoss.community/). - 📩 Stay updated with the latest on Linux and Open Source. Get our
[weekly Newsletter](https://itsfoss.com/newsletter/).