{"id":293548,"date":"2024-10-10T20:05:52","date_gmt":"2024-10-10T12:05:52","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxtfljcjazbg.html"},"modified":"2024-10-10T20:05:52","modified_gmt":"2024-10-10T12:05:52","slug":"lxtfljcjazbg","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxtfljcjazbg.html","title":{"rendered":"Linux \u7cfb\u7edf\u5206\u7c7b\u53ca\u5e38\u89c1\u5b89\u88c5\u5305\u683c\u5f0f\u3001\u7ba1\u7406\u5de5\u5177\u5bf9\u6bd4"},"content":{"rendered":"

\u901a\u5e38\u6765\u8bf4\u77e5\u540d\u7684linux\u7cfb\u7edf\u57fa\u672c\u4e0a\u5206\u4e24\u5927\u7c7b\uff1a<\/p>\n

1.RedHat\u7cfb\u5217\uff1aRedhat\u3001Centos\u3001Fedora\u7b49<\/p>\n

2.Debian\u7cfb\u5217\uff1aDebian\u3001Ubuntu\u7b49<\/p>\n

RedHat\u7cfb\u5217<\/p>\n

1\u5e38\u89c1\u7684\u5b89\u88c5\u5305\u683c\u5f0frpm\u5305,\u5b89\u88c5rpm\u5305\u7684\u547d\u4ee4<\/a>\u662f\u201crpm-\u53c2\u6570\u201d<\/p>\n

2\u5305\u7ba1\u7406\u5de5\u5177yum<\/p>\n

3\u652f\u6301tar\u5305<\/p>\n

Debian\u7cfb\u5217<\/p>\n

1\u5e38\u89c1\u7684\u5b89\u88c5\u5305\u683c\u5f0fdeb\u5305,\u5b89\u88c5deb\u5305\u7684\u547d\u4ee4\u662f\u201cdpkg-\u53c2\u6570\u201d<\/p>\n

2\u5305\u7ba1\u7406\u5de5\u5177apt-get<\/p>\n

3\u652f\u6301tar\u5305<\/p>\n

tar\u53ea\u662f\u4e00\u79cd\u538b\u7f29\u6587\u4ef6\u683c\u5f0f\uff0c\u6240\u4ee5\uff0c\u5b83\u53ea\u662f\u628a\u6587\u4ef6\u538b\u7f29\u6253\u5305\u800c\u5df2\u3002<\/p>\n

rpm\u76f8\u5f53\u4e8ewindows\u4e2d\u7684\u5b89\u88c5\u6587\u4ef6adobe air linux\uff0c\u5b83\u4f1a\u624b\u52a8\u5904\u7406\u8f6f\u4ef6\u5305\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n

\u5f02\u540c\u70b9\u6765\u8bf4\uff0crpm\u901a\u5e38\u90fd\u662f\u9884\u5148\u7f16\u8bd1\u597d\u7684\u6587\u4ef6\uff0c\u5b83\u53ef\u80fd\u65e9\u5df2\u7ed1\u5b9a\u5230\u67d0\u79cdCPU\u6216\u5219\u53d1\u884c\u7248\u91cc\u9762\u4e86\u3002<\/p>\n

tar\u901a\u5e38\u5305\u62ec\u7f16\u8bd1\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u5728\u4f60\u7684\u73af\u5883\u4e0b\u7f16\u8bd1\uff0c\u6240\u4ee5\u5177\u6709\u901a\u7528\u6027\u3002<\/p>\n

\u5047\u5982\u4f60\u7684\u5305\u4e0d\u60f3\u5f00\u653e\u6e90\u4ee3\u7801\uff0c\u4f60\u53ef\u4ee5\u5236\u505a\u6210rpm\uff0c\u5047\u5982\u5f00\u6e90\uff0c\u7528tar\u66f4\u4fbf\u6377\u4e86\u3002<\/p>\n

tar\u901a\u5e38\u90fd\u662f\u6e90\u7801\u6253\u5305\u7684\u8f6f\u4ef6\uff0c\u987b\u8981\u81ea\u5df1\u89e3\u5305\uff0c\u4e4b\u540e\u8fdb\u884c\u5b89\u88c5\u4e09\u90e8\u66f2\uff0c.\/configure,make,makeinstall.\u6765\u5b89\u88c5\u8f6f\u4ef6\u3002<\/p>\n

rpm\u662fredhat\u516c\u53f8\u7684\u4e00\u79cd\u8f6f\u4ef6\u5305\u7ba1\u7406\u673a\u5236\uff0c\u76f4\u63a5\u901a\u8fc7rpm\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u5220\u6389\u7b49\u64cd\u4f5c\uff0c\u6700\u5927\u7684\u4f18\u70b9\u662f\u81ea\u5df1\u5185\u90e8\u624b\u52a8\u5904\u7406\u4e86\u5404\u7c7b\u8f6f\u4ef6\u5305\u53ef\u80fd\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n

--------------------------------*.rpm\u65b9\u5f0f\u7684\u4e8c\u8865\u7801\u8f6f\u4ef6\u5305[centos]<\/p>\n

\u5b89\u88c5\uff1arpm-ivh*.rpm<\/p>\n

\u5378\u8f7d\uff1arpm-epackgename<\/p>\n

rpm-qnginx\u67e5\u770b\u662f\u5426\u65e9\u5df2\u5b89\u88c5<\/p>\n

\u5347\u7ea7\uff1arpm-Uvhxxx<\/p>\n

\u67e5\u8be2\uff1a<\/p>\n

\u67e5\u8be2\u6240\u6709\u5b89\u88c5\u7684\u5305\uff1arpm-qa<\/p>\n

\u67e5\u8be2\u67d0\u4e2a\u5305\uff1arpm-qa|grepxxx<\/p>\n

rpm-qixxx<\/p>\n

\u67e5\u8be2\u8f6f\u4ef6\u7684\u5b89\u88c5\u8def\u5f84\uff1arpm-qlxxx<\/p>\n

rpm-qcxxx<\/p>\n

\u67e5\u8be2\u67d0\u4e2a\u6587\u4ef6\u662f\u90a3\u79cdrpm\u5305\u5f62\u6210\uff1arpm-qf\/etc\/yum.conf<\/p>\n

rpm-qpixxx<\/p>\n

rpm-qa|grepphp\u67e5\u770b\u5df2\u5b89\u88c5\u7684RMP\u5305<\/p>\n

\u5b89\u88c5\uff1arpm-ivhxxx<\/p>\n

\u79fb\u9664\uff1arpm-exxx<\/p>\n

\u5347\u7ea7\uff1arpm-Uvhxxx<\/p>\n

\u67e5\u8be2\uff1a<\/p>\n

\u67e5\u8be2\u6240\u6709\u5b89\u88c5\u7684\u5305\uff1arpm-qa<\/p>\n

\u67e5\u8be2\u67d0\u4e2a\u5305\uff1arpm-qa|grepxxx<\/p>\n

rpm-qixxx<\/p>\n

\u67e5\u8be2\u8f6f\u4ef6\u7684\u5b89\u88c5\u8def\u5f84\uff1arpm-qlxxx<\/p>\n

rpm-qcxxx<\/p>\n

\u67e5\u8be2\u67d0\u4e2a\u6587\u4ef6\u662f\u90a3\u79cdrpm\u5305\u5f62\u6210\uff1arpm-qf\/etc\/yum.conf<\/p>\n

rpm-qpixxx<\/p>\n

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

--------------------------------src.rpm\u6e90\u4ee3\u7801\u5206\u53d1\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u4e0e\u5378\u8f7d<\/p>\n

Linux<\/a>\u8f6f\u4ef6\u7684\u6e90\u4ee3\u7801\u5206\u53d1\u662f\u6307\u63d0\u4f9b\u4e86\u8be5\u8f6f\u4ef6\u6240\u6709\u7a0b\u5e8f\u6e90\u4ee3\u7801\u7684\u53d1\u5e03\u65b9\u5f0f\uff0c\u987b\u8981\u7528\u6237\u81ea\u5df1\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u7684\u4e8c\u8865\u7801\u4ee3\u7801\u5e76\u8fdb\u884c\u5b89\u88c5\uff0c\u5176\u4f18\u70b9\u662f\u914d\u7f6e\u7075\u6d3b\uff0c\u53ef\u4ee5\u968f\u4fbf\u53bb\u9664\u6216\u4fdd\u7559\u4e2a\u522b\u529f\u80fd\/\u6a21\u5757\uff0c\u9002\u5e94\u591a\u79cd\u786c\u4ef6\/\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u53ca\u7f16\u8bd1\u73af\u5883\uff0c\u7f3a\u70b9\u662f\u96be\u5ea6\u8f83\u5927\uff0c\u901a\u5e38\u4e0d\u9002\u5b9c\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/p>\n

1\u3001*.src.rpm\u65b9\u5f0f\u7684\u6e90\u4ee3\u7801\u8f6f\u4ef6\u5305<\/p>\n

\u5b89\u88c5\uff1arpm-rebuild*.src.rpm<\/p>\n

cd\/usr\/src\/dist\/RPMS<\/p>\n

rpm-ivh*.rpm<\/p>\n

\u5378\u8f7d\uff1arpm-epackgename<\/p>\n

\u8bf4\u660e\uff1arpm\u2013rebuild*.src.rpm\u547d\u4ee4\u5c06\u6e90\u4ee3\u7801\u7f16\u8bd1\u5e76\u5728\/usr\/src\/dist\/RPMS\u4e0b\u751f\u6210\u4e8c\u8865\u7801\u7684rpm\u5305\uff0c\u4e4b\u540e\u518d\u5b89\u88c5\u8be5\u4e8c\u8865\u7801\u5305\u5373\u53ef\u3002packgename\u5982\u524d\u6240\u8ff0\u3002<\/p>\n

--------------------------------dpkg\u3010ubuntu\u3011<\/p>\n

dpkg-l|grep'php'\u4f7f\u7528dpkg-l\u6765\u67e5\u770b\u65e9\u5df2\u5b89\u88c5\u4e86\u7684\u8f6f\u4ef6<\/p>\n

dpkg\u662fDebian[\u5f85\u5bbe]Package\u7684\u7f29\u5199\u3002\u4e3aDebian\u4e13\u95e8\u5f00\u53d1\u7684\u5957\u4ef6\u7ba1\u7406\u7cfb\u7edflinux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/strong>\uff0c\u4fbf\u6377\u8f6f\u4ef6\u7684\u5b89\u88c5\u3001\u66f4\u65b0\u53ca\u79fb\u9664\u3002\u6240\u6709\u6e90\u81eaDebian\u7684Linux\u53d1\u884c\u7248\u90fd\u4f7f\u7528dpkg\uff0c\u8b6c\u5982Ubuntu\u3001Knoppix\u7b49\u3002<\/p>\n

\u4ee5\u4e0b\u662f\u4e00\u4e9bDpkg\u7684\u666e\u901a\u7528\u6cd5\uff1a<\/p>\n

1\u3001dpkg-i<\/p>\n

\u5b89\u88c5\u4e00\u4e2aDebian\u8f6f\u4ef6\u5305\uff0c\u5982\u4f60\u81ea\u52a8\u4e0b\u8f7d\u7684\u6587\u4ef6\u3002<\/p>\n

2\u3001dpkg-c<\/p>\n

\u5217\u4e3e<\/p>\n

\u7684\u5185\u5bb9\u3002<\/p>\n

3\u3001dpkg-I<\/p>\n

\u4ece<\/p>\n

\u4e2d\u63d0\u53d6\u5305\u88f9\u4fe1\u606f\u3002<\/p>\n

4\u3001dpkg-r<\/p>\n

\u79fb\u9664\u4e00\u4e2a\u5df2\u5b89\u88c5\u7684\u5305\u88f9\u3002<\/p>\n

5\u3001dpkg-P<\/p>\n

\u5b8c\u5168\u6d88\u9664\u4e00\u4e2a\u5df2\u5b89\u88c5\u7684\u5305\u88f9\u3002\u548cremove\u4e0d\u540c\u7684\u662f\uff0cremove\u53ea\u662f\u5220\u9664\u6570\u636e\u548c\u53ef\u6267\u884c\u6587\u4ef6\uff0cpurge\u53e6\u5916\u8fd8\u5220\u6389\u6240\u6709\u7684\u914d\u5236\u6587\u4ef6\u3002<\/p>\n

6\u3001dpkg-L<\/p>\n

\u5217\u4e3e<\/p>\n

\u5b89\u88c5\u7684\u6240\u6709\u6587\u4ef6\u6e05\u5355\u3002\u540c\u65f6\u8bf7\u770bdpkg-c\u6765\u68c0\u6d4b\u4e00\u4e2a.deb\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n

7\u3001dpkg-s<\/p>\n

\u663e\u793a\u5df2\u5b89\u88c5\u5305\u88f9\u7684\u4fe1\u606f\u3002\u540c\u65f6\u8bf7\u770bapt-cache\u663e\u793aDebian\u5b58\u6863\u4e2d\u7684\u5305\u88f9\u4fe1\u606f\uff0c\u4ee5\u53cadpkg-I\u6765\u663e\u793a\u4ece\u4e00\u4e2a.deb\u6587\u4ef6\u4e2d\u63d0\u53d6\u7684\u5305\u88f9\u4fe1\u606f\u3002<\/p>\n

8\u3001dpkg-reconfigure<\/p>\n

\u91cd\u65b0\u914d\u5236\u4e00\u4e2a\u65e9\u5df2\u5b89\u88c5\u7684\u5305\u88f9\uff0c\u5047\u82e5\u5b83\u4f7f\u7528\u7684\u662fdebconf(debconf\u4e3a\u5305\u88f9\u5b89\u88c5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7edf\u4e00\u7684\u914d\u5236\u754c\u9762)\u3002<\/p>\n

--------------------------------\u4f7f\u7528yum\u548capt-get\u3002\u8f6f\u4ef6\u7ba1\u7406\u65b9\u5f0f\u7684\u5347\u7ea7.<\/p>\n

yum\u7684\u914d\u7f6e\u6587\u4ef6\u662f\/etc\/yum.conf<\/p>\n

1.\u6211\u4eec\u6765\u5148\u8bb2Redhat\u7684yum\u8fd9\u4e9b\u4e2d\u7ea7\u7684\u5305\u7ba1\u7406.<\/p>\n

yuminstallgcc[centos]<\/p>\n

\u66f4\u65b0\uff1ayumupdate<\/p>\n

\u5b89\u88c5\uff1ayuminstallxxx<\/p>\n

\u79fb\u9664\uff1ayumremovexxx<\/p>\n

\u53bb\u9664\u65e9\u5df2\u5b89\u88c5\u8fc7\u7684\u6863\u6848\uff08\/var\/cache\/yum\/\uff09\uff1ayumcleanall<\/p>\n

\u641c\u6551\uff1ayumsearchxxx<\/p>\n

\u5217\u4e3e\u6240\u6709\u6863\u6848\uff1ayumlist<\/p>\n

\u67e5\u8be2\u6863\u6848\u8baf\u606f\uff1ayuminfoxxx<\/p>\n

#sudo-s<\/p>\n

#LANG=C<\/p>\n

#yum-yinstallgccgcc-cautoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibpnglibpng-devellibxml2libxml2-develzlibzlib-develglibcglibc-develglib2glib2-develbzip2bzip2-develncursesncurses-develcurlcurl-devel<\/p>\n

\u7528YUM\u5b89\u88c5\u8f6f\u4ef6\u5305<\/p>\n

yum-y<\/p>\n

\u547d\u4ee4\uff1ayuminstall<\/p>\n

\u7528YUM\u5220\u6389\u8f6f\u4ef6\u5305<\/p>\n

\u547d\u4ee4\uff1ayumremove<\/p>\n

yum-yremovehttpd*<\/p>\n

\u547d\u4ee4\uff1ayumsearch<\/p>\n

\u5217\u4e3e\u6240\u6709\u53ef\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u547d\u4ee4\uff1ayumlist<\/p>\n

yumlistphp*<\/p>\n

\u5217\u4e3e\u6240\u6709\u53ef\u66f4\u65b0\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u547d\u4ee4\uff1ayumlistupdates<\/p>\n

\u5217\u4e3e\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u547d\u4ee4\uff1ayumlistinstalled<\/p>\n

\u5217\u4e3e\u6240\u6709\u5df2\u5b89\u88c5\u4f46\u4e0d\u5728YumRepository\u5167\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u547d\u4ee4\uff1ayumlistextras<\/p>\n

\u5217\u4e3e\u6240\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305<\/p>\n

\u547d\u4ee4\uff1ayumlist<\/p>\n

yum=YellowdogUpdater,Modified<\/p>\n

\u4e3b\u8981\u529f\u80fd\u662f\u66f4\u4fbf\u6377\u7684\u6dfb\u52a0\/\u5220\u6389\/\u66f4\u65b0RPM\u5305.<\/p>\n

\u5b83\u80fd\u624b\u52a8\u89e3\u51b3\u5305\u7684\u501a\u91cd\u6027\u95ee\u9898.<\/p>\n

\u5b83\u80fd\u6613\u4e8e\u7ba1\u7406\u5927\u91cf\u7cfb\u7edf\u7684\u66f4\u65b0\u95ee\u9898<\/p>\n

yum\u7279\u5f81<\/p>\n

\u53ef\u4ee5\u540c\u65f6\u914d\u7f6e\u591a\u4e2a\u8d44\u6e90\u5e93(Repository)<\/p>\n

\u7b80\u7ea6\u7684\u914d\u7f6e\u6587\u4ef6(\/etc\/yum.conf<\/p>\n

\u624b\u52a8\u89e3\u51b3\u964d\u4f4e\u6216\u5220\u6389rpm\u5305\u65f6\u9047\u89c1\u7684\u501a\u91cd\u6027\u95ee\u9898<\/p>\n

\u4f7f\u7528\u4fbf\u6377<\/p>\n

\u4fdd\u6301\u4e0eRPM\u6570\u636e\u5e93\u7684\u4e00\u81f4\u6027<\/p>\n

yum\u5b89\u88c5<\/p>\n

CentOS\u81ea\u5e26(yum-*.noarch.rpm)<\/p>\n

#rpm-ivhyum-*.noarch.rpm<\/p>\n

\u5728\u7b2c\u4e00\u6b21\u542f\u7528yum\u4e4b\u524d\u9996\u5148\u987b\u8981\u5bfc\u51fa\u7cfb\u7edf\u7684RPM-GPG-KEY\uff1a<\/p>\n

#rpm--import\/usr\/share\/doc\/centos-release-3(4)\/RPM-GPG-KEY-CentOS-3(4)<\/p>\n

yum\u6307\u4ee4<\/p>\n

\u6ce8:\u5f53\u7b2c\u4e00\u6b21\u4f7f\u7528yum\u6216yum\u8d44\u6e90\u5e93\u6709\u66f4\u65b0\u65f6,yum\u4f1a\u624b\u52a8\u4e0b\u8f7d\u6240\u6709\u6240\u9700\u7684headers\u653e\u7f6e\u4e8e\/var\/cache\/yum\u76ee\u5f55\u4e0b,\u6240\u9700\u65f6\u95f4\u53ef\u80fd\u8f83\u957f.<\/p>\n

rpm\u5305\u7684\u66f4\u65b0<\/p>\n

\u68c0\u6d4b\u53ef\u66f4\u65b0\u7684rpm\u5305<\/p>\n

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

#yumcheck-update<\/p>\n

\u66f4\u65b0\u6240\u6709\u7684rpm\u5305<\/p>\n

#yumupdate<\/p>\n

\u66f4\u65b0\u6307\u5b9a\u7684rpm\u5305,\u5982\u66f4\u65b0kernel\u548ckernelsource<\/p>\n

#yumupdatekernelkernel-source<\/p>\n

\u5927\u89c4\u6a21\u7684\u7248\u672c\u5347\u7ea7,\u4e0eyumupdate\u4e0d\u540c\u7684\u662f,\u8fde\u65e7\u7684\u6dd8\u6c70\u7684\u5305\u4e5f\u5347\u7ea7<\/p>\n

#yumupgrade<\/p>\n

rpm\u5305\u7684\u5b89\u88c5\u548c\u5220\u6389<\/p>\n

\u5b89\u88c5rpm\u5305,\u5982xmms-mp3<\/p>\n

#yuminstallxmms-mp3<\/p>\n

\u5220\u6389rpm\u5305,\u5305\u62ec\u4e0e\u8be5\u5305\u6709\u62b1\u6301\u6027\u7684\u5305<\/p>\n

#yumremovelicq<\/p>\n

\u6ce8:\u540c\u65f6\u4f1a\u63d0\u793a\u5220\u6389licq-gnome,licq-qt,licq-text<\/p>\n

yum\u6682\u5b58(\/var\/cache\/yum\/)\u7684\u76f8\u5173\u53c2\u6570<\/p>\n

\u53bb\u9664\u6682\u5b58\u4e2drpm\u5305\u6587\u4ef6<\/p>\n

#yumcleanpackages<\/p>\n

\u53bb\u9664\u6682\u5b58\u4e2drpm\u5934\u6587\u4ef6<\/p>\n

#yumclearnheaders<\/p>\n

\u53bb\u9664\u6682\u5b58\u4e2d\u65e7\u7684rpm\u5934\u6587\u4ef6<\/p>\n

#yumcleanoldheaders<\/p>\n

\u53bb\u9664\u6682\u5b58\u4e2d\u65e7\u7684rpm\u5934\u6587\u4ef6\u548c\u5305\u6587\u4ef6<\/p>\n

#yumclearn\u6216#yumclearnall<\/p>\n

\u6ce8:\u76f8\u5f53\u4e8eyumcleanpackages+yumcleanoldheaders<\/p>\n

\u5305\u5217\u8868<\/p>\n

\u5217\u4e3e\u8d44\u6e90\u5e93\u4e2d\u6240\u6709\u53ef\u4ee5\u5b89\u88c5\u6216\u66f4\u65b0\u7684rpm\u5305<\/p>\n

#yumlist<\/p>\n

\u5217\u4e3e\u8d44\u6e90\u5e93\u4e2d\u7279\u5b9a\u7684\u53ef\u4ee5\u5b89\u88c5\u6216\u66f4\u65b0\u4ee5\u53ca\u65e9\u5df2\u5b89\u88c5\u7684rpm\u5305<\/p>\n

#yumlistmozilla#yumlistmozilla*<\/p>\n

\u6ce8:\u53ef\u4ee5\u5728rpm\u5305\u540d\u4e2d\u4f7f\u7528\u5339\u914d\u7b26,\u5982\u5217\u4e3e\u6240\u6709\u4ee5mozilla\u5f00\u5934\u7684rpm\u5305<\/p>\n

\u5217\u4e3e\u8d44\u6e90\u5e93\u4e2d\u6240\u6709\u53ef\u4ee5\u66f4\u65b0\u7684rpm\u5305<\/p>\n

#yumlistupdates<\/p>\n

\u5217\u4e3e\u65e9\u5df2\u5b89\u88c5\u7684\u6240\u6709\u7684rpm\u5305<\/p>\n

#yumlistinstalled<\/p>\n

\u5217\u4e3e\u65e9\u5df2\u5b89\u88c5\u7684\u5e76\u4e14\u4e0d\u5305\u542b\u5728\u8d44\u6e90\u5e93\u4e2d\u7684rpm\u5305<\/p>\n

#yumlistextras<\/p>\n

\u6ce8:\u901a\u8fc7\u5176\u5b83\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7684rpm\u5305<\/p>\n

rpm\u5305\u4fe1\u606f\u663e\u793a(info\u53c2\u6570\u540clist)<\/p>\n

\u5217\u4e3e\u8d44\u6e90\u5e93\u4e2d\u6240\u6709\u53ef\u4ee5\u5b89\u88c5\u6216\u66f4\u65b0\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

#yuminfo<\/p>\n

\u5217\u4e3e\u8d44\u6e90\u5e93\u4e2d\u7279\u5b9a\u7684\u53ef\u4ee5\u5b89\u88c5\u6216\u66f4\u65b0\u4ee5\u53ca\u65e9\u5df2\u5b89\u88c5\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

#yuminfomozilla#yuminfomozilla*<\/p>\n

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

\u6ce8:\u53ef\u4ee5\u5728rpm\u5305\u540d\u4e2d\u4f7f\u7528\u5339\u914d\u7b26,\u5982\u5217\u4e3e\u6240\u6709\u4ee5mozilla\u5f00\u5934\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

\u5217\u4e3e\u8d44\u6e90\u5e93\u4e2d\u6240\u6709\u53ef\u4ee5\u66f4\u65b0\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

#yuminfoupdates<\/p>\n

\u5217\u4e3e\u65e9\u5df2\u5b89\u88c5\u7684\u6240\u6709\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

#yuminfoinstalled<\/p>\n

\u5217\u4e3e\u65e9\u5df2\u5b89\u88c5\u7684\u5e76\u4e14\u4e0d\u5305\u542b\u5728\u8d44\u6e90\u5e93\u4e2d\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

#yuminfoextras<\/p>\n

\u6ce8:\u901a\u8fc7\u5176\u5b83\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7684rpm\u5305\u7684\u4fe1\u606f<\/p>\n

\u641c\u7d22rpm\u5305<\/p>\n

\u641c\u7d22\u5339\u914d\u7279\u5b9a\u5b57\u7b26\u7684rpm\u5305<\/p>\n

#yumsearchmozilla<\/p>\n

\u6ce8:\u5728rpm\u5305\u540d,\u5305\u63cf\u8ff0\u7b49\u4e2d\u641c\u7d22<\/p>\n

\u641c\u7d22\u6709\u5305\u542b\u7279\u5b9a\u6587\u4ef6\u540d\u7684rpm\u5305<\/p>\n

#yumprovidesrealplay<\/p>\n

\u964d\u4f4e\u8d44\u6e90\u5e93<\/p>\n

\u6bd4\u5982:\u964d\u4f4e\u4f5c\u4e3a\u8d44\u6e90\u5e93<\/p>\n

\u5b89\u88c5rpmsGPGkey<\/p>\n

#rpm--import<\/p>\n

\u68c0\u6d4bGPGKey<\/p>\n

#rpm-qagpg-pubkey*<\/p>\n

\u663e\u793aKey\u4fe1\u606f<\/p>\n

#rpm-qigpg-pubkey-a109b1ec-3f6e28d5<\/p>\n

(\u6ce8:\u5047\u5982\u8981\u5220\u6389Key,\u4f7f\u7528#rpm-egpg-pubkey-a109b1ec-3f6e28d5)<\/p>\n

yum\u5e38\u7528\u7684\u547d\u4ee4<\/p>\n

#yuminstallxxx\u5b89\u88c5xxx\u8f6f\u4ef6<\/p>\n

#yuminfoxxx\u67e5\u770bxxx\u8f6f\u4ef6\u7684\u4fe1\u606f<\/p>\n

#yumremovexxx\u5220\u6389\u8f6f\u4ef6\u5305<\/p>\n

#yumlist\u5217\u4e3e\u8f6f\u4ef6\u5305<\/p>\n

#yumclean\u6d88\u9664\u7f13\u51b2\u548c\u5c31\u7684\u5305<\/p>\n

#yumprovidesxxx\u4ee5xxx\u4e3a\u5173\u952e\u5b57\u641c\u7d22\u5305\uff08\u63d0\u4f9b\u7684\u4fe1\u606f\u4e3a\u5173\u952e\u5b57\uff09<\/p>\n

#yumsearchxxx\u641c\u7d22\u8f6f\u4ef6\u5305\uff08\u4ee5\u540d\u5b50\u4e3a\u5173\u952e\u5b57\uff09<\/p>\n

#yumgroupupdatexxx<\/p>\n

#yumgrouplistxxx<\/p>\n

#yumgroupremovexxx<\/p>\n

\u8fd9\u4e09\u4e2a\u90fd\u662f\u4e00\u7ec4\u4e3a\u5355\u4f4d\u8fdb\u884c\u5347\u7ea7\u5217\u8868\u548c\u5220\u6389\u7684\u64cd\u4f5c\u3002\u3002\u4f8b\u5982\"MysqlDatabase\"\u5c31\u662f\u4e00\u4e2a\u7ec4\u4f1a\u540c\u65f6\u64cd\u4f5c\u76f8\u5173\u7684\u6240\u6709\u8f6f\u4ef6\u5305\uff1b<\/p>\n

#yumupdate\u7cfb\u7edf\u5347\u7ea7<\/p>\n

#yumlistavailable\u5217\u4e3e\u6240\u6709\u5347\u7ea7\u6e90\u4e0a\u7684\u5305\uff1b<\/p>\n

#yumlistupdates\u5217\u4e3e\u6240\u6709\u5347\u7ea7\u6e90\u4e0a\u7684\u53ef\u4ee5\u66f4\u65b0\u5305\uff1b<\/p>\n

#yumlistinstalled\u5217\u4e3e\u65e9\u5df2\u5b89\u88c5\u7684\u5305\uff1b<\/p>\n

#yunupdatekernel\u5347\u7ea7\u5185\u6838\uff1b<\/p>\n

yum\u5e38\u7528\u7684\u6e90<\/p>\n

1)\u624b\u52a8\u9009\u62e9\u6700\u5feb\u7684\u6e90<\/p>\n

\u56e0\u4e3ayum\u4e2d\u6709\u7684mirror\u901f\u7387\u662f\u5341\u5206\u6162\u7684\uff0c\u5047\u5982yum\u9009\u62e9\u4e86\u8fd9\u4e2amirror\uff0c\u8fd9\u4e2a\u65f6\u4fafyum\u90fd\u4f1a\u7279\u522b\u6162linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/strong>\uff0c\u5bf9\u6b64\uff0c\u53ef\u4ee5\u4e0b\u8f7dfastestmirror\u63d2\u4ef6\uff0c\u5b83\u4f1a\u624b\u52a8\u9009\u62e9\u6700\u5feb\u7684mirror\uff1a<\/p>\n

#yuminstallyum-fastestmirror<\/p>\n

\u914d\u7f6e\u6587\u4ef6\uff1a\uff08\u901a\u5e38\u4e0d\u7528\u52a8\uff09\/etc\/yum\/pluginconf.d\/fastestmirror.conf<\/p>\n

\u4f60\u7684yum\u955c\u50cf\u7684\u901f\u7387\u6d4b\u8bd5\u8bb0\u5f55\u6587\u4ef6\uff1a\/var\/cache\/yum\/timedhosts.txt<\/p>\n

(2)\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u7684yum<\/p>\n

\u5047\u5982\u8ba4\u4e3a\u547d\u4ee4\u884c\u7684yum\u4e0d\u4fbf\u6377\uff0c\u8fd9\u4e48\u53ef\u4ee5\u4f7f\u7528\u56fe\u5f62\u5316\u7684yumex\uff0c\u8fd9\u4e2a\u770b\u4e0a\u53bb\u66f4\u4fbf\u6377\uff0c\u7531\u4e8e\u53ef\u4ee5\u81ea\u7531\u5730\u9009\u62e9\u8f6f\u4ef6\u5e93\u623f\uff1a<\/p>\n

#yuminstallyumex<\/p>\n

\u4e4b\u540e\u5728\u7cfb\u7edf\u5de5\u5177\u4e2d\u5c31\u53ef\u4ee5\u770b\u89c1yumextender\u4e86\u3002\u5b9e\u9645\u4e0a\u7cfb\u7edf\u81ea\u5e26\u7684\u201c\u6dfb\u52a0\/\u5220\u6389\u7a0b\u5e8f\u201c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u56fe\u5f62\u5316\u7684\u8f6f\u4ef6\u5b89\u88c5\uff0c\u4f46\u6709\u4e9byumex\u7684\u529f\u80fd\u5b83\u6ca1\u6709\u3002<\/p>\n

2.\u8bb2\u8bb2Ubuntu\u4e2d\u7684\u4e2d\u7ea7\u5305\u7ba1\u7406\u65b9\u5f0fapt-get<\/p>\n

\u914d\u7f6e\u6587\u4ef6\/etc\/apt\/sources.list<\/p>\n

\u5bf9\u4e8eServer\u7248\uff0c\u63a8\u8350\u4f7f\u7528aptitude\u6765\u67e5\u770b\uff0c\u5b89\u88c5\u3001\u5220\u9664deb\u5305<\/p>\n

sudoapt-getinstallaptitude<\/p>\n

\u4e4b\u540e\u6267\u884csudoaptitude\u6b65\u5165\u7ba1\u7406<\/p>\n

\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\uff1a<\/p>\n

aptitudeupdate\u66f4\u65b0\u53ef\u7528\u7684\u5305\u5217\u8868<\/p>\n

aptitudeupgrade\u5347\u7ea7\u53ef\u7528\u7684\u5305<\/p>\n

aptitudedist-upgrade\u5c06\u7cfb\u7edf\u5347\u7ea7\u5230\u65b0\u7684\u53d1\u884c\u7248<\/p>\n

aptitudeinstallpkgname\u5b89\u88c5\u5305<\/p>\n

aptituderemovepkgname\u5220\u6389\u5305<\/p>\n

aptitudepurgepkgname\u5220\u6389\u5305\u53ca\u5176\u914d\u7f6e\u6587\u4ef6<\/p>\n

aptitudesearchstring\u641c\u7d22\u5305<\/p>\n

aptitudeshowpkgname\u663e\u793a\u5305\u7684\u8be6\u5c3d\u4fe1\u606f<\/p>\n

aptitudeclean\u5220\u6389\u4e0b\u8f7d\u7684\u5305\u6587\u4ef6<\/p>\n

aptitudeautoclean\u4ec5\u5220\u6389\u8fc7\u671f\u7684\u5305\u6587\u4ef6<\/p>\n

\u8003\u8651\u5230\u7cfb\u7edf\u7684\u517c\u5bb9\u6027,\u4f46\u662f\u91cc\u9762\u7684\u4e1c\u4e1c\u6bd4\u8f83\u90fd\u5927,\u4e0d\u627e\u6700\u65b0\u7248\u672c\u4e86\uff0c\u76f4\u63a5\u7528apt-getinstallXXX\u6765\u5b89\u88c5.\u7531\u4e8e\u6211\u4eec\u7684Ubuntu\u662fdailyBulid\u7684,\u6240\u4ee5\u5149\u789f\u7684\u5185\u5bb9\u57fa\u672c\u4e0a\u90fd\u662f\u6700\u65b0\u7684\u4e86,\u65e0\u9700\u91cd\u65b0\u4e0b\u8f7d.\u4e00\u5b9a\u8981\u6700\u65b0\u7248\u672c\u7684\u8bdd\uff0c\u4e0d\u59a8\u5148apt-getupdate\u6765\u66f4\u65b0\u4e00\u4e0b\u8f6f\u4ef6\u7684\u5e93\u623f,\u4e4b\u540e\u518dapt-getinstall.<\/p>\n

\u5e38\u7528\u7684APT\u547d\u4ee4\u53c2\u6570\uff1a<\/p>\n

apt-cachesearchpackage\u641c\u7d22\u5305<\/p>\n

apt-cacheshowpackage\u83b7\u53d6\u5305\u7684\u76f8\u5173\u4fe1\u606f\u7ea2\u65d7 linux\uff0c\u5982\u8bf4\u660e\u3001\u5927\u5c0f\u3001\u7248\u672c\u7b49<\/p>\n

sudoapt-getinstallpackage\u5b89\u88c5\u5305<\/p>\n

sudoapt-getinstallpackage--reinstall\u91cd\u65b0\u5b89\u88c5\u5305<\/p>\n

sudoapt-get-finstall\u4fee\u8865\u5b89\u88c5\"-f=\u2014\u2014fix-missing\"<\/p>\n

sudoapt-getremovepackage\u5220\u6389\u5305<\/p>\n

sudoapt-getremovepackage--purge\u5220\u6389\u5305\uff0c\u5305\u62ec\u5220\u6389\u914d\u7f6e\u6587\u4ef6\u7b49<\/p>\n

sudoapt-getupdate\u66f4\u65b0\u6e90<\/p>\n

sudoapt-getupgrade\u66f4\u65b0\u5df2\u5b89\u88c5\u7684\u5305<\/p>\n

sudoapt-getdist-upgrade\u5347\u7ea7\u7cfb\u7edf<\/p>\n

sudoapt-getdselect-upgrade\u4f7f\u7528dselect\u5347\u7ea7<\/p>\n

apt-cachedependspackage\u4e86\u89e3\u4f7f\u7528\u4f9d\u8d56<\/p>\n

apt-cacherdependspackage\u662f\u67e5\u770b\u8be5\u5305\u88ab\u4ec0\u4e48\u5305\u4f9d\u8d56<\/p>\n

sudoapt-getbuild-deppackage\u5b89\u88c5\u76f8\u5173\u7684\u7f16\u8bd1\u73af\u5883<\/p>\n

apt-getsourcepackage\u4e0b\u8f7d\u8be5\u5305\u7684\u6e90\u4ee3\u7801<\/p>\n

sudoapt-getclean&&sudoapt-getautoclean\u6e05\u9664\u65e0\u7528\u7684\u5305<\/p>\n

sudoapt-getcheck\u68c0\u6d4b\u662f\u5426\u6709\u7834\u635f\u7684\u4f9d\u8d56<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6765\u5b89\u88c5\u8f6f\u4ef6\u3002\u6e90\u4ee3\u7801\u5206\u53d1\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u4e0e\u5378\u8f7d\u6765\u67e5\u770b\u5df2\u7ecf\u5b89\u88c5\u4e86\u7684\u8f6f\u4ef6\u4e13\u95e8\u5f00\u53d1\u7684\u5957\u4ef6\u7ba1\u7406\u7cfb\u7edf\uff0c\u65b9\u4fbf\u8f6f\u4ef6\u7684\u5b89\u88c5\u3001\u66f4\u65b0\u53ca\u79fb\u9664\u3002\u7528YUM\u5b89\u88c5\u8f6f\u4ef6\u5305\u5217\u51fa\u6240\u6709\u53ef\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u5217\u51fa\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u5b89\u88c5xxx\u8f6f\u4ef6\u5b9e\u9645\u4e0a\u7cfb\u7edf\u81ea\u5e26\u7684\u201c\u6dfb\u52a0\/\u5220\u9664\u7a0b\u5e8f\u201c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u56fe\u5f62\u5316\u7684\u8f6f\u4ef6\u5b89\u88c5\uff0c\u4f46\u6709\u4e9byumex\u7684\u529f\u80fd\u5b83\u6ca1\u6709\u3002<\/p>\n","protected":false},"author":1,"featured_media":293549,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3497],"class_list":["post-293548","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-rpmdebianyumtardebian"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293548","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=293548"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293548\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293549"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}