{"id":125857,"date":"2018-11-08T09:56:24","date_gmt":"2018-11-08T01:56:24","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=125857"},"modified":"2018-10-30T10:58:44","modified_gmt":"2018-10-30T02:58:44","slug":"linux-rpm","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-rpm.html","title":{"rendered":"\u5b89\u88c5\u7684 Linux \u8f6f\u4ef6\u5305\u6709\u591a\u5c11\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7\u4f60\u7684 Linux \u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86\u51e0\u5343\u4e2a\u8f6f\u4ef6\u5305\uff1f \u662f\u7684\uff0c\u6211\u8bf4\u7684\u662f\u201c\u5343\u201d\u3002 \u5373\u4f7f\u662f\u76f8\u5f53\u4e00\u822c\u7684 Linux \u7cfb\u7edf\u4e5f\u53ef\u80fd\u5b89\u88c5\u4e86\u4e0a\u5343\u4e2a\u8f6f\u4ef6\u5305\u3002 \u6709\u5f88\u591a\u65b9\u6cd5\u53ef\u4ee5\u83b7\u5f97\u8fd9\u4e9b\u5305\u5230\u5e95\u662f\u4ec0\u4e48\u5305\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u9996\u5148\uff0c\u8981\u5728\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\uff08\u5982 Ubuntu\uff09\u4e0a\u5feb\u901f\u5f97\u5230\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u6570\u91cf\uff0c\u8bf7\u4f7f\u7528 apt list --installed\uff0c \u5982\u4e0b\uff1a<\/p>\n

$ apt list --installed | wc -l\r\n2067<\/pre>\n

\u8fd9\u4e2a\u6570\u5b57\u5b9e\u9645\u4e0a\u591a\u4e86\u4e00\u4e2a\uff0c\u56e0\u4e3a\u8f93\u51fa\u4e2d\u5305\u542b\u4e86 \u201cListing \u2026\u201d \u4f5c\u4e3a\u5b83\u7684\u7b2c\u4e00\u884c\u3002 \u8fd9\u4e2a\u547d\u4ee4\u4f1a\u66f4\u51c6\u786e\uff1a<\/p>\n

$ apt list --installed | grep -v \"^Listing\" | wc -l\r\n2066<\/pre>\n

\u8981\u83b7\u5f97\u6240\u6709\u8fd9\u4e9b\u5305\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u6309\u4ee5\u4e0b\u65b9\u5f0f\u6d4f\u89c8\u5217\u8868\uff1a<\/p>\n

$ apt list --installed | more\r\nListing...\r\na11y-profile-manager-indicator\/xenial,now 0.1.10-0ubuntu3 amd64 [installed]\r\naccount-plugin-aim\/xenial,now 3.12.11-0ubuntu3 amd64 [installed]\r\naccount-plugin-facebook\/xenial,xenial,now 0.12+16.04.20160126-0ubuntu1 all [installed]\r\naccount-plugin-flickr\/xenial,xenial,now 0.12+16.04.20160126-0ubuntu1 all [installed]\r\naccount-plugin-google\/xenial,xenial,now 0.12+16.04.20160126-0ubuntu1 all [installed]\r\naccount-plugin-jabber\/xenial,now 3.12.11-0ubuntu3 amd64 [installed]\r\naccount-plugin-salut\/xenial,now 3.12.11-0ubuntu3 amd64 [installed]\r\n<\/pre>\n

\u8fd9\u9700\u8981\u89c2\u5bdf\u5f88\u591a\u7ec6\u8282 \u2014\u2014 \u7279\u522b\u662f\u8ba9\u4f60\u7684\u773c\u775b\u5728\u6240\u6709 2000 \u591a\u4e2a\u6587\u4ef6\u4e2d\u5f98\u5f8a\u3002 \u5b83\u5305\u542b\u5305\u540d\u79f0\u3001\u7248\u672c\u7b49\uff0c\u4ee5\u53ca\u66f4\u591a\u4f46\u5e76\u4e0d\u662f\u4ee5\u6700\u6613\u4e8e\u6211\u4eec\u4eba\u7c7b\u89e3\u6790\u7684\u663e\u793a\u4fe1\u606f\u3002 dpkg-query \u4f7f\u5f97\u63cf\u8ff0\u66f4\u5bb9\u6613\u7406\u89e3\uff0c\u4f46\u8fd9\u4e9b\u63cf\u8ff0\u4f1a\u585e\u6ee1\u4f60\u7684\u547d\u4ee4\u7a97\u53e3\uff0c\u9664\u975e\u7a97\u53e3\u975e\u5e38\u5bbd\u3002 \u56e0\u6b64\uff0c\u4e3a\u4e86\u8ba9\u6b64\u7bc7\u6587\u7ae0\u66f4\u5bb9\u6613\u9605\u8bfb\uff0c\u4e0b\u9762\u7684\u6570\u636e\u663e\u793a\u5df2\u7ecf\u5206\u6210\u4e86\u5de6\u53f3\u4e24\u4fa7\u3002<\/p>\n

\u5de6\u4fa7\uff1a<\/p>\n

$ dpkg-query -l | more\r\nDesired=Unknown\/Install\/Remove\/Purge\/Hold\r\n| Status=Not\/Inst\/Conf-files\/Unpacked\/halF-conf\/Half-inst\/trig-aWait\/Trig-pend\r\n|\/ Err?=(none)\/Reinst-required (Status,Err: uppercase=bad)\r\n||\/ Name Version\r\n+++-==============================================-=================================-\r\nii a11y-profile-manager-indicator 0.1.10-0ubuntu3\r\nii account-plugin-aim 3.12.11-0ubuntu3\r\nii account-plugin-facebook 0.12+16.04.20160126-0ubuntu1\r\nii account-plugin-flickr 0.12+16.04.20160126-0ubuntu1\r\nii account-plugin-google 0.12+16.04.20160126-0ubuntu1\r\nii account-plugin-jabber 3.12.11-0ubuntu3\r\nii account-plugin-salut 3.12.11-0ubuntu3\r\nii account-plugin-twitter 0.12+16.04.20160126-0ubuntu1\r\nrc account-plugin-windows-live 0.11+14.04.20140409.1-0ubuntu2\r\n<\/pre>\n

\u53f3\u4fa7\uff1a<\/p>\n

Architecture Description\r\n============-=====================================================================\r\namd64 Accessibility Profile Manager - Unity desktop indicator\r\namd64 Messaging account plugin for AIM\r\nall GNOME Control Center account plugin for single signon - facebook\r\nall GNOME Control Center account plugin for single signon - flickr\r\nall GNOME Control Center account plugin for single signon\r\namd64 Messaging account plugin for Jabber\/XMPP\r\namd64 Messaging account plugin for Local XMPP (Salut)\r\nall GNOME Control Center account plugin for single signon - twitter\r\nall GNOME Control Center account plugin for single signon - windows live\r\n<\/pre>\n

\u6bcf\u884c\u5f00\u5934\u7684 ii \u548c rc \u540d\u79f0\uff08\u89c1\u4e0a\u6587\u201c\u5de6\u4fa7\u201d\uff09\u662f\u5305\u72b6\u6001\u6307\u793a\u7b26\u3002 \u7b2c\u4e00\u4e2a\u5b57\u6bcd\u8868\u793a\u5305\u7684\u9884\u671f\u72b6\u6001\uff1a<\/p>\n

u \u2013 \u672a\u77e5
\ni \u2013 \u5b89\u88c5
\nr \u2013 \u79fb\u9664\/\u53cd\u5b89\u88c5
\np \u2013 \u6e05\u9664\uff08\u4e5f\u5305\u62ec\u914d\u7f6e\u6587\u4ef6\uff09
\nh \u2013 \u4fdd\u7559<\/p>\n

\u7b2c\u4e8c\u4e2a\u4ee3\u8868\u5305\u7684\u5f53\u524d\u72b6\u6001\uff1a<\/p>\n

n \u2013 \u672a\u5b89\u88c5
\ni \u2013 \u5df2\u5b89\u88c5
\nc \u2013 \u914d\u7f6e\u6587\u4ef6\uff08\u53ea\u5b89\u88c5\u4e86\u914d\u7f6e\u6587\u4ef6\uff09
\nU \u2013 \u672a\u6253\u5305
\nF \u2013 \u534a\u914d\u7f6e\uff08\u51fa\u4e8e\u67d0\u4e9b\u539f\u56e0\u914d\u7f6e\u5931\u8d25\uff09
\nh \u2013 \u534a\u5b89\u88c5\uff08\u51fa\u4e8e\u67d0\u4e9b\u539f\u56e0\u914d\u7f6e\u5931\u8d25\uff09
\nW \u2013 \u7b49\u5f85\u89e6\u53d1\uff08\u8be5\u5305\u7b49\u5f85\u53e6\u5916\u4e00\u4e2a\u5305\u7684\u89e6\u53d1\u5668\uff09
\nt \u2013 \u5f85\u5b9a\u89e6\u53d1\uff08\u8be5\u5305\u88ab\u89e6\u53d1\uff09
\n\u5728\u901a\u5e38\u7684\u53cc\u5b57\u7b26\u5b57\u6bb5\u672b\u5c3e\u6dfb\u52a0\u7684 R \u8868\u793a\u9700\u8981\u91cd\u65b0\u5b89\u88c5\u3002 \u4f60\u53ef\u80fd\u6c38\u8fdc\u4e0d\u4f1a\u78b0\u5230\u8fd9\u4e9b\u3002<\/p>\n

\u5feb\u901f\u67e5\u770b\u6574\u4f53\u5305\u72b6\u6001\u7684\u4e00\u79cd\u7b80\u5355\u65b9\u6cd5\u662f\u8ba1\u7b97\u5728\u4e0d\u540c\u72b6\u6001\u4e2d\u5305\u542b\u7684\u5305\u7684\u6570\u91cf\uff1a<\/p>\n

$ dpkg-query -l | tail -n +6 | awk '{print $1}' | sort | uniq -c\r\n2066 ii\r\n134 rc\r\n<\/pre>\n

\u6211\u4ece\u4e0a\u9762\u7684 dpkg-query \u8f93\u51fa\u4e2d\u6392\u9664\u4e86\u524d\u4e94\u884c\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u662f\u6807\u9898\u884c\uff0c\u4f1a\u6df7\u6dc6\u8f93\u51fa\u3002<\/p>\n

\u8fd9\u4e24\u884c\u57fa\u672c\u4e0a\u544a\u8bc9\u6211\u4eec\uff0c\u5728\u8fd9\u4e2a\u7cfb\u7edf\u4e0a\uff0c\u5e94\u8be5\u5b89\u88c5\u4e86 2066 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u800c 134 \u4e2a\u5176\u4ed6\u7684\u8f6f\u4ef6\u5305\u5df2\u88ab\u5220\u9664\uff0c\u4f46\u7559\u4e0b\u4e86\u914d\u7f6e\u6587\u4ef6\u3002 \u4f60\u59cb\u7ec8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664\u7a0b\u5e8f\u5305\u7684\u5269\u4f59\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n

$ sudo dpkg --purge xfont-mathml\r\n<\/pre>\n

\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u7a0b\u5e8f\u5305\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u914d\u7f6e\u6587\u4ef6\u90fd\u5df2\u7ecf\u5b89\u88c5\u4e86\uff0c\u5219\u4e0a\u9762\u7684\u547d\u4ee4\u5c06\u4e24\u8005\u90fd\u5220\u9664\u3002<\/p>\n


\n

via:\u00a0https:\/\/www.networkworld.com\/article\/3242808\/linux\/peeking-into-your-linux-packages.html<\/a><\/p>\n

\u4f5c\u8005\uff1aSandra Henry-Stocker<\/a>\u00a0\u8bd1\u8005\uff1aFlowsnow<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9996\u5148\uff0c\u8981\u5728\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\uff08\u5982 Ubuntu\uff09\u4e0a\u5feb\u901f\u5f97\u5230\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u6570\u91cf\uff0c\u8bf7\u4f7f\u7528 apt lis […]<\/p>\n","protected":false},"author":1890,"featured_media":125859,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-125857","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\/125857","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\/1890"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=125857"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/125857\/revisions"}],"predecessor-version":[{"id":126002,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/125857\/revisions\/126002"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/125859"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=125857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=125857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=125857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}