arch linux从AUR安装软件

转自: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.

  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.


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值