转自:http://raspberrypi.stackexchange.com/questions/510/how-do-i-install-packages-from-the-aur
The easiest solution is to use Yaourt (Yet AnOther User Repository Tool).
You can install with:
pacman -S yaourt
And then sync with the AUR:
yaourt -Syy
You can then search AUR packages:
yaourt package-name
Which will provide interactive prompts for installation.
Or if you know the package name exactly:
yaourt -S package-name
Most pacman commands are the same for yaourt.
According to the Building Packages page from the Arch Linux ARM, you need to.
-
Install the build essentials. These are needed to compile packages on Arch Linux ARM.
$ sudo pacman -S kernel26-headers file base-devel abs -
Obtain the
PKGBUILD. You need to download the tarball that you want. You can find the tarballs for programs at the AUR. -
tar xf X.tar.gz, extract this packet. cd this dir.
-
Make the packages. Next you need to run
makepkgin order to generate a package that pacman can install.$ makepkg -AcsThe
-Aoption ignores the target Arch architecture. The-coption cleans up the directory aftermakepkgis done, and-sinstalls the needed dependencies.It is advised that you do NOT run
makepkgas root as it can cause permanent damage to your system. If you really need to run it as root though, use the--asrootoption. -
Install the package.
makepkgshould have create a file in the directory with the filetype.pkg.tar.xz. You should install this package by using the-Uoption with pacman.$ sudo pacman -U x.pkg.tar.xzMake sure you replace
x.pkg.tar.xzwith the actual package name.
本文介绍了如何使用Yaourt工具从AUR安装软件包,并提供了详细的步骤来手动编译和安装AUR上的包,包括安装构建必需品、获取PKGBUILD文件、制作包以及最终安装。
2872

被折叠的 条评论
为什么被折叠?



