arch linux从AUR安装软件

编程入门 行业动态 更新时间:2024-10-10 00:23:15

转自:http://raspberrypi.stackexchange/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.

  1. Install the build essentials. These are needed to compile packages on Arch Linux ARM.

    $ sudo pacman -S kernel26-headers file base-devel abs
    
  2. Obtain the PKGBUILD. You need to download the tarball that you want. You can find the tarballs for programs at the AUR.

  3. tar xf X.tar.gz, extract this packet. cd this dir.

  4. Make the packages. Next you need to run makepkg in order to generate a package that pacman can install.

    $ makepkg -Acs
    

    The -A option ignores the target Arch architecture. The -c option cleans up the directory after makepkg is done, and -s installs the needed dependencies.

    It is advised that you do NOT run makepkg as root as it can cause permanent damage to your system. If you really need to run it as root though, use the --asroot option.

  5. Install the package. makepkg should have create a file in the directory with the filetype .pkg.tar.xz. You should install this package by using the -U option with pacman.

    $ sudo pacman -U x.pkg.tar.xz
    

    Make sure you replace x.pkg.tar.xz with the actual package name.


更多推荐

arch linux从AUR安装软件

本文发布于:2023-06-14 03:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1435179.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件   arch   linux   AUR

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!