\u65b9\u6cd5 1\u3001\u4f7f\u7528 AUR \u52a9\u624b\u542f\u7528 Snap<\/strong><\/div>\nSnap \u652f\u6301\u5728 Arch \u7528\u6237\u4ed3\u5e93\u4e2d\u4ee5 \u200b\u200bsnapd\u200b\u200b \u5305\u7684\u5f62\u5f0f\u63d0\u4f9b\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 AUR \u52a9\u624b\u8f7b\u677e\u5b89\u88c5\u5b83\u3002<\/p>\n
\u6709 \u200b\u200b\u8bb8\u591a AUR \u52a9\u624b\u200b\u200b\uff0c\u4f46 \u200b\u200byay\u200b\u200b \u662f\u6211\u66f4\u559c\u6b22\u7684\uff0c\u56e0\u4e3a\u5b83\u7684\u8bed\u6cd5\u7c7b\u4f3c\u4e8e \u200b\u200bpacman \u547d\u4ee4\u200b\u200b\u3002<\/p>\n
\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5 AUR\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Yay\uff08\u9700\u8981\u4e8b\u5148\u5b89\u88c5 \u200b\u200bgit\u200b\u200b\uff09\uff1a<\/p>\n
\r\ngit clone https:\/\/aur.archlinux.org\/yay\r\ncd yay\r\nmakepkg -si<\/pre>\n
\n\u73b0\u5728 \u200b\u200byay\u200b\u200b \u5df2\u5b89\u88c5\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5b89\u88c5 \u200b\u200bsnapd\u200b\u200b\uff1a<\/p>\n
yay -Sy snapd<\/pre>\n
\n\u4f7f\u7528 yay \u4ece AUR \u5b89\u88c5 snapd<\/p>\n
\u6bcf\u5f53\u4f60 \u200b\u200b\u66f4\u65b0 Arch Linux\u200b\u200b \u7cfb\u7edf\u65f6\uff0c\u200b\u200byay\u200b\u200b \u90fd\u4f1a\u542f\u7528 \u200b\u200bsnapd\u200b\u200b \u7684\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n
\u9a8c\u8bc1 Snap \u652f\u6301\u662f\u5426\u6709\u6548<\/strong><\/div>\n\u8981\u6d4b\u8bd5 Snap \u652f\u6301\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff0c\u8bf7\u5b89\u88c5\u5e76\u8fd0\u884c \u200b\u200bhello-world\u200b\u200b Snap \u5305\u3002<\/p>\n
sudo snap install hello-worldhello-world\uff08\u6216\u8005\uff09sudo snap run hello-world<\/pre>\n
\nhello-world Snap \u5305\u6267\u884c<\/p>\n
\u5982\u679c\u5b83\u8fd0\u884c\u826f\u597d\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u5176\u4ed6 Snap \u5305\u3002<\/p>\n
\u65b9\u6cd5 2\u3001\u4ece AUR \u624b\u52a8\u6784\u5efa snapd \u5305<\/strong><\/div>\n\u5982\u679c\u4f60\u4e0d\u60f3\u4f7f\u7528 AUR \u52a9\u624b\uff0c\u4f60\u4ecd\u7136\u53ef\u4ee5\u4ece AUR \u83b7\u53d6 \u200b\u200bsnapd\u200b\u200b\u3002\u8ba9\u6211\u5c55\u793a\u8be6\u7ec6\u7684\u8fc7\u7a0b\u3002<\/p>\n
\u4f60\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e9b\u6784\u5efa\u5de5\u5177\u3002<\/p>\n
sudo pacman -Sy git go go-tools python-docutils<\/pre>\n
\n\u5b8c\u6210\u4f9d\u8d56\u9879\u5b89\u88c5\u540e\uff0c\u73b0\u5728\u53ef\u4ee5\u514b\u9686 \u200b\u200bsnapd\u200b\u200b \u7684 AUR \u76ee\u5f55\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n
git clone https:\/\/aur.archlinux.org\/snapdcd snapd<\/pre>\n<\/p>\n
\u514b\u9686\u4ed3\u5e93<\/strong><\/div>\n\u7136\u540e\u6784\u5efa \u200b\u200bsnapd\u200b\u200b \u5305\uff1a<\/p>\n
\r\nmakepkg -si\r\n<\/pre>\n\u5f53\u5b83\u8981\u6c42\u5b89\u88c5\u5176\u4ed6\u4f9d\u8d56\u5305\u65f6\u8f93\u5165 \u200b\u200byes\u200b\u200b\u3002
\n
\n\u624b\u52a8\u6784\u5efa snapd<\/p>\n
\u4f60\u5df2\u5b89\u88c5 \u200b\u200bsnapd\u200b\u200b \u5b88\u62a4\u7a0b\u5e8f\u3002\u4f46\u662f\uff0c\u9700\u8981\u542f\u7528\u5b83\u4ee5\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n
sudo systemctl enable snapd --nowsudo systemctl enable snapd.apparmor --now #start snap applicationssudo ln -s \/var\/lib\/snapd\/snap \/snap #optional: classic snap support<\/pre>\n
\n\u542f\u52a8\u65f6\u542f\u7528 Snap<\/p>\n
\u624b\u52a8\u6784\u5efa\u5305\u7684\u4e3b\u8981\u7f3a\u70b9\u662f\u6bcf\u6b21\u65b0\u66f4\u65b0\u542f\u52a8\u65f6\u4f60\u90fd\u5fc5\u987b\u624b\u52a8\u6784\u5efa\u3002\u4f7f\u7528 AUR \u52a9\u624b\u4e3a\u6211\u4eec\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n
\u603b\u7ed3<\/strong><\/div>\n\u6211\u66f4\u559c\u6b22 Arch Linux \u4e2d\u7684 pacman \u548c AUR\u3002\u5f88\u5c11\u80fd\u770b\u5230\u4e0d\u5728 AUR \u4e2d\u4f46\u4ee5\u5176\u4ed6\u683c\u5f0f\u63d0\u4f9b\u7684\u5e94\u7528\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u5728\u67d0\u4e9b\u4f60\u5e0c\u671b\u76f4\u63a5\u4ece\u6e90\u83b7\u53d6\u5b83\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528 Snap \u53ef\u80fd\u662f\u6709\u5229\u7684\uff0c\u4f8b\u5982 \u200b\u200b\u5728 Arch \u4e0a\u5b89\u88c5 Spotify\u200b\u200b\u3002<\/p>\n
\u5e0c\u671b\u672c\u6559\u7a0b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u8bf7\u544a\u8bc9\u6211\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
Snap \u662f\u7531 Ubuntu \u7684\u6bcd\u516c\u53f8 Canonical \u8bbe\u8ba1\u7684\u901a\u7528\u5305\u683c\u5f0f\u3002\u6709\u4e9b\u4eba\u4e0d\u559c\u6b22 Snap\uff0c\u4f46\u5b83\u6709\u4e00 […]<\/p>\n","protected":false},"author":1469,"featured_media":255661,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-255648","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\/255648","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\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=255648"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255648\/revisions"}],"predecessor-version":[{"id":255662,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255648\/revisions\/255662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/255661"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=255648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=255648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=255648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}