{"id":113429,"date":"2018-08-03T08:15:23","date_gmt":"2018-08-03T00:15:23","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=113429"},"modified":"2018-07-27T09:17:12","modified_gmt":"2018-07-27T01:17:12","slug":"linux-pacman","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-pacman.html","title":{"rendered":"\u600e\u6837\u5728Linux\u4e2d\u7528\u4e00\u4e2a\u547d\u4ee4\u5347\u7ea7\u5168\u90e8\u8f6f\u4ef6"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f17\u6240\u5468\u77e5\uff0c\u8ba9\u6211\u4eec\u7684 Linux \u7cfb\u7edf\u4fdd\u6301\u6700\u65b0\u72b6\u6001\u4f1a\u7528\u5230\u591a\u79cd\u5305\u7ba1\u7406\u5668\u3002\u6bd4\u5982\u8bf4\uff0c\u5728 Ubuntu \u4e2d\uff0c\u4f60\u65e0\u6cd5\u4f7f\u7528 sudo apt update \u548c sudo apt upgrade \u547d\u4ee4\u5347\u7ea7\u6240\u6709\u8f6f\u4ef6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6b64\u547d\u4ee4\u4ec5\u5347\u7ea7\u4f7f\u7528 APT \u5305\u7ba1\u7406\u5668\u5b89\u88c5\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u4f60\u6709\u53ef\u80fd\u4f7f\u7528 cargo\u3001pip\u3001npm\u3001snap \u3001flatpak \u6216 Linuxbrew \u5305\u7ba1\u7406\u5668\u5b89\u88c5\u4e86\u5176\u4ed6\u8f6f\u4ef6\u3002\u4f60\u9700\u8981\u4f7f\u7528\u76f8\u5e94\u7684\u5305\u7ba1\u7406\u5668\u624d\u80fd\u4f7f\u5b83\u4eec\u5168\u90e8\u66f4\u65b0\u3002<\/p>\n

\u518d\u4e5f\u4e0d\u7528\u8fd9\u6837\u4e86!\u8ddf topgrade \u6253\u4e2a\u62db\u547c\uff0c\u8fd9\u662f\u4e00\u4e2a\u53ef\u4ee5\u4e00\u6b21\u6027\u5347\u7ea7\u7cfb\u7edf\u4e2d\u6240\u6709\u8f6f\u4ef6\u7684\u5de5\u5177\u3002<\/p>\n

\u4f60\u65e0\u9700\u8fd0\u884c\u6bcf\u4e2a\u5305\u7ba1\u7406\u5668\u6765\u66f4\u65b0\u5305\u3002\u8fd9\u4e2a topgrade \u5de5\u5177\u901a\u8fc7\u68c0\u6d4b\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u3001\u5de5\u5177\u3001\u63d2\u4ef6\u5e76\u8fd0\u884c\u76f8\u5e94\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u6765\u66f4\u65b0 Linux \u4e2d\u7684\u6240\u6709\u8f6f\u4ef6\uff0c\u7528\u4e00\u6761\u547d\u4ee4\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002\u5b83\u662f\u81ea\u7531\u800c\u5f00\u6e90\u7684\uff0c\u4f7f\u7528 rust \u8bed\u8a00\u7f16\u5199\u3002\u5b83\u652f\u6301 GNU\/Linux \u548c Mac OS X.<\/p>\n

\u00a0\u5728 Linux \u4e2d\u4f7f\u7528\u4e00\u4e2a\u547d\u4ee4\u5347\u7ea7\u6240\u6709\u8f6f\u4ef6<\/strong><\/div>\n

topgrade \u5b58\u5728\u4e8e AUR \u4e2d\u3002\u56e0\u6b64\uff0c\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u57fa\u4e8e Arch \u7684\u7cfb\u7edf\u4e2d\u4f7f\u7528 Yay \u52a9\u624b\u7a0b\u5e8f\u5b89\u88c5\u5b83\u3002
\n$ yay -S topgrade
\n\u5728\u5176\u4ed6 Linux \u53d1\u884c\u7248\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 cargo \u5305\u7ba1\u7406\u5668\u5b89\u88c5 topgrade\u3002\u8981\u5b89\u88c5 cargo \u5305\u7ba1\u7406\u5668\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u94fe\u63a5\uff1a<\/p>\n

\u5728 Linux \u5b89\u88c5 rust \u8bed\u8a00<\/strong><\/span><\/div>\n

\u7136\u540e\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5 topgrade\u3002
\n$ cargo install topgrade
\n\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8fd0\u884c topgrade \u4ee5\u5347\u7ea7 Linux \u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u8f6f\u4ef6\u3002
\n$ topgrade
\n\u4e00\u65e6\u8c03\u7528\u4e86 topgrade\uff0c\u5b83\u5c06\u9010\u4e2a\u6267\u884c\u4ee5\u4e0b\u4efb\u52a1\u3002\u5982\u6709\u5fc5\u8981\uff0c\u7cfb\u7edf\u4f1a\u8981\u6c42\u8f93\u5165 root\/sudo \u7528\u6237\u5bc6\u7801\u3002
\n1\u3001 \u8fd0\u884c\u7cfb\u7edf\u7684\u5305\u7ba1\u7406\u5668\uff1a
\n\u25cf\u00a0Arch\uff1a\u8fd0\u884c yay \u6216\u8005\u56de\u9000\u5230 pacman
\n\u25cf\u00a0CentOS\/RHEL\uff1a\u8fd0\u884c yum upgrade
\n\u25cf\u00a0Fedora \uff1a\u8fd0\u884c dnf upgrade
\n\u25cf\u00a0Debian\/Ubuntu\uff1a\u8fd0\u884c apt update \u548c apt dist-upgrade
\n\u25cf\u00a0Linux\/macOS\uff1a\u8fd0\u884c brew update \u548c brew upgrade
\n2\u3001 \u68c0\u67e5 Git \u662f\u5426\u8ddf\u8e2a\u4e86\u4ee5\u4e0b\u8def\u5f84\u3002\u5982\u679c\u6709\uff0c\u5219\u62c9\u53d6\u5b83\u4eec\uff1a
\n\u25cf\u00a0~\/.emacs.d (\u65e0\u8bba\u4f60\u4f7f\u7528 Spacemacs \u8fd8\u662f\u81ea\u5b9a\u4e49\u914d\u7f6e\u90fd\u5e94\u8be5\u53ef\u7528)
\n\u25cf\u00a0~\/.zshrc
\n\u25cf\u00a0~\/.oh-my-zsh
\n\u25cf\u00a0~\/.tmux
\n\u25cf\u00a0~\/.config\/fish\/config.fish<\/p>\n

\u81ea\u5b9a\u4e49\u8def\u5f84<\/strong><\/span><\/div>\n

3\u3001 Unix\uff1a\u8fd0\u884c zplug \u66f4\u65b0
\n4\u3001 Unix\uff1a\u4f7f\u7528 TPM \u5347\u7ea7 tmux \u63d2\u4ef6
\n5\u3001 \u8fd0\u884c cargo install-update
\n6\u3001 \u5347\u7ea7 Emacs \u5305
\n7\u3001 \u5347\u7ea7 Vim \u5305\u3002\u5bf9\u4ee5\u4e0b\u63d2\u4ef6\u6846\u67b6\u5747\u53ef\u7528\uff1a
\n\u25cf\u00a0NeoBundle
\n\u25cf\u00a0Vundle
\n\u25cf\u00a0Plug
\n8\u3001 \u5347\u7ea7 npm \u5168\u5c40\u5b89\u88c5\u7684\u5305
\n9\u3001 \u5347\u7ea7 Atom \u5305
\n10\u3001 \u5347\u7ea7 Flatpak \u5305
\n11\u3001 \u5347\u7ea7 snap \u5305
\n12\u3001 Linux\uff1a\u8fd0\u884c fwupdmgr \u663e\u793a\u56fa\u4ef6\u5347\u7ea7\u3002 (\u4ec5\u67e5\u770b\u200b\u200b\u3002\u5b9e\u9645\u4e0d\u4f1a\u6267\u884c\u5347\u7ea7)
\n13\u3001 \u8fd0\u884c\u81ea\u5b9a\u4e49\u547d\u4ee4\u3002<\/p>\n

\u6700\u540e\uff0ctopgrade \u5c06\u8fd0\u884c needrestart \u4ee5\u91cd\u65b0\u542f\u52a8\u6240\u6709\u670d\u52a1\u3002\u5728 Mac OS X \u4e2d\uff0c\u5b83\u4f1a\u5347\u7ea7 App Store \u7a0b\u5e8f\u3002
\n\u6211\u7684 Ubuntu 18.04 LTS \u6d4b\u8bd5\u73af\u5883\u7684\u793a\u4f8b\u8f93\u51fa\uff1a
\n\"\"
\n\u597d\u5904\u662f\u5982\u679c\u4e00\u4e2a\u4efb\u52a1\u5931\u8d25\uff0c\u5b83\u5c06\u81ea\u52a8\u8fd0\u884c\u4e0b\u4e00\u4e2a\u4efb\u52a1\u5e76\u5b8c\u6210\u6240\u6709\u5176\u4ed6\u540e\u7eed\u4efb\u52a1\u3002\u6700\u540e\uff0c\u5b83\u5c06\u663e\u793a\u6458\u8981\uff0c\u5176\u4e2d\u5305\u542b\u8fd0\u884c\u7684\u4efb\u52a1\u6570\u91cf\uff0c\u6210\u529f\u7684\u6570\u91cf\u548c\u5931\u8d25\u7684\u6570\u91cf\u7b49\u8be6\u7ec6\u4fe1\u606f\u3002\"\"<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/news.watchstor.com\/news-166285.htm.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/linux-pacman.html<\/a>\u7f16\u8f91\uff1a\u5411\u91d1\u5e73\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u4f17\u6240\u5468\u77e5\uff0c\u8ba9\u6211\u4eec\u7684 Linux \u7cfb\u7edf\u4fdd\u6301\u6700\u65b0\u72b6\u6001\u4f1a\u7528\u5230\u591a\u79cd\u5305\u7ba1\u7406\u5668\u3002\u6bd4\u5982\u8bf4\uff0c\u5728 Ubuntu \u4e2d\uff0c\u4f60\u65e0\u6cd5 […]<\/p>\n","protected":false},"author":1482,"featured_media":95939,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-113429","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\/113429","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\/1482"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=113429"}],"version-history":[{"count":9,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/113429\/revisions"}],"predecessor-version":[{"id":113486,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/113429\/revisions\/113486"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/95939"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=113429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=113429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=113429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}