linux\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
<\/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
<\/p>\n
<\/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}]}}