{"id":103,"date":"2005-02-13T03:58:45","date_gmt":"2005-02-12T19:58:45","guid":{"rendered":"http:\/\/yesybl.org\/blogcn\/2005\/02\/13\/103\/"},"modified":"2005-02-13T03:58:45","modified_gmt":"2005-02-12T19:58:45","slug":"iredhatoooapteithuuaiss-2","status":"publish","type":"post","link":"https:\/\/www.yesybl.com\/?p=103","title":{"rendered":"\u4e3aredhat\u589e\u52a0apt\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177"},"content":{"rendered":"<p>&#160;<br \/>\n                <span id=\"ArticleContent1_ArticleContent1_lblContent\"><\/p>\n<p>\u524d\u8a00<\/p>\n<p>\u4f60\u4f7f\u7528\u4ec0\u4e48\u65b9\u6cd5\u5728\u7ba1\u7406\u4f60\u7684<span lang=\"EN-US\"> RPM\uff0c\u4ece\u5149\u76d8\u7247\u5b89\u88c5\uff0c\u4ece\u7f51\u7edc\u4e0b\u8f7d\u5b89\u88c5\u3001\u8fd8\u662f\u4f7f\u7528 Red Hat \u7684 up2date\uff08Red Hat Network\uff09\u5728\u7ef4\u62a4\uff0c\u8fd9\u4e9b\u90fd\u662f\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6cd5\uff0c\u53ef\u662f\u4f60\u53ef\u4ee5\u6709\u66f4\u597d\u7684\u9009\u62e9 &#8212; APT<\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">\u4e00\u3001 \u7b80\u4ecb<br \/>redhat\u91c7\u7528\u4e86RPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\uff0cRPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u5177\u6709\u5f3a\u5927\u7684\u7f16\u8bd1\u5b89\u88c5\u529f\u80fd\uff0c\u4f46\u662f\u7531\u4e8e\u5386\u53f2\u539f\u56e0\uff0cRPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u5bf9\u8f6f\u4ef6\u4e4b\u95f4\u7684\u4f9d\u5b58\u5173\u7cfb\u6ca1\u6709\u5185\u90e8\u5b9a\u4e49\uff0c\u9020\u6210\u5b89\u88c5RPM\u8f6f\u4ef6\u65f6\u7ecf\u5e38\u51fa\u73b0\u4ee4\u4eba\u65e0\u6cd5\u7406\u89e3\u7684\u8f6f\u4ef6\u4f9d\u8d56\u95ee\u9898\u3002<br \/>debian<br \/>\n\u7cfb\u7edf\u5219\u57fa\u4e8eapt(Advanced Packaging Tool)\u5de5\u5177\u8fdb\u884c\u8f6f\u4ef6\u5305\u7ba1\u7406\uff0c\u53ef\u4ee5\u81ea\u52a8\u89e3\u51b3\u5e76\u5b89\u88c5\u501a\u8d56\u8f6f\u4ef6\u5305\uff0c\u56e0\u6b64debian<br \/>\nlinux\u88ab\u8ba4\u4e3a\u662f\u6700\u5bb9\u6613\u7ba1\u7406\u548c\u5347\u7ea7\u7684\u7cfb\u7edf\uff0capt\u5de5\u5177\u4e5f\u88ab\u8ba4\u4e3a\u662f\u76ee\u524d\u6700\u597d\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u4e4b\u4e00\u3002\u4e3a\u4e86\u89e3\u51b3redhat\u5305\u7ba1\u7406\u7cfb\u7edf\u7684\u81f4\u547d\u95ee\u9898\uff0c<br \/>\nConectiva<br \/>\nLinux\u5c06apt\u7cfb\u7edf\u79fb\u690d\u5230\u4e86\u4f7f\u7528rpm\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u7684Linux\u7cfb\u7edf\u4e0b\uff0c\u4f7f\u5f97\u57fa\u4e8eRPM\u8f6f\u4ef6\u5305\u7684\u7cfb\u7edf\u53ef\u4ee5\u5229\u7528apt\u5de5\u5177\u63d0\u4f9b\u7684\u81ea\u52a8\u89e3\u51b3\u501a\u8d56\u5173\u7cfb\u7684\u80fd<br \/>\n\u529b\u3002\u76ee\u524d\u5df2\u7ecf\u6709\u5f88\u591a\u4e3aredhat linux\u63d0\u4f9bapt\u65b9\u5f0f\u5347\u7ea7\u7ba1\u7406\u8f6f\u4ef6\u5305\u7684\u7ad9\u70b9\uff0c\u5982http:\/\/freshrpms.net \uff0c<br \/>\nhttp:\/\/apt.unl.edu\u7b49\u7b49,\u4f7f\u5f97redhat\u4e5f\u6210\u4e3a\u53ef\u4ee5\u5229\u7528apt\u5de5\u5177\u7684\u53d1\u884c\u7248\u4e4b\u4e00\uff0c\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u5728redhat<br \/>\nlinux\u7cfb\u7edf\u5b89\u88c5\u548c\u4f7f\u7528apt\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u3002<br \/>\u4e3a\u4e86\u5bf9apt\u5de5\u5177\u7684\u7279\u6027\u6709\u4e00\u4e2a\u5927\u81f4\u7684\u4e86\u89e3\uff0c\u4e0b\u9762\u5148\u4ecb\u7ecd\u51e0\u4e2a\u4f7f\u7528apt with rpm\u7ba1\u7406\u7cfb\u7edf\u7684\u5b9e\u4f8b\uff1a<br \/>\uff081\uff09\u5220\u9664\u4e00\u4e2a\u8f6f\u4ef6\u5305\u65f6\u81ea\u52a8\u5220\u9664\u76f8\u5173\u8f6f\u4ef6\u5305: <br \/>[root@linux root]# apt-get remove nessus-common<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p \/><\/span><span lang=\"EN-US\"><o:p><font size=\"3\">2\uff09\u81ea\u52a8\u4e0b\u8f7d\u5b89\u88c5\u4f9d\u8d56\u5305: <br \/>[root@linux root]# apt-get install nessus-server<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">\uff083\uff09\u7ef4\u62a4\u7cfb\u7edf\u8f6f\u4ef6\uff0c\u81ea\u52a8\u66f4\u65b0\u7cfb\u7edf :<br \/>[root@linux root]# apt-get upgrade<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\"><br \/>\u4e8c\u3001<span lang=\"EN-US\">APT \u7b80\u6613\u8fd0\u4f5c\u539f\u7406<\/span><\/font><\/o:p><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u6211\u4eec\u7684\u673a\u5668\u5b89\u88c5\u4e86<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u5957\u4ef6\u4e4b\u540e\u5c31\u6210\u4e86<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7684\u4f7f\u7528\u8005\u7aef\uff0c\u5f53\u6211\u4eec\u5728\u5b89\u88c5\u3001\u5347\u7ea7<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> RPM <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7684\u65f6\u5019\uff0c\u4e8b\u5b9e\u4e0a\uff0c\u90fd\u662f\u900f\u8fc7\u7f51\u7edc\u8fde\u5230\u8fdc\u7a0b\u7684<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\u53bb\u4e0b\u8f7d<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> RPM <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u56de\u6765\u5b89\u88c5\u7684\uff0c<\/font><\/span><span lang=\"EN-US\"><font size=\"3\">APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\u6211\u4eec\u662f\u53ef\u4ee5\u81ea\u5df1\u6307\u5b9a\u7684\uff0c\u800c<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u4f7f\u7528\u8005\u7aef\u4e5f\u53ef\u4ee5\u540c\u65f6\u6210\u4e3a<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\uff08\u5728\u7b2c\u4e8c\u8282\u6211\u4eec\u4f1a\u8bb2\u5230<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\u7684\u67b6\u8bbe\uff09<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> <\/p>\n<p><b><i>apt-get update<\/i><\/b> <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u6307\u4ee4\u4f1a\u540c\u6b65\u4f7f\u7528\u8005\u7aef\u548c<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\u7684<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> RPM <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7d22\u5f15\u6e05\u5355\uff08<\/font><\/span><span lang=\"EN-US\"><font size=\"3\">package list<\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\uff09\uff0c<\/font><\/span><span lang=\"EN-US\"><font size=\"3\">APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\u7684<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> RPM <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7d22\u5f15\u6e05\u5355\u7f6e\u4e8e<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> base <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u8d44\u6599\u5939\u5185\uff08<\/font><\/span><span lang=\"EN-US\"><font size=\"3\">base <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u6570\u636e\u5939\u662f\u7531<\/font><\/span><font size=\"3\"> <b><i><span lang=\"EN-US\">genbasedir<\/span><\/i><\/b><span lang=\"EN-US\"> <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u6307\u4ee4\u6240\u4ea7\u751f\uff09\uff0c\u4f7f\u7528\u8005\u7aef\u8ba1\u7b97\u673a\u53d6\u5f97<\/span><span lang=\"EN-US\"> base <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u8d44\u6599\u5939\u5185\u7684<\/span><span lang=\"EN-US\"> bz2 RPM <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u7d22\u5f15\u6e05\u5355\u538b\u7f29\u6587\u4ef6\u540e\uff0c\u4f1a\u5c06\u5176\u89e3\u538b\u7f6e\u653e\u4e8e<\/span><span lang=\"EN-US\"> \/var\/state\/apt\/lists\/<\/span><span style=\"font-family: \u5b8b\u4f53;\">\uff0c\u800c\u4f7f\u7528\u8005\u4f7f\u7528<\/span> <b><i><span lang=\"EN-US\">apt-get install<\/span><\/i><\/b><span lang=\"EN-US\"> <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u6216<\/span> <b><i><span lang=\"EN-US\">apt-get dist-upgrade<\/span><\/i><\/b><span lang=\"EN-US\"> <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u6307\u4ee4\u7684\u65f6\u5019\uff0c\u5c31\u4f1a\u5c06\u8fd9\u4e2a\u8d44\u6599\u5939\u5185\u7684\u8d44\u6599\u548c\u4f7f\u7528\u8005\u7aef\u8ba1\u7b97\u673a\u5185\u7684<\/span><span lang=\"EN-US\"> RPM <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u6570\u636e\u5e93\u6bd4\u5bf9\uff0c\u5982\u6b64\u4e00\u6765\u5c31\u53ef\u4ee5\u77e5\u9053\u90a3\u4e9b<\/span><span lang=\"EN-US\"> RPM <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u5df2\u5b89\u88c5\u3001\u672a\u5b89\u88c5\u3001\u6216\u662f\u53ef\u4ee5\u5347\u7ea7\u7684\uff0c\u6240\u4ee5\u4e00\u65e6<\/span><span lang=\"EN-US\"> APT <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u670d\u52a1\u5668\u5185\u7684<\/span><span lang=\"EN-US\"> RPM <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u6709\u6240\u66f4\u52a8\uff0c\u4e00\u5b9a\u8981\u8bb0\u5f97\u4f7f\u7528<\/span> <b><i><span lang=\"EN-US\">genbasedir<\/span><\/i><\/b><span lang=\"EN-US\"> <\/span><span style=\"font-family: \u5b8b\u4f53;\">\u6307\u4ee4\u4ea7\u751f\u65b0\u7684<\/span><span lang=\"EN-US\">RPM<\/span><span style=\"font-family: \u5b8b\u4f53;\">\u7d22\u5f15\u6e05\u5355\u3002<\/span><\/font><\/p>\n<p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">\u4e09\u3001\u5b89\u88c5apt with rpm\u53ca\u5176\u56fe\u5f62\u754c\u9762\u524d\u7aefSynaptic<br \/>\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0b\u5982\u4f55\u4e0b\u8f7d\u548c\u5b89\u88c5apt with rpm<br \/>apt with rpm\u53ef\u4ee5\u76f4\u63a5\u5230 [url]http:\/\/freshrpms.net[\/url] \u4e0b\u8f7d\u5b89\u88c5\uff0c\u76ee\u524d\u8be5\u7ad9\u70b9\u63d0\u4f9b\u4e86redhat 6.2, 7.x\u548c8.0\u7684\u8f6f\u4ef6\u5347\u7ea7\u670d\u52a1\uff0c\u4e0b\u9762\u662f\u51e0\u4e2a\u5e38\u7528redhat\u7248\u672c\u7684apt\u4e0b\u8f7d\u5730\u5740\uff1a<br \/>redhat 6.2<br \/><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/6.2\/apt\/apt-0.5.4cnc7-fr0.62.1.i386.rpm\">http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/6.2\/apt\/apt-0.5.4cnc7-fr0.62.1.i386.rpm<\/a><br \/>redhat 7.2<br \/><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/7.2\/apt\/apt-0.3.19cnc55-fr7.i386.rpm\">http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/7.2\/apt\/apt-0.3.19cnc55-fr7.i386.rpm<\/a><br \/>redhat 7.3<br \/><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/7.3\/apt\/apt-0.5.4cnc9-fr0.1.rh73.i386.rpm\">http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/7.3\/apt\/apt-0.5.4cnc9-fr0.1.rh73.i386.rpm<\/a><br \/>redhat 8.0<br \/><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/8.0\/apt\/apt-0.5.4cnc9-fr1.i386.rpm\">http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/8.0\/apt\/apt-0.5.4cnc9-fr1.i386.rpm<\/a><\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">redhat 9.0<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p \/><\/span><span lang=\"EN-US\"><o:p><font size=\"3\"><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/9\/apt\/apt-0.5.5cnc6-fr1.i386.rpm\">http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/9\/apt\/apt-0.5.5cnc6-fr1.i386.rpm<\/a><br \/>\u4e0b\u8f7d\u540e\u4f7f\u7528rpm\u547d\u4ee4\u5b89\u88c5\uff1a<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p \/><\/span><span lang=\"EN-US\"><o:p><font size=\"3\">[root@linux root]# rpm -ihv apt-0.5.4cnc9-fr1.i386.rpm<br \/>freshrpms.net\u540c\u65f6\u63d0\u4f9b\u4e86\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\u7684apt-rpm\u63a5\u53e3Synaptic\uff0c\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u7684apt\u66f4\u52a0\u65b9\u4fbf\uff0c\u5b89\u88c5\u4e86apt\u540e\uff0c\u53ef\u4ee5\u76f4\u63a5\u5229\u7528apt\u5b89\u88c5Synaptic\uff1a<br \/>[root@linux root]# apt-get update<br \/>[root@linux root]# apt-get install synaptic<br \/>\u5728\u51e0\u884c\u63d0\u793a\u4e4b\u540eSynaptic\u5c31\u5b89\u88c5\u597d\u4e86\uff0c\u8fdb\u5165Xwindow\uff0cSynaptic\u4f1a\u51fa\u73b0\u5728\u201c\u7cfb\u7edf\u8bbe\u7f6e\u201d\u83dc\u5355\u91cc\u9762\u3002[Fixme: redhat 7.x\u7248\u672cSynaptic\u51fa\u73b0\u5728\u54ea\u91cc\uff1f]<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">\u4e09\u3001\u4f7f\u7528apt<br \/>\u5728redhat\u4e0a\u9762\u4f7f\u7528apt\u548c\u5728debian\u4e0b\u9762\u4f7f\u7528\u51e0\u4e4e\u5b8c\u5168\u4e00\u6837\uff0c\u914d\u7f6e\u6587\u4ef6\u5728\/etc\/apt\/,\u6309\u7167\u524d\u9762\u4ecb\u7ecd\u5b89\u88c5\u597dapt\u4e4b\u540e\u5c31\u53ef\u4ee5\u4f7f\u7528\u5e76\u53ef\u4ee5\u66f4\u65b0redhat\u63d0\u4f9b\u7684RPM\u66f4\u65b0\u4ee5\u53cafreshrpms.net\u63d0\u4f9b\u7684\u66f4\u65b0\u4e86\u3002\u4e3b\u8981\u8fd0\u884c\u547d\u4ee4\u5982\u4e0b\uff1a<br \/>\uff081\uff09\u66f4\u65b0\u8f6f\u4ef6\u5217\u8868,\u83b7\u53d6\u8fdc\u7a0brpm\u670d\u52a1\u5668\u4e0a\u7684\u8f6f\u4ef6\u5217\u8868\u548c\u76f8\u4e92\u4f9d\u8d56\u5173\u7cfb\u5217\u8868\uff0c\u6240\u6709\u53ef\u7528\u8f6f\u4ef6\u7684\u4e0b\u8f7d\u5730\u5740\u90fd\u5728\/etc\/apt\/sources.list\u91cc\u9762\u5b9a\u4e49\uff0c\u4e0b\u9762\u7684\u591a\u6570\u4e0b\u8f7d\u64cd\u4f5c\u5730\u5740\u4e5f\u662f\u5728\u8fd9\u91cc\u5b9a\u4e49\u7684\u3002<br \/>[root@linux root]# apt-get update<br \/>\uff082\uff09\u68c0\u67e5\u672c\u5730\u8f6f\u4ef6\u4f9d\u8d56\u5173\u7cfb\u5408\u6cd5\u6027\uff0c\u7531\u4e8erpm\u7cfb\u7edf\u7684\u95ee\u9898\uff0c\u5f88\u591a\u7cfb\u7edf\u4f1a\u5b58\u5728\u4e00\u4e9b\u4f9d\u8d56\u95ee\u9898\uff0c\u7528\u4e0b\u9762\u547d\u4ee4\u68c0\u67e5\u4f9d\u8d56\u5173\u7cfb\uff0c\u540c\u65f6apt-get\u4f1a\u63d0\u4f9b\u4e00\u4e9b\u4fee\u590d\u65b9\u6848\uff0c\u53ea\u6709\u672c\u673a\u6ca1\u6709\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\u4e86\u624d\u80fd\u826f\u597d\u5730\u4f7f\u7528apt-rpm\u3002\u4e00\u4e2a\u65b0\u5b89\u88c5\u7684\u5e72\u51c0\u7cfb\u7edf\u4e0d\u4f1a\u6709\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\u3002<br \/>[root@linux root]# apt-get check<br \/>\uff083\uff09\u5b89\u88c5\u6216\u5347\u7ea7\u4e00\u4e2a\u65b0\u8f6f\u4ef6<br \/>[root@linux root]# apt-get install package-name<br \/>package-name\u662frpm\u5305\u7684\u540d\u5b57\u7684\u524d\u9762\u90e8\u5206\uff0c\u4e0d\u5305\u542b\u7248\u672c\u53f7\uff0c\u5982\u679c\u9009\u62e9\u4e0d\u540c\u7684\u5904\u7406\u5668\u7c7b\u578b\uff0c\u53ef\u4ee5\u5728\u540e\u9762\u6dfb\u52a0@i686\u7b49\u6807\u8bc6\u3002<br \/>\uff084\uff09\u5347\u7ea7\u6240\u6709\u7cfb\u7edf\u8f6f\u4ef6<br \/>[root@linux root]# apt-get upgrade<br \/>\uff085\uff09\u5168\u9762\u5347\u7ea7,\u6bd4upgrade\u66f4\u52a0\u667a\u80fd\u5316\u7684\u5347\u7ea7\uff0c\u540c\u65f6\u89e3\u51b3\u5347\u7ea7\u65f6\u7684\u4e00\u4e9b\u4f9d\u8d56\u5173\u7cfb<br \/>[root@linux root]# apt-get dist-upgrade<br \/>\uff086\uff09\u5378\u8f7d\u8f6f\u4ef6\uff0c\u540c\u65f6\u5378\u8f7d\u4f9d\u8d56\u8f6f\u4ef6<br \/>[root@linux root]# apt-get remove package-name<br \/>\uff087\uff09\u6e05\u9664\u672c\u5730\u4e0b\u8f7d\u7684rpm\u5305\uff0crpm\u5305\u4e0b\u8f7d\u540e\u4fdd\u5b58\u5728\/var\/cache\/apt\/archieves\u4e0b\u9762\uff0c\u672c\u547d\u4ee4\u6e05\u9664\u5df2\u4e0b\u8f7d\u5b89\u88c5\u8fc7\u7684rpm\u6587\u4ef6<br \/>[root@linux root]# apt-get clean<br \/>\u4ee5\u4e0a\u6240\u6709\u547d\u4ee4\u90fd\u53ef\u4ee5\u901a\u8fc7\u56fe\u5f62\u754c\u9762\u7684\u524d\u7aef\u8f6f\u4ef6Synaptic\u5b8c\u6210\uff0c\u56fe\u5f62\u5316\u7684\u8f6f\u4ef6\u4f7f\u7528\u8d77\u6765\u66f4\u52a0\u76f4\u89c2\uff0c\u7406\u89e3\u4e86\u524d\u9762\u51e0\u4e2a\u4e3b\u8981\u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u6beb\u65e0\u56f0\u96be\u5730\u4f7f\u7528Synaptic\u4e86\uff0c\u6240\u4ee5\u672c\u6587\u4e0d\u518d\u8d58\u8ff0Synaptic\u7684\u4f7f\u7528\u65b9\u6cd5\u4e86\u3002<br \/><\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">\u56db \u5b9a\u5236apt-rpm<\/p>\n<p>\uff081\uff09\u6dfb\u52a0\u8f6f\u4ef6\u8d44\u6e90\u5217\u8868<br \/>\u5728apt-rpm\u7cfb\u7edf\u91cc\u9762\u6dfb\u52a0\u8f6f\u4ef6\u8d44\u6e90\u975e\u5e38\u5bb9\u6613\uff0c\u53ea\u9700\u8981\u6309\u7167\u63d0\u4f9bapt\u670d\u52a1\u7684\u670d\u52a1\u5668\u7684\u8bf4\u660e\u5728\/etc\/apt\/sources.list\u91cc\u9762\u52a0\u5165\u5bf9\u7f51\u7ad9\u7684\u63cf\u8ff0\u5373\u53ef\u3002<br \/>\u8fd9\u4e00\u884c\u53c2\u6570\u7684\u683c\u5f0f\u4e3a\uff1a<br \/>rpm uri distribution [component1] [componenent2] [&#8230;]<br \/>\u5176<br \/>\n\u4e2d\uff0curi\u4e3a\u8f6f\u4ef6\u8d44\u6e90\u7684\u5730\u5740\uff0c\u53ef\u4ee5\u662fhttp\uff0cftp\uff0cfile\u7b49URL\u5730\u5740\uff0cdistribution\u662fredhat\u53d1\u884c\u7248\u672c\uff0c\u5982<br \/>\n7.2,7.3,8.0\u7b49\u7b49\uff0c\u540e\u9762\u7684component\u53ef\u4ee5\u5ffd\u7565\u3002\u6709\u65f6\u5019\u53ef\u80fd\u53ea\u5bf9\u67d0\u8f6f\u4ef6\u8d44\u6e90\u7684\u4e00\u6216\u51e0\u90e8\u5206\u90e8\u5206\u611f\u5174\u8da3\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728\u8fd9\u91cc\u660e\u786e\u6307\u51fa\u3002 <br \/>\u4f8b\u5982\u6dfb\u52a0http:\/\/apt.unl.edu\/ \u63d0\u4f9b\u7684redhat KDE 3.1\u7684\u6d4b\u8bd5\u8f6f\u4ef6\u5305\uff0c\u53ea\u9700\u8981\u5728sources.list\u91cc\u9762\u6dfb\u52a0\u4e00\u884c\uff1a<br \/>rpm ftp:\/\/apt.unl.edu\/apt\/ 8.0 kde3-test<br \/>\u5c31\u5c06\u8be5\u7f51\u7ad9\u7684kde3\u90e8\u5206\u52a0\u5165\u4e86\u5217\u8868\u3002<br \/>\u4e0b<br \/>\n\u9762\u662f\u4e00\u4e9b\u76ee\u524d\u53ef\u4ee5\u7528\u4e8eredhat \u7684apt-rpm\u8f6f\u4ef6\u8d44\u6e90\u5217\u8868\uff0c\u628a\u5b83\u4eec\u52a0\u5165\u4f60\u7684 \/etc\/apt\/sources.list<br \/>\n\u6587\u4ef6\u5c31\u53ef\u4ee5\u901a\u8fc7apt-rpm\u4f7f\u7528\u4ed6\u4eec\u63d0\u4f9b\u7684redhat\u8f6f\u4ef6\u66f4\u65b0\u548c\u7ef4\u62a4\u4e86,\u53c2\u770b\u7f51\u7ad9\u8bf4\u660e\u3002\uff08\u524d\u9762\u662f\u7f51\u7ad9\u540d\uff0c\u540e\u9762\u662f\u9002\u7528redhat\u7248\u672c\u548c\u7b80\u4ecb\uff09<br \/>http:\/\/apt.freshrpms.net\/&#160; &#8211; Red Hat Linux 6.2, 7.x \u30018.0and 9.0 repositories (with all freshrpms included of course!)<br \/>http:\/\/www.linux.cz\/apt-rpm\/&#160; &#8211; Red Hat Linux 7.x repositories (with all freshrpms included too!)<br \/>http:\/\/apt-rpm.tuxfamily.org\/ &#8211; Red Hat Linux 6.2, 7.x \u30018.0and 9.0&#160; repositories<br \/>http:\/\/apt.nlc.no\/apt\/ &#8211; Red Hat Linux 6.2, 7.x and Rawhide repositories<br \/>http:\/\/ftp.uninett.no\/pub\/linux\/apt\/ &#8211; Red Hat Linux 6.2, 7.x\u30018.0and 9.0&#160; and Rawhide repositories<br \/>http:\/\/redhat.usu.edu\/ &#8211; Red Hat Linux 7.2, 7.3 and 8.0 repositories<br \/>ftp:\/\/mirror.pa.msu.edu\/apt\/ &#8211; Red Hat Linux 7.2, 7.3 and 8.0 repositories<br \/>http:\/\/apt-rpm.codefactory.se\/ &#8211; Red Hat Linux 7.2, 7.3 and 8.0 and gnomehide repositories<br \/>http:\/\/apt.42h.de\/ &#8211; Red Hat Linux 7.2, 7.3 and 8.0 repositories<br \/>http:\/\/apt.toggletext.com.au\/ &#8211; A few Red Hat Linux 7.2 custom packages<br \/>http:\/\/people.ecsc.co.uk\/~matt\/repository.html &#8211; Lots of custom Red Hat Linux 8.0 GNOME 2 and related packages<br \/>http:\/\/ftp-stud.fht-esslingen.de\/apt\/ &#8211; Red Hat Linux 7.x, 8.x and rawhide<br \/>http:\/\/apt.unl.edu\/ &#8211; Red Hat Linux 7.3 and 8.0<br \/>http:\/\/kde-redhat.sourceforge.net\/ &#8211; KDE for Red Hat project<\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\"><br \/>\uff082\uff09\u628aredhat\u5b89\u88c5\u76d8\u6dfb\u52a0\u5230\u8f6f\u4ef6\u6e90<br \/>\u6709\u7684\u65f6\u5019\u9700\u8981\u4eceredhat\u5b89\u88c5\u5149\u76d8\u6216\u8005iso\u6587\u4ef6\u5b89\u88c5\u3001\u5378\u8f7d\u8f6f\u4ef6\uff0c\u8fd9\u65f6\u53ef\u4ee5\u628aredhat\u5b89\u88c5\u5149\u76d8\u8bbe\u7f6e\u4e3a\u8f6f\u4ef6\u6e90\u3002\u8fd9\u79cd\u5de5\u4f5c\u65b9\u5f0f\u9700\u8981\u9996\u5148\u626b\u9762\u5b89\u88c5\u5149\u76d8\u4e0a\u7684\u8f6f\u4ef6\u5305\uff0c\u5e76\u5728 \/var\/lib\/apt\/cdroms.list\u6587\u4ef6\u4e2d\u5efa\u7acb\u5149\u76d8\u8f6f\u4ef6\u5217\u8868\u3002<br \/>\u5982\u679c\u4f7f\u7528redhat\u5149\u76d8\uff0c\u53ea\u9700\u8981\u628a\u5149\u76d8\u63d2\u5165\u5149\u9a71\uff0c\u4e0b\u9762\u547d\u4ee4\u4f1a\u81ea\u52a8mount\u5149\u76d8\u5e76\u5efa\u7acb\u5217\u8868<br \/>[root@linux root]# apt-cdrom add<br \/>\u5982\u679c\u662f\u4f7f\u7528ISO\u6587\u4ef6\u5b89\u88c5\uff0c\u9996\u5148mount ISO\u6587\u4ef6\u5230mount-point,\u628amount point\u8f93\u5165\uff0c\u5c31\u53ef\u4ee5\u81ea\u52a8\u641c\u7d22RPM\u8f6f\u4ef6\u5217\u8868\u4e86\u3002<br \/>[root@linux root]# apt-cdrom -m -d mount-point add<br \/>\u5982\u679c\u662f\u89e3\u5f00\u7684\u786c\u76d8\u6620\u50cf\u5b89\u88c5\uff0c\u53ea\u9700\u8981\u628a\u8def\u5f84\u8f93\u5165\uff0c\u5c31\u53ef\u4ee5\u81ea\u52a8\u641c\u7d22RPM\u8f6f\u4ef6\u5217\u8868\u4e86\u3002<br \/>[root@linux root]# apt-cdrom -m -d path add<br \/><\/font><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\"><o:p><font size=\"3\">\u4e94\u3001 \u67b6\u8bbe\u7b80\u6613<span lang=\"EN-US\"> APT \u670d\u52a1\u5668<\/span> \uff08\u8fd9\u91cc\u53ea\u8bb2\u89e3Redhat 9\uff09<\/font><\/o:p><\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"color: red; font-family: \u5b8b\u4f53;\"><font size=\"3\">\u6ce8\u610f<\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\uff1a\u5728\u8fdb\u884c\u4e0b\u9762\u64cd\u4f5c\u524d\u8bf7\u5148\u786e\u8ba4\u81ea\u5df1\u7684<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> apache <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u5df2\u7ecf\u5728\u6b63\u5e38\u8fd0\u505a\uff0c\u4e14<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> \/var <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u81f3\u5c11\u8fd8\u6709<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> 2G <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7684\u7a7a\u95f4<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> <\/font><\/span><\/p>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\">1.\u4e3a\u4ec0\u4e48\u8981\u67b6\u8bbe APT \u670d\u52a1\u5668<\/span><\/font><\/font><\/h2>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u5f53\u6211\u4eec\u5b89\u88c5<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> freshrpms <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7684<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> apt<\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\uff0c\u5b89\u88c5\u3001\u5347\u7ea7\u90fd\u662f\u900f\u8fc7\u7f51\u7edc\u8054\u673a\u5230<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> freshrpms <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u4e0b\u8f7d\u6863\u6848\u3002\u82e5\u53ea\u7ef4\u62a4\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u8fd8\u597d\uff0c\u53ef\u662f\u82e5\u6709\u5341\u53f0\u670d\u52a1\u5668\uff0c\u5c31\u9700\u8981\u82b1\u539f\u672c\u5341\u500d\u7684\u65f6\u95f4\u548c\u9891\u5bbd\u6765\u505a\u540c\u6837\u7684\u4e8b\u60c5\uff0c\u518d\u52a0\u4e0a\u82e5\u8fde\u5916\uff08\u7f8e\u56fd\uff09\u7684\u9891\u5bbd\u4e0d\u5145\u88d5\uff0c\u8fd9\u8981\u5982\u4f55\u662f\u597d\uff0c\u6240\u4ee5\u5f53\u6709\u591a\u53f0\u670d\u52a1\u5668\u8981\u7ef4\u62a4\u7684\u65f6\u5019\uff0c\u67b6\u8bbe\u4e00\u53f0<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> APT <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u670d\u52a1\u5668\uff0c\u4f3c\u4e4e\u662f\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/font><\/span><\/p>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\">2.\u5b89\u88c5 apt\uff1a<\/span><\/font><\/font><\/h2>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><span lang=\"EN-US\"><font size=\"3\"><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/9\/apt\/\">http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/9\/apt\/<\/a><\/font><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u8bf7\u5b89\u88c5\u8fd9\u7f51\u7ad9\u5185\u6700\u65b0\u7684<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> apt<\/p>\n<p><\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u7ebf\u4e0a\u5b89\u88c5\uff1a<\/font><\/span><font size=\"3\"><b><i><span lang=\"EN-US\">rpm -ivh <\/span><\/i><\/b><span lang=\"EN-US\"><a href=\"http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/9\/apt\/apt-0.5.5cnc5-fr2.i386.rpm\"><b><i>http:\/\/ftp.freshrpms.net\/pub\/freshrpms\/redhat\/9\/apt\/apt-0.5.5cnc5-fr2.i386.rpm<\/i><\/b><\/a><\/span><\/font><\/p>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\">3.\u5efa\u7f6e\u653e\u7f6e Red Hat Linux 9 \u76f8\u5173 rpm \u7684\u8d44\u6599\u5939 <\/span><\/font><\/font><\/h2>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><font size=\"3\"><b><i><span lang=\"EN-US\">mkdir -p \/var\/www\/html\/redhat\/9<br \/>mkdir \/var\/www\/html\/redhat\/9\/RPMS.os<br \/>mkdir \/var\/www\/html\/redhat\/9\/RPMS.updates <\/span><\/i><\/b><\/font><\/p>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\">4.\u5c06\u6574\u4e2a Red Hat Linux 9 \u7684 binary rpm \u590d\u5236\u5230 \/var\/www\/html\/redhat\/9\/RPMS.os \u8d44\u6599\u5939<\/span><\/font><\/font><\/h2>\n<p class=\"MsoNormal\" style=\"margin-bottom: 12pt;\"><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\uff08\u5e95\u4e0b\u63d0\u4f9b\u4e09\u79cd\u65b9\u6cd5\uff0c\u8bf7\u4f9d\u81ea\u5df1\u72b6\u51b5\u6311\u9009\u4e00\u79cd\u65b9\u6cd5\u6267\u884c\uff09<\/font><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><span style=\"background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: \u5b8b\u4f53;\"><font size=\"3\">\u65b9\u6cd5\u4e00<\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\uff1a\u4ece\u5149\u76d8\u7247\u590d\u5236\uff08\u5f53\u624b\u4e0a\u6709<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> Red Hat Linux 9 <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u5149\u76d8\u7247\u7684\u65f6\u5019\u53ef\u4ee5\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff09<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> <\/font><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 80pt;\"><font size=\"3\"><b><i><span lang=\"EN-US\">mount \/mnt\/cdrom<br \/>cp -f \/mnt\/cdrom\/RedHat\/RPMS\/* \/var\/www\/html\/redhat\/9\/RPMS.os\/<br \/>umount \/mnt\/cdrom<\/span><\/i><\/b><span lang=\"EN-US\"><br \/><\/span><span style=\"font-family: \u5b8b\u4f53;\">\u4f9d\u7167\u4e0a\u9762\u65b9\u6cd5\uff0c\u590d\u5236\u7b2c\u4e8c\u7247\u3001\u7b2c\u4e09\u7247\u5149\u76d8\u7247\u5185\u7684<\/span><span lang=\"EN-US\"> rpm<\/span><\/font><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><span lang=\"EN-US\"><font size=\"3\"><br \/><\/font><\/span><span style=\"background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: \u5b8b\u4f53;\"><font size=\"3\">\u65b9\u6cd5\u4e8c<\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\uff1a\u4ece<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> iso <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u6587\u4ef6\u590d\u5236\uff08\u5f53\u8ba1\u7b97\u673a\u5185\u6709<\/font><\/span><span lang=\"EN-US\"><font size=\"3\"> Red Hat Linux 9 iso <\/font><\/span><span style=\"font-family: \u5b8b\u4f53;\"><font size=\"3\">\u6863\u7684\u65f6\u5019\u53ef\u4ee5\u7528\u8fd9\u4e2a\u65b9\u6cd5\u7528\uff09<\/font><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 80pt;\"><font size=\"3\"><b><i><span lang=\"EN-US\">mkdir \/mnt\/iso<\/p>\n<p>mount -o loop shrike-i386-disc1.iso \/mnt\/iso<br \/>cp \/mnt\/iso\/RedHat\/RPMS\/* \/var\/www\/html\/redhat\/9\/RPMS.os\/<br \/>umount \/mnt\/iso<\/p>\n<p>mount -o loop shrike-i386-disc2.iso \/mnt\/iso<br \/>cp -f \/mnt\/iso\/RedHat\/RPMS\/* \/var\/www\/html\/redhat\/9\/RPMS.os\/<br \/>umount \/mnt\/iso<\/p>\n<p>mount -o loop shrike-i386-disc3.iso \/mnt\/iso<br \/>cp -f \/mnt\/iso\/RedHat\/RPMS\/* \/var\/www\/html\/redhat\/9\/RPMS.os\/<br \/>umount \/mnt\/iso<\/span><\/i><\/b><\/font><\/p>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\">5.\u5c06 Red Hat Linux 9 updates \u7684 rpm \u590d\u5236\u5230 \/var\/www\/html\/redhat\/9\/RPMS.updates \u8d44\u6599\u5939<\/span><\/font><\/font><\/h2>\n<p class=\"MsoNormal\" style=\"margin-left: 40pt;\"><font size=\"3\"><b><i><span lang=\"EN-US\">cd \/var\/www\/html\/redhat\/9\/RPMS.updates<br \/>wget ftp:\/\/linux.sinica.edu.tw\/pub1\/redhat\/updates\/9\/en\/os\/i386\/*<\/span><\/i><\/b><span lang=\"EN-US\"><br \/><\/span><span style=\"font-family: \u5b8b\u4f53;\">\uff08\u82e5\u7f51\u7edc\u9891\u5bbd\u4e0d\u9ad8\uff0c\u4f1a\u82b1\u5f88\u4e45\u65f6\u95f4\uff0c\u8bf7\u8010\u5fc3\u7b49\u5019\uff09<\/span><span lang=\"EN-US\"> <\/span><\/font><\/p>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\">6.\u4f7f\u7528 genbasedir \u6307\u4ee4\u4ea7\u751f base \u6570\u636e\u5939\u548c rpm \u7d22\u5f15\u6e05\u5355<\/span><span lang=\"EN-US\" style=\"background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;\"><\/span><\/font><\/font><\/h2>\n<h2><font size=\"3\"><font size=\"2\"><span lang=\"EN-US\" style=\"background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;\">genbasedir &#8211;flat &#8211;bloat &#8211;bz2only \/var\/www\/html\/redhat\/9 os updates<\/span><span style=\"font-family: \u5b8b\u4f53;\"><\/span><\/font><\/font><\/h2>\n<h2><font size=\"3\"><font size=\"2\"><span style=\"font-family: \u5b8b\u4f53;\">\u6267\u884c\u8fc7\u7a0b\uff1a\uff08\u8fc7\u7a0b\u4f1a\u6709\u70b9\u4e45\uff0c\u8bf7\u8010\u5fc3\u7b49\u5019\uff09<\/span><\/font><\/font><\/h2>\n<p><span lang=\"EN-US\" style=\"font-family: 'Times New Roman'; font-size: 10.5pt;\"><font size=\"3\">Creating base directory&#8230; done<br \/>Components: os updates<\/p>\n<p><font size=\"5\">\u6211\u7684sources.list\u8d44\u6e90(for RedHat 9).<br \/><font size=\"2\"><span style=\"color: rgb(255, 0, 0);\"># List of available apt repositories available from ayo.freshrpms.net.<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># This file should contain an uncommented default suitable for your system.<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># See http:\/\/ayo.freshrpms.net\/ for a list of other repositories and mirrors.<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># $Id: sources.list,v 1.8 2003\/04\/16 09:59:58 dude Exp $<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 9<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm http:\/\/ayo.freshrpms.net redhat\/9\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/9\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 8.0<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/8.0\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/8.0\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 7.3<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/7.3\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/7.3\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 7.2<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/7.2\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/7.2\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#The follow lines add by manual.<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># http:\/\/atrpms.physik.fu-berlin.de\/<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm http:\/\/apt.physik.fu-berlin.de\/ redhat\/9\/en\/i386 at-stable at-good at-testing at-bleeding<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm-src http:\/\/apt.physik.fu-berlin.de\/ redhat\/9\/en\/i386 at-stable at-good at-testing at-bleeding<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># http:\/\/dag.wieers.com\/<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm http:\/\/apt.sw.be\/ redhat\/9\/en\/i386 dag<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm-src http:\/\/apt.sw.be\/ redhat\/9\/en\/i386 dag<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># http:\/\/www.fedora.us\/<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm http:\/\/download.fedora.us\/fedora\/ redhat\/9\/i386 os updates stable unstable testing<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm-src http:\/\/download.fedora.us\/fedora\/ redhat\/9\/i386 os updates stable unstable testing<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># http:\/\/newrpms.sunsite.dk\/<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm http:\/\/newrpms.sunsite.dk\/apt\/ redhat\/en\/i386\/9.0 newrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm-src http:\/\/newrpms.sunsite.dk\/apt\/ redhat\/en\/i386\/9.0 newrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">##############################################################<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm http:\/\/ftp-stud.fht-esslingen.de\/apt redhat\/9\/i386 os updates <\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">rpm-src http:\/\/ftp-stud.fht-esslingen.de\/apt redhat\/9\/i386 os updates <\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 7.1<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/7.1\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/7.1\/i386 powertools dma<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/7.1\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/7.1\/i386 powertools dma<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 7.0<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/7.0\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/7.0\/i386 powertools dma<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/7.0\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/7.0\/i386 powertools dma<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\"># Red Hat Linux 6.2<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/6.2\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm http:\/\/ayo.freshrpms.net redhat\/6.2\/i386 powertools<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/6.2\/i386 os updates freshrpms<\/span><br style=\"color: rgb(255, 0, 0);\" \/><span style=\"color: rgb(255, 0, 0);\">#rpm-src http:\/\/ayo.freshrpms.net redhat\/6.2\/i386 powertools<\/span><br style=\"color: rgb(255, 0, 0);\" \/><br \/><\/font><br style=\"\" \/><\/font><\/font><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/www.yesybl.com\/?p=103\" rel=\"bookmark\" title=\"Permalink to \u4e3aredhat\u589e\u52a0apt\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\"><p>&#160; \u524d\u8a00 \u4f60\u4f7f\u7528\u4ec0\u4e48\u65b9\u6cd5\u5728\u7ba1\u7406\u4f60\u7684 RPM\uff0c\u4ece\u5149\u76d8\u7247\u5b89\u88c5\uff0c\u4ece\u7f51\u7edc\u4e0b\u8f7d\u5b89\u88c5\u3001\u8fd8\u662f\u4f7f\u7528 Red Hat \u7684 up2date\uff08Red Hat Network\uff09\u5728\u7ef4\u62a4\uff0c\u8fd9\u4e9b\u90fd\u662f\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6cd5\uff0c\u53ef\u662f\u4f60\u53ef\u4ee5\u6709\u66f4\u597d\u7684\u9009\u62e9 &#8212; APT \u4e00\u3001 \u7b80\u4ecbredhat\u91c7\u7528\u4e86RPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\uff0cRPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u5177\u6709\u5f3a\u5927\u7684\u7f16\u8bd1\u5b89\u88c5\u529f\u80fd\uff0c\u4f46\u662f\u7531\u4e8e\u5386\u53f2\u539f\u56e0\uff0cRPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u5bf9\u8f6f\u4ef6\u4e4b\u95f4\u7684\u4f9d\u5b58\u5173\u7cfb\u6ca1\u6709\u5185\u90e8\u5b9a\u4e49\uff0c\u9020\u6210\u5b89\u88c5RPM\u8f6f\u4ef6\u65f6\u7ecf\u5e38\u51fa\u73b0\u4ee4\u4eba\u65e0\u6cd5\u7406\u89e3\u7684\u8f6f\u4ef6\u4f9d\u8d56\u95ee\u9898\u3002debian \u7cfb\u7edf\u5219\u57fa\u4e8eapt(Advanced Packaging Tool)\u5de5\u5177\u8fdb\u884c\u8f6f\u4ef6\u5305\u7ba1\u7406\uff0c\u53ef\u4ee5\u81ea\u52a8\u89e3\u51b3\u5e76\u5b89\u88c5\u501a\u8d56\u8f6f\u4ef6\u5305\uff0c\u56e0\u6b64debian linux\u88ab\u8ba4\u4e3a\u662f\u6700\u5bb9\u6613\u7ba1\u7406\u548c\u5347\u7ea7\u7684\u7cfb\u7edf\uff0capt\u5de5\u5177\u4e5f\u88ab\u8ba4\u4e3a\u662f\u76ee\u524d\u6700\u597d\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u4e4b\u4e00\u3002\u4e3a\u4e86\u89e3\u51b3redhat\u5305\u7ba1\u7406\u7cfb\u7edf\u7684\u81f4\u547d\u95ee\u9898\uff0c Conectiva Linux\u5c06apt\u7cfb\u7edf\u79fb\u690d\u5230\u4e86\u4f7f\u7528rpm\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u7684Linux\u7cfb\u7edf\u4e0b\uff0c\u4f7f\u5f97\u57fa\u4e8eRPM\u8f6f\u4ef6\u5305\u7684\u7cfb\u7edf\u53ef\u4ee5\u5229\u7528apt\u5de5\u5177\u63d0\u4f9b\u7684\u81ea\u52a8\u89e3\u51b3\u501a\u8d56\u5173\u7cfb\u7684\u80fd \u529b\u3002\u76ee\u524d\u5df2\u7ecf\u6709\u5f88\u591a\u4e3aredhat linux\u63d0\u4f9bapt\u65b9\u5f0f\u5347\u7ea7\u7ba1\u7406\u8f6f\u4ef6\u5305\u7684\u7ad9\u70b9\uff0c\u5982http:\/\/freshrpms.net \uff0c http:\/\/apt.unl.edu\u7b49\u7b49,\u4f7f\u5f97redhat\u4e5f\u6210\u4e3a\u53ef\u4ee5\u5229\u7528apt\u5de5\u5177\u7684\u53d1\u884c\u7248\u4e4b\u4e00\uff0c\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u5728redhat linux\u7cfb\u7edf\u5b89\u88c5\u548c\u4f7f\u7528apt\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u3002\u4e3a\u4e86\u5bf9apt\u5de5\u5177\u7684\u7279\u6027\u6709\u4e00\u4e2a\u5927\u81f4\u7684\u4e86\u89e3\uff0c\u4e0b\u9762\u5148\u4ecb\u7ecd\u51e0\u4e2a\u4f7f\u7528apt with rpm\u7ba1\u7406\u7cfb\u7edf\u7684\u5b9e\u4f8b\uff1a\uff081\uff09\u5220\u9664\u4e00\u4e2a\u8f6f\u4ef6\u5305\u65f6\u81ea\u52a8\u5220\u9664\u76f8\u5173\u8f6f\u4ef6\u5305: [root@linux root]# apt-get remove nessus-common 2\uff09\u81ea\u52a8\u4e0b\u8f7d\u5b89\u88c5\u4f9d\u8d56\u5305: [root@linux root]# apt-get install nessus-server \uff083\uff09\u7ef4\u62a4\u7cfb\u7edf\u8f6f\u4ef6\uff0c\u81ea\u52a8\u66f4\u65b0\u7cfb\u7edf :[root@linux root]# apt-get upgrade \u4e8c\u3001APT \u7b80\u6613\u8fd0\u4f5c\u539f\u7406 \u6211\u4eec\u7684\u673a\u5668\u5b89\u88c5\u4e86 APT \u5957\u4ef6\u4e4b\u540e\u5c31\u6210\u4e86 APT \u7684\u4f7f\u7528\u8005\u7aef\uff0c\u5f53\u6211\u4eec\u5728\u5b89\u88c5\u3001\u5347\u7ea7 RPM \u7684\u65f6\u5019\uff0c\u4e8b\u5b9e\u4e0a\uff0c\u90fd\u662f\u900f\u8fc7\u7f51\u7edc\u8fde\u5230\u8fdc\u7a0b\u7684 APT \u670d\u52a1\u5668\u53bb\u4e0b\u8f7d RPM [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pa4z28-1F","_links":{"self":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/103"}],"collection":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":0,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}