{"id":175392,"date":"2020-04-13T08:48:05","date_gmt":"2020-04-13T00:48:05","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=175392"},"modified":"2020-03-27T09:49:51","modified_gmt":"2020-03-27T01:49:51","slug":"arch-linux-aur","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/arch-linux-aur.html","title":{"rendered":"\u7528\u4e8eArch Linux\u76846\u4e2aAUR\u52a9\u624b"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nArch Linux \u662f\u4e00\u6b3e Linux \u53d1\u884c\u7248\uff0c\u4e3b\u8981\u7531\u9488\u5bf9 x86-64 \u5fae\u5904\u7406\u5668\u8ba1\u7b97\u673a\u7684\u4e8c\u8fdb\u5236\u8f6f\u4ef6\u5305\u7ec4\u6210\u3002Arch Linux \u4f7f\u7528\u7684\u662f\u6eda\u52a8\u53d1\u5e03\u6a21\u578b\uff0c\u8fd9\u79cd\u6a21\u5f0f\u4f1a\u9891\u7e41\u7684\u7ed9\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4ed8\u66f4\u65b0\u3002\u5b83\u4f7f\u7528\u540d\u4e3a pacman \u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u5b89\u88c5\u3001\u5220\u9664\u548c\u66f4\u65b0\u8f6f\u4ef6\u5305\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

Arch Linux \u662f\u4e00\u6b3e Linux \u53d1\u884c\u7248\uff0c\u4e3b\u8981\u7531\u9488\u5bf9 x86-64 \u5fae\u5904\u7406\u5668\u8ba1\u7b97\u673a\u7684\u4e8c\u8fdb\u5236\u8f6f\u4ef6\u5305\u7ec4\u6210\u3002Arch Linux \u4f7f\u7528\u7684\u662f\u6eda\u52a8\u53d1\u5e03\u6a21\u578b\uff0c\u8fd9\u79cd\u6a21\u5f0f\u4f1a\u9891\u7e41\u7684\u7ed9\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4ed8\u66f4\u65b0\u3002\u5b83\u4f7f\u7528\u540d\u4e3a pacman \u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u5b89\u88c5\u3001\u5220\u9664\u548c\u66f4\u65b0\u8f6f\u4ef6\u5305\u3002<\/p>\n

\u7531\u4e8e Arch Linux \u662f\u4e3a\u6709\u7ecf\u9a8c\u7684\u7528\u6237\u6784\u5efa\u7684\uff0c\u5efa\u8bae\u65b0\u624b\u5728\u4f7f\u7528\u8fc7\u5176\u4ed6 Linux \u540e\u518d\u6765\u5c1d\u8bd5\u3002<\/p>\n

\u4ec0\u4e48\u662f AUR\uff08Arch \u7528\u6237\u8f6f\u4ef6\u4ed3\u5e93\uff09\uff1f
\nArch \u7528\u6237\u8f6f\u4ef6\u4ed3\u5e93 \u901a\u5e38\u79f0\u4e3a AUR\uff0c\u662f\u7ed9 Arch \u7528\u6237\u7684\u57fa\u4e8e\u793e\u533a\u7684\u8f6f\u4ef6\u5b58\u50a8\u5e93\u3002<\/p>\n

\u6839\u636e\u8f6f\u4ef6\u5305\u5728 AUR \u793e\u533a\u7684\u6d41\u884c\u7a0b\u5ea6\uff0c\u7528\u6237\u7f16\u8bd1\u7684\u8f6f\u4ef6\u5305\u4f1a\u8fdb\u5165\u5230 Arch \u7684\u5b98\u65b9\u5b58\u50a8\u5e93\u3002<\/p>\n

\u4ec0\u4e48\u662f AUR \u52a9\u624b\uff1f<\/strong><\/div>\n

AUR \u52a9\u624b\u662f\u4e00\u4e2a\u5305\u88c5\u7a0b\u5e8f\uff0c\u5141\u8bb8\u7528\u6237\u4ece AUR \u5b58\u50a8\u5e93\u5b89\u88c5\u8f6f\u4ef6\u5305\uff0c\u800c\u65e0\u9700\u624b\u52a8\u5e72\u9884\u3002<\/p>\n

\u5f88\u591a\u7528\u4f8b\u5b9e\u73b0\u4e86\u81ea\u52a8\u5316\uff0c\u6bd4\u5982\u5305\u641c\u7d22\u3001\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u3001\u68c0\u7d22\u548c\u6784\u5efa AUR \u5305\u3001Web \u5185\u5bb9\u68c0\u7d22\u548c AUR \u5305\u63d0\u4ea4\u4e4b\u7c7b\u3002<\/p>\n

\u4ee5\u4e0b\u5217\u51fa\u4e86 6 \u79cd\u6700\u4f73\u7684 AUR \u52a9\u624b\uff1a
\nYay\uff08Yet another Yogurt\uff09
\nPakku
\nPacaur
\nPikaur
\nTrizen
\nAura<\/p>\n

1\uff09Yay\uff08Yet another Yogurt\uff09<\/strong><\/div>\n

Yay \u662f Arch Linux \u4e0b\u57fa\u4e8e CLI \u7684\u6700\u4f73 AUR \u52a9\u624b\uff0c\u4f7f\u7528 Go \u8bed\u8a00\u7f16\u5199\u3002Yay \u662f\u57fa\u4e8e yaourt\u3001apacman \u548c pacaur \u8bbe\u8ba1\u7684\u3002<\/p>\n

\u8fd9\u662f\u6700\u5408\u9002\u63a8\u8350\u7ed9\u65b0\u624b\u7684 AUR \u52a9\u624b\u3002\u7c7b\u4f3c\u4e8e Pacman\uff0c\u5176\u4f7f\u7528\u65b9\u6cd5\u548c pacman \u4e2d\u7684\u547d\u4ee4\u548c\u9009\u9879\u5f88\u76f8\u4f3c\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u5728\u641c\u7d22\u8fc7\u7a0b\u4e2d\u627e\u5230\u5339\u914d\u7684\u8f6f\u4ef6\u5305\u63d0\u4f9b\u7a0b\u5e8f\uff0c\u5e76\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n

\u5982\u4f55\u5b89\u88c5 yay<\/strong><\/span><\/div>\n

\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5728 Arch Linux \u7cfb\u7edf\u4e0a\u5b89\u88c5\u3002<\/p>\n

$ sudo pacman -S git go base-devel\r\n$ git clone https:\/\/aur.archlinux.org\/yay.git\r\n$ cd yay\r\n$ makepkg -si\r\n<\/pre>\n
\u5982\u4f55\u4f7f\u7528 yay<\/strong><\/span><\/div>\n

yay \u8bed\u6cd5\u4e0e pacman \u76f8\u540c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

$ yay -s arch-wiki-man\r\n<\/pre>\n
2\uff09Pakku<\/strong><\/div>\n

Pakku \u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e00\u4e2a\u521d\u59cb\u9636\u6bb5\u7684 Pacman\u3002\u5b83\u662f\u4e00\u4e2a\u5305\u88c5\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u4ece AUR \u4e2d\u641c\u7d22\u6216\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

\u5b83\u5728\u5220\u9664\u4f9d\u8d56\u9879\u65b9\u9762\u505a\u5f97\u4e0d\u9519\uff0c\u5e76\u4e14\u8fd8\u5141\u8bb8\u901a\u8fc7\u514b\u9686 PKGBUILD \u6765\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

\u5982\u4f55\u5b89\u88c5 Pakku<\/strong><\/span><\/div>\n

\u8981\u5728 Arch Linux \u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 Pakku\uff0c\u8bf7\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n

$ sudo pacman -S git base-devel\r\n$ git clone https:\/\/aur.archlinux.org\/pakku.git\r\n$ cd pakku\r\n$ makepkg -si\r\n<\/pre>\n
\u5982\u4f55\u4f7f\u7528 Pakku<\/strong><\/span><\/div>\n

pakku \u8bed\u6cd5\u4e0e pacman \u76f8\u540c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

$ pakku -s dropbox\r\n<\/pre>\n
3\uff09Pacaur<\/strong><\/div>\n

\u53e6\u4e00\u4e2a\u57fa\u4e8e CLI \u7684 AUR \u52a9\u624b\uff0c\u53ef\u5e2e\u52a9\u51cf\u5c11\u7528\u6237\u4e0e\u63d0\u793a\u7b26\u7684\u4ea4\u4e92\u3002<\/p>\n

Pacaur \u4e13\u4e3a\u503e\u5411\u4e8e\u81ea\u52a8\u5316\u91cd\u590d\u4efb\u52a1\u7684\u9ad8\u7ea7\u7528\u6237\u800c\u8bbe\u8ba1\u3002\u7528\u6237\u9700\u8981\u719f\u6089 makepkg \u53ca\u5176\u914d\u7f6e\u7684 AUR \u624b\u52a8\u6784\u5efa\u8fc7\u7a0b\u3002<\/p>\n

\u5982\u4f55\u5b89\u88c5 Pacaur<\/strong><\/span><\/div>\n

\u8981\u5728 Arch Linux \u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 Pakku\uff0c\u8bf7\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n

$ sudo pacman -S git base-devel\r\n$ git clone https:\/\/aur.archlinux.org\/pacaur.git\r\n$ cd pacaur\r\n$ makepkg -si\r\n<\/pre>\n
\u5982\u4f55\u4f7f\u7528 Pacaur<\/strong><\/span><\/div>\n

pacaur \u8bed\u6cd5\u4e0e pacman \u76f8\u540c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

$ pacaur -s spotify\r\n<\/pre>\n
4\uff09Pikaur<\/strong><\/div>\n

Pikaur \u662f\u5177\u6709\u6700\u5c0f\u4f9d\u8d56\u6027\u7684 AUR \u52a9\u624b\uff0c\u53ef\u4ee5\u4e00\u6b21\u67e5\u770b\u6240\u6709 PKGBUILD\uff0c\u65e0\u9700\u7528\u6237\u4ea4\u4e92\u5373\u53ef\u5168\u90e8\u6784\u5efa\u3002<\/p>\n

Pikaur \u5c06\u901a\u8fc7\u63a7\u5236 pacman \u547d\u4ee4\u6765\u544a\u77e5 Pacman \u8981\u6267\u884c\u7684\u4e0b\u4e00\u4e2a\u6b65\u9aa4\u3002<\/p>\n

\u5982\u4f55\u5b89\u88c5 Pikaur<\/strong><\/span><\/div>\n

\u8981\u5728 Arch Linux \u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 Pakku\uff0c\u8bf7\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n

$ sudo pacman -S git base-devel\r\n$ git clone https:\/\/aur.archlinux.org\/pikaur.git\r\n$ cd pikaur\r\n$ makepkg -fsri\r\n<\/pre>\n
\u5982\u4f55\u4f7f\u7528 Pikaur<\/strong><\/span><\/div>\n

pikaur \u8bed\u6cd5\u4e0e pacman \u76f8\u540c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

$ pacaur -s spotify\r\n<\/pre>\n
5\uff09Trizen<\/strong><\/div>\n

Trizen \u662f\u7528 Perl \u7f16\u5199\u7684\u57fa\u4e8e\u547d\u4ee4\u884c\u7684 AUR \u8f7b\u91cf\u7ea7\u5305\u88c5\u5668\u3002\u8fd9\u4e2a\u9762\u5411\u901f\u5ea6\u7684 AUR \u52a9\u624b\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u641c\u7d22\u3001\u5b89\u88c5\u8f6f\u4ef6\u5305\uff0c\u8fd8\u5141\u8bb8\u9605\u8bfb AUR \u8f6f\u4ef6\u5305\u6ce8\u91ca\u3002<\/p>\n

\u652f\u6301\u7f16\u8f91\u6587\u672c\u6587\u4ef6\uff0c\u5e76\u4e14\u8f93\u5165\/\u8f93\u51fa\u4f7f\u7528 UTF-8\u3002\u5185\u7f6e\u4e0e pacman \u7684\u4ea4\u4e92\u529f\u80fd\u3002<\/p>\n

\u5982\u4f55\u5b89\u88c5 Trizen<\/strong><\/span><\/div>\n

\u8981\u5728 Arch Linux \u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 Trizen\uff0c\u8bf7\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n

$ sudo pacman -S git base-devel\r\n$ git clone https:\/\/aur.archlinux.org\/trizen.git\r\n$ cd trizen\r\n$ makepkg -si\r\n<\/pre>\n
\u5982\u4f55\u4f7f\u7528 Trizen<\/strong><\/span><\/div>\n

trizen \u8bed\u6cd5\u4e0e pacman \u76f8\u540c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

$ pacaur -s google-chrome\r\n<\/pre>\n
6\uff09Aura<\/strong><\/div>\n

Aura \u662f\u7528 Haskell \u7f16\u5199\u7684\uff0c\u662f\u7528\u4e8e Arch Linux \u548c AUR \u7684\u5b89\u5168\u7684\u591a\u8bed\u8a00\u5305\u7ba1\u7406\u5668\u3002\u5b83\u652f\u6301\u8bb8\u591aPacman \u64cd\u4f5c\u548c\u5b50\u9009\u9879\uff0c\u53ef\u8f7b\u677e\u8fdb\u884c\u5f00\u53d1\u5e76\u7f16\u5199\u7cbe\u7f8e\u7684\u4ee3\u7801\u3002<\/p>\n

\u5b83\u53ef\u4ee5\u81ea\u52a8\u4ece AUR \u5b89\u88c5\u8f6f\u4ef6\u5305\u3002\u4f7f\u7528 Aura \u65f6\uff0c\u7528\u6237\u901a\u5e38\u4f1a\u5728\u7cfb\u7edf\u5347\u7ea7\u65b9\u9762\u9047\u5230\u4e00\u4e9b\u56f0\u96be\u3002<\/p>\n

\u5982\u4f55\u5b89\u88c5 Aura<\/strong><\/span><\/div>\n

\u8981\u5728 Arch Linux \u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 Pakku\uff0c\u8bf7\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n

$ sudo pacman -S git base-devel\r\n$ git clone https:\/\/aur.archlinux.org\/aura.git\r\n$ cd aura\r\n$ makepkg -si\r\n<\/pre>\n
\u5982\u4f55\u4f7f\u7528 Aura<\/strong><\/span><\/div>\n

aura \u8bed\u6cd5\u4e0e pacman \u76f8\u540c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002<\/p>\n

$ pacaur -s android-sdk\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Arch Linux \u662f\u4e00\u6b3e Linux \u53d1\u884c\u7248\uff0c\u4e3b\u8981\u7531\u9488\u5bf9 x86-64 \u5fae\u5904\u7406\u5668\u8ba1\u7b97\u673a\u7684\u4e8c\u8fdb\u5236\u8f6f\u4ef6\u5305\u7ec4\u6210\u3002 […]<\/p>\n","protected":false},"author":370,"featured_media":87641,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-175392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/175392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/370"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=175392"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/175392\/revisions"}],"predecessor-version":[{"id":175663,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/175392\/revisions\/175663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/87641"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=175392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=175392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=175392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}