简体   繁体   English

安装时安装 AUR 包

[英]Install AUR packages during installation

I want to reinstall my system on a new computer from an backup.我想通过备份在新计算机上重新安装我的系统。 So I wrote a script which reinstalls all packages from a list and restores a backup, but one point is missing:所以我写了一个脚本来重新安装列表中的所有包并恢复备份,但缺少一点:

I also want to install packages from AUR, but I can not find a way how to install these packages.我也想从 AUR 安装包,但我找不到安装这些包的方法。 First problem is that you are not allowed to build packages if you are root.第一个问题是,如果您是 root 用户,则不允许构建软件包。 I could build a workaround for single packages with "su nobody", but I don't see a way how to use an AUR helper (like trizen) for packages which have dependencies.我可以使用“su nobody”为单个包构建一个变通方法,但我看不到如何对具有依赖性的包使用 AUR 帮助程序(如 trizen)。

Try using package managers such as paru or yay to install AURs.尝试使用 package 管理器,例如 paru 或 yay 来安装 AUR。 If not just download the AUR directly from GitHub and run their install script.如果不是直接从 GitHub 下载 AUR 并运行他们的安装脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM