{"id":293554,"date":"2024-10-11T04:04:19","date_gmt":"2024-10-10T20:04:19","guid":{"rendered":"https:\/\/lrxjmw.cn\/rhzazsypzkya.html"},"modified":"2024-10-11T04:04:19","modified_gmt":"2024-10-10T20:04:19","slug":"rhzazsypzkya","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhzazsypzkya.html","title":{"rendered":"\u5982\u4f55\u5728 Arch Linux \u4e2d\u4f7f\u7528 pacman \u67e5\u770b\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305"},"content":{"rendered":"

\u5982\u4f55\u901a\u8fc7\u547d\u4ee4<\/a>\u7684\u65b9\u5f0f\u5217\u4e3e\u5404\u4e2alinux\u7cfb\u7edf\u65e9\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff1f<\/p>\n

\u4f7f\u7528\u8fc7linux\u7cfb\u7edf\u7684\u8fd0\u7ef4\u5e94\u5f53\u90fd\u6709\u5728\u91cc\u9762\u5b89\u88c5\u8fc7\u8f6f\u4ef6\u5305\uff0c\u6709\u65f6\u4faf\u6211\u4eec\u987b\u8981\u67e5\u8be2\u5373\u5373\u5c06\u5b89\u88c5\u7684\u5305\u6709\u6ca1\u6709\u5728\u8fd9\u4e2a\u7cfb\u7edf\u4e0a\u65e9\u5df2\u5b89\u88c5\uff0c\u5047\u82e5\u4e0d\u5148\u67e5\u4e00\u4e0b\uff0c\u6216\u591a\u6216\u5c11\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u4f8b\u5982\u7248\u672c\u4e0d\u4e00\u81f4\u7b49\u7b49\u3002<\/p>\n

\u672c\u6587\u5c06\u4ece\u4e00\u4e9b\u7cfb\u7edf\u8fdb\u884c\u5c55\u5f00\uff1a<\/p>\n

\u5728ArchLinux<\/a>\u4e2d\u4f7f\u7528pacman\u663e\u793a\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

Pacman\u662fArchLinux\u53ca\u5176\u884d\u751f\u4ea7\u54c1\uff08\u5982EndeavourOS\u548cManjaroLinux\uff09\u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

\u8981\u5217\u4e3eArchLinux\u53ca\u5176\u884d\u751f\u4ea7\u54c1\u4e2d\u4f7f\u7528pacman\u663e\u793a\u6240\u6709\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7ea2\u5e3dlinux\u7cfb\u7edf\u4e0b\u8f7d\uff0c\u5982\u4e0b\uff1a<\/p>\n

$pacman-Q<\/p>\n

\u5728ArchLinux\u4e2d\u4f7f\u7528Pacman\u5217\u4e3e\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u5047\u5982\u8981\u9010\u9875\u67e5\u770b\u8f93\u51fa\uff0c\u8bf7\u5c06\u8f93\u51fa\u901a\u8fc7\u7ba1\u7ebf\u4f20\u8f93\u5230more\u547d\u4ee4<\/p>\n

$pacman-Q|more<\/p>\n

\u4ec5\u5217\u4e3e\u663e\u5f0f\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u548c\u7248\u672c\uff1a<\/p>\n

$pacman-Qe<\/p>\n

\u8981\u4ec5\u5217\u4e3eArchLinux\u4e2d\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u603b\u91cf\u767e\u5ea6\u7f51\u76d8LINUX\uff0c\u8bf7\u5c06pacman\u8f93\u51fa\u901a\u8fc7\u7ba1\u7ebf\u4f20\u8f93\u5230wc\u547d\u4ee4\uff1a<\/p>\n

$pacman-Q|wc-l<\/p>\n

134<\/p>\n

\u6b63\u5982\u4f60\u5728\u524d\u9762\u7684\u8f93\u51fa\u4e2d\u89c1\u5230\u7684\uff0c\u6211\u65e9\u5df2\u5728\u6211\u7684ArchLinux\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86134\u4e2a\u5305\u3002<\/p>\n

\u5728AlpineLinux\u4e2d\u4f7f\u7528apk\u547d\u4ee4\u83b7\u53d6\u5df2\u5b89\u88c5\u5305\u5217\u8868<\/p>\n

Apk\u662fAlpinePackageManager\u7684\u7b80\u5199\uff0c\u662fAlpineLinux\u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

\u5728AlpineLinux\u4e2d\u67e5\u770b\u5df2\u5b89\u88c5\u5305\u5217\u8868\u7684\u547d\u4ee4\u662f\uff1a<\/p>\n

$apkinfo<\/p>\n

\u5728 Alpine Linux \u4e2d\u4f7f\u7528 apk \u547d\u4ee4\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

\u5728AlpineLinux\u4e2d\u4f7f\u7528apk\u547d\u4ee4\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

\u5047\u5982\u8981\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u5217\u8868\u4ee5\u53ca\u7248\u672c\u53f7\u548c\u8f6f\u4ef6\u5305\u63cf\u8ff0\uff0c\u8bf7\u4f7f\u7528-vv\u5982\u4e0b\u6807\u5fd7\uff1a<\/p>\n

$apkinfo-vv<\/p>\n

linux\u8f6f\u4ef6\u5b89\u88c5\u7684\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/p>\n

\u8981\u4ec5\u5217\u4e3eAlpineLinux\u4e2d\u6240\u6709\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u603b\u91cflinux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/strong>\uff0c\u8bf7\u5c06apkinfo\u8f93\u51fa\u901a\u8fc7\u7ba1\u8def\u53d1\u9001\u5230wc\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n

$apkinfo|wc-l<\/p>\n

86<\/p>\n

\u5728Debian\u3001Ubuntu\u4e2d\u4f7f\u7528apt\u547d\u4ee4\u67e5\u627e\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

Apt\u4e3aDebian\u3001Ubuntu\u548c\u5176\u4ed6\u57fa\u4e8eDebian\u7684\u7cfb\u7edf\u4e2d\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\u63d0\u4f9b\u4e86\u4e2d\u7ea7\u547d\u4ee4\u884c\u754c\u9762\u3002<\/p>\n

linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4_linux\u8f6f\u4ef6\u5b89\u88c5\u7684\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/p>\n

\u8981\u5728Debian\u3001Ubuntu\u3001LinuxMint\u548c\u5176\u4ed6\u57fa\u4e8eDEB\u7684\u7cfb\u7edf\u4e2d\u663e\u793a\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u5217\u8868\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$aptlist--installed<\/p>\n

\u5728Debian\u3001Ubuntu\u4e2d\u4f7f\u7528apt\u547d\u4ee4\u663e\u793a\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

\u663e\u793a\u57fa\u4e8eDebian\u7684\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u603b\u91cf\uff0c\u5c06apt\u547d\u4ee4\u7684\u8f93\u51fa\u901a\u8fc7\u7ba1\u7ebf\u4f20\u8f93\u5230wc\u547d\u4ee4\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

$aptlist--installed|wc-l<\/p>\n

2575<\/p>\n

\u5728Debian\u3001Ubuntu\u4e2d\u4f7f\u7528dpkg\u547d\u4ee4<\/p>\n

dpkg\u662f\u4e00\u4e2a\u7528\u4e8e\u5b89\u88c5\u3001\u6784\u5efa\u3001\u5220\u9664\u548c\u7ba1\u7406Debian\u8f6f\u4ef6\u5305\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n

\u8981\u4f7f\u7528dpkg\u547d\u4ee4\u5217\u4e3e\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u7248\u672c\u548c\u8be6\u5c3d\u4fe1\u606flinux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/strong>\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$dpkg-l<\/p>\n

\u4f7f\u7528dpkg\u547d\u4ee4\u83b7\u53d6\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u6216\u5219\uff0c\u4f7f\u7528dpkg-query\u547d\u4ee4\u5217\u4e3e\u6240\u6709\u5df2\u5b89\u88c5\u7684Debian\u8f6f\u4ef6\u5305\u3002<\/p>\n

$dpkg-query-l<\/p>\n

\u4f7f\u7528dpkg-query\u547d\u4ee4\u83b7\u53d6\u6240\u6709\u5df2\u5b89\u88c5\u7684Debian\u8f6f\u4ef6\u5305<\/p>\n

\u4ec5\u5217\u4e3e\u57fa\u4e8eDebian\u7684\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u603b\u91cf\uff1a<\/p>\n

$dpkg-l|wc-l<\/p>\n

2668<\/p>\n

$dpkg-query-l|wc-l<\/p>\n

2668<\/p>\n

\u5728RHEL\u3001Fedora\u3001CentOS\u4e2d\u4f7f\u7528yum\u547d\u4ee4<\/p>\n

yum\uff0c\u662f\u547d\u4ee4\u884c\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\u548c\u57fa\u4e8e\u7ea2\u5e3d\u7cfb\u7edf\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002<\/p>\n

\u8981\u5728Fedora\u3001RHEL\u3001CentOS\u3001\u4e2d\u67e5\u627e\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u5217\u8868\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$yumlistinstalled<\/p>\n

\u4f7f\u7528 yum \u547d\u4ee4\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u4f7f\u7528yum\u547d\u4ee4\u5217\u4e3e\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u4f7f\u7528yum\u548cwc\u547d\u4ee4\u4ec5\u5217\u4e3e\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u603b\u91cf\uff1a<\/p>\n

$yumlistinstalled|wc-l<\/p>\n

347<\/p>\n

\u5728RHEL\u3001Fedora\u3001CentOS\u4e2d\u4f7f\u7528dnf\u547d\u4ee4<\/p>\n

DNF\u662fYUM\u7684\u4e0b\u4e00\u4ee3\u7248\u672c\uff0c\u81eaFedora22\u3001RHEL8\u548cCentOS8\u4ee5\u6765\u59cb\u7ec8\u662f\u9ed8\u8ba4\u7684\u5305\u7ba1\u7406\u5668,DNF\u7528\u6cd5\u4e0eYum\u76f8\u540c\u3002<\/p>\n

\u8981\u4f7f\u7528\u67e5\u627eRHEL\u3001Fedora\u3001CentOS\u4e2d\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u5217\u8868dnf\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$dnflistinstalled<\/p>\n

\u5047\u5982\u53ea\u60f3\u4f7f\u7528dnf\u547d\u4ee4\u663e\u793a\u5305\u7684\u603b\u91cf\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$dnflistinstalled|wc-l<\/p>\n

\u5728openSUSE\u4e2d\u4f7f\u7528zypper\u547d\u4ee4<\/p>\n

Zypper\u662f\u9ed8\u8ba4\u7684\u547d\u4ee4\u884c\u5305\u7ba1\u7406\u5668\uff0c\u7528\u4e8e\u5728SUSE\u548copenSUSE\u4e2d\u5b89\u88c5\u548c\u7ba1\u7406\u5305\u3002<\/p>\n

\u8981\u4f7f\u7528\u5217\u4e3eopenSUSE\u4e2d\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305zypper\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$zypperse--installed-only<\/p>\n

\u4f7f\u7528rpm\u547d\u4ee4<\/p>\n

RPM\u547d\u4ee4\uff0c\u662f\u62ff\u6765\u5b89\u88c5\u548c\u7ba1\u7406\u57fa\u4e8e\u7ea2\u5e3d\u7cfb\u7edf\u4ece\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u8981\u5217\u4e3e\u7cfb\u7edf\u4e0a\u5b89\u88c5\u7684\u6bcf\u4f4dRPM\u5305\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$rpm-qa<\/p>\n

\u8981\u9010\u9875\u67e5\u770b\u8f93\u51fa\uff0c\u8bf7\u5c06\u8f93\u51fa\u901a\u8fc7\u7ba1\u7ebf\u4f20\u8f93\u5230more\u547d\u4ee4\uff1a<\/p>\n

$rpm-qa|more<\/p>\n

\u8fd8\u53ef\u4ee5\u4f7f\u7528--last\u5982\u4e0b\u6807\u5fd7\u5c06\u6240\u6709\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u4e0e\u6700\u65b0\u7684\u8f6f\u4ef6\u5305\u7f6e\u4e8e\u5e95\u90e8\uff1a<\/p>\n

$rpm-qa--last<\/p>\n

\u4ee5\u4e0b\u4e24\u79cd\u662f\u901a\u7528\u65b9\u5f0f,\u53ef\u4ee5\u5728\u4efb\u4f55\u5b89\u88c5\u4e86snap\u6216flatpak\u5de5\u5177\u7684\u7cfb\u7edf\u4e0a\u4f7f\u7528\u8fd9\u79cd\u547d\u4ee4:<\/p>\n

\u5217\u4e3e\u4f7f\u7528snap\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

Snap\u662fCanonical\u5f00\u53d1\u7684\u8f6f\u4ef6\u5e03\u7f72\u548c\u5305\u7ba1\u7406\u7cfb\u7edf\u3002<\/p>\n

\u8981\u5217\u4e3e\u7cfb\u7edf\u4e0a\u5b89\u88c5\u7684\u6240\u6709snap\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$snaplist<\/p>\n

\u4f7f\u7528flatpak\u5217\u4e3e\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

Flatpak\u662f\u4e00\u4e2a\u72ec\u7acb\u4e8e\u5e73\u53f0\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\uff0c\u7528\u4e8e\u5728Linux\u4e0a\u5efa\u7acb\u3001\u5b89\u88c5\u548c\u8fd0\u884c\u6c99\u76d2\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u548c\u8fd0\u884c\u65f6\u3002<\/p>\n

\u8981\u5217\u4e3eLinux\u4e2d\u6240\u6709\u5df2\u5b89\u88c5\u7684flatpak\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

$flatpaklist--app<\/p>\n

linux\u8f6f\u4ef6\u5b89\u88c5\u7684\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/p>\n

\u5217\u51fa Linux \u4e2d\u4f7f\u7528 flatpak \u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u7cfb\u7edf\u4e2d\u663e\u793a\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u5217\u8868\uff0c\u8bf7\u8fd0\u884c\uff1a\u8981\u4f7f\u7528dpkg\u547d\u4ee4\u5217\u51fa\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u7248\u672c\u548c\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u8fd0\u884c\uff1a\u547d\u4ee4\u83b7\u53d6\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305yum\uff0c\u662f\u547d\u4ee4\u884c\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\u548c\u57fa\u4e8e\u7ea2\u5e3d\u7cfb\u7edf\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u547d\u4ee4\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305RPM\u547d\u4ee4\uff0c\u662f\u7528\u6765\u5b89\u88c5\u548c\u7ba1\u7406\u57fa\u4e8e\u7ea2\u5e3d\u7cfb\u7edf\u4ece\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"author":1,"featured_media":293555,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[478,3504,3503,1719],"class_list":["post-293554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-apt","tag-pacman","tag-bgl","tag-xt-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293554","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293554"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293554\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293555"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}