@wxy
https://linux.cn/article-15151-1.html
This commit is contained in:
Xingyu Wang 2022-10-18 10:46:39 +08:00
parent 237eb29691
commit 1af51346fa
2 changed files with 132 additions and 131 deletions

View File

@ -0,0 +1,132 @@
[#]: subject: "First Look at LURE! Bringing AUR to All Linux Distros"
[#]: via: "https://news.itsfoss.com/lure-aur/"
[#]: author: "Ankush Das https://news.itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "wxy"
[#]: reviewer: "wxy"
[#]: publisher: "wxy"
[#]: url: "https://linux.cn/article-15151-1.html"
LURE 初窥!将 AUR 带入所有 Linux 发行版
======
> LURE 是一个新的开源项目,它希望成为所有发行版的 AUR。
![LURE 是一个新的开源项目,它希望成为所有发行版的 AUR][1]
AUR<ruby>Arch 用户仓库<rt>Arch User Repository</rt></ruby>)是一个由社区驱动的基于 Arch 的 Linux 的发行版仓库。
**简而言之:** 它可以帮助你安装官方仓库中没有的软件包,并让你获得最新的版本。
我发现它对我在 [Manjaro Linux][2] 上的体验很有帮助。
从技术上讲AUR 从源头构建一个软件包,然后利用软件包管理器(`pacman`)来安装它。
你也可以在我们的详细指南中探索更多关于它的信息。
> **[什么是 AUR 如何在 Arch 和 Manjaro Linux 中使用 AUR][3]**
📢 现在你对 AUR 有了一个基本的了解,有一个 **新的开源项目** 旨在将 AUR 的功能带到所有的发行版中。
这个项目被称为 “<ruby>Linux 用户仓库<rt>Linux User REpository</rt></ruby>LURE
> 💡 LURE 项目正处于 alpha 阶段,由创建者在几周前宣布。所以,它完全是一个正在进行的工作。
### 已经有这样的项目了?
![lure 添加仓库][5]
**没有。**
开发者们已经尝试做一个 AUR 的替代品,但是是针对特定的发行版。就像 [makedeb 软件包仓库][6] 是针对 Debian 的。
LURE 是一个雄心勃勃的想法,可以在你选择的任何发行版上工作。
它试图成为一个帮助你使用类似于 `PKGBUILD` 的脚本为你的发行版创建原生软件包的工具。
> **[创建 PKGBUILD 为 Arch Linux 制作软件包][7]**
开发者在 [Reddit 公告帖子][9] 中提到了一些技术细节:
> 我的项目叫 LURE是 “Linux 用户仓库”的简称。它构建原生软件包,然后使用系统软件包管理器安装它们,就像 AUR 一样。它使用一个类似于 AUR 的 `PKGBUILD` 的构建脚本来构建软件包。
>
> 它是用纯 Go 语言编写的,这意味着它在构建后没有任何依赖性,除了一些特权提升命令(`sudo``doas` 等等)和任何一个支持的软件包管理器,目前支持 `pacman`、`apt`、`apk`Alpine Linux 上,不是安卓)、`dnf`、`yum` 和 `zypper`
**听起来很棒!**
> **[LURE 项目Repo][10]**
你也可以在它的 [GitHub 镜像][11] 上探索更多信息。
### 使用 LURE
你不必安装一个额外的软件包管理器来使它工作,它可以自动与你系统的软件包管理器一起工作。
因此,如果它在其仓库(或任何其添加的仓库)中没有找到一个包,它就会转到系统的默认仓库,并从那里安装它。就像我用 `lure` 命令在我的系统上安装/移除 `neofetch` 一样。
![lure neofetch remove][12]
虽然该项目处于早期开发阶段,但它为各种发行版提供了 [二进制包][13],以让你安装和测试它们。
![][14]
目前,它的仓库包括一个来自创建者自己的项目。但你可以尝试添加一个仓库并构建/安装东西。
为了方便起见,我试着在它的仓库中安装软件包。
![][15]
命令看起来像这样:
```
lure in itd-bin
```
在它的 [官方文档页面][16],你可以读到更多关于它在构建/安装/添加存储库方面的用法。
未来版本的一些计划中的功能包括:
* 自动安装脚本
* 基于 Docker 的自动测试工具
* 仓库的网页接口
### 让它变得更好
嗯,首先,这是一个优秀的项目。如果你是过去使用过 Arch 的人,或者想离开 Arch Linux这将是一个很好的工具。
然而,对于大多数终端用户和非 Arch Linux 新手来说,像 [Pamac GUI 软件包管理器][17] 这样的软件包管理器支持 LURE 应该是锦上添花的。
当然,在目前的阶段,它需要开源贡献者的支持。所以,如果你喜欢这个想法,请随时为该项目贡献改进意见
*💭 你对 LURE 有什么看法?请在下面的评论中分享你的想法! *
--------------------------------------------------------------------------------
via: https://news.itsfoss.com/lure-aur/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[wxy](https://github.com/wxy)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://news.itsfoss.com/author/ankush/
[b]: https://github.com/lkxed
[1]: https://news.itsfoss.com/content/images/size/w1200/2022/10/LURE-aur-for-all-linux-distros.jpg
[2]: https://news.itsfoss.com/manjaro-linux-experience/
[3]: https://itsfoss.com/aur-arch-linux/
[4]: https://itsfoss.com/aur-arch-linux/
[5]: https://news.itsfoss.com/content/images/2022/10/lure-repos.png
[6]: https://mpr.makedeb.org
[7]: https://itsfoss.com/create-pkgbuild/
[8]: https://itsfoss.com/create-pkgbuild/
[9]: https://www.reddit.com/r/linux/comments/xq09nf/lure_aur_on_nonarch_distros/
[10]: https://gitea.arsenm.dev/Arsen6331/lure
[11]: https://github.com/Arsen6331/lure
[12]: https://news.itsfoss.com/content/images/2022/10/lure-neofetch-rm.png
[13]: https://gitea.arsenm.dev/Arsen6331/lure/releases/tag/v0.0.2
[14]: https://news.itsfoss.com/content/images/2022/10/lure-binaries.jpg
[15]: https://news.itsfoss.com/content/images/2022/10/lure-test.png
[16]: https://github.com/Arsen6331/lure/blob/master/docs/usage.md
[17]: https://itsfoss.com/install-pamac-arch-linux/

View File

@ -1,131 +0,0 @@
[#]: subject: "First Look at LURE! Bringing AUR to All Linux Distros"
[#]: via: "https://news.itsfoss.com/lure-aur/"
[#]: author: "Ankush Das https://news.itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "wxy"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
First Look at LURE! Bringing AUR to All Linux Distros
======
LURE is a new open-source project that aspires to become the AUR for all distros.
![First Look at LURE! Bringing AUR to All Linux Distros][1]
**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][2].
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?][3]
📢 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).**
> 💡 The LURE project is in its alpha stage, announced by the creator a few weeks back. So, it is entirely a work in progress.
### A Project Like This Already Exists?
![lure adding repo][5]
**No.**
Developers have tried making an AUR alternative, but for a specific distribution. Like [makedeb Package Repository][6] 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 - Its FOSS][7]
The developer mentions some of the technical details in a [Reddit announcement post][9]:
> 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!**
[LURE Project Repo][10]
You can also explore more about it on its [GitHub mirror][11].
### 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][12]
While the project is in early development, it offers [binary packages][13] for various distributions allowing you to install and test them.
![][14]
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:
![][15]
The command looks like this:
```
lure in itd-bin
```
On its [official documentation page][16], 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][17] 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!*
--------------------------------------------------------------------------------
via: https://news.itsfoss.com/lure-aur/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://news.itsfoss.com/author/ankush/
[b]: https://github.com/lkxed
[1]: https://news.itsfoss.com/content/images/size/w1200/2022/10/LURE-aur-for-all-linux-distros.jpg
[2]: https://news.itsfoss.com/manjaro-linux-experience/
[3]: https://itsfoss.com/aur-arch-linux/
[4]: https://itsfoss.com/aur-arch-linux/
[5]: https://news.itsfoss.com/content/images/2022/10/lure-repos.png
[6]: https://mpr.makedeb.org
[7]: https://itsfoss.com/create-pkgbuild/
[8]: https://itsfoss.com/create-pkgbuild/
[9]: https://www.reddit.com/r/linux/comments/xq09nf/lure_aur_on_nonarch_distros/
[10]: https://gitea.arsenm.dev/Arsen6331/lure
[11]: https://github.com/Arsen6331/lure
[12]: https://news.itsfoss.com/content/images/2022/10/lure-neofetch-rm.png
[13]: https://gitea.arsenm.dev/Arsen6331/lure/releases/tag/v0.0.2
[14]: https://news.itsfoss.com/content/images/2022/10/lure-binaries.jpg
[15]: https://news.itsfoss.com/content/images/2022/10/lure-test.png
[16]: https://github.com/Arsen6331/lure/blob/master/docs/usage.md
[17]: https://itsfoss.com/install-pamac-arch-linux/