÷è÷ë²Ù×÷ϵͳÔõÑùÌṩ×Ô¶¯¸üкÍÉý¼¶¹¦Ð§£¿
÷è÷ë²Ù×÷ϵͳÔõÑùÌṩ×Ô¶¯¸üкÍÉý¼¶¹¦Ð§£¿
Ëæ×ſƼ¼µÄһֱǰ½øºÍ²Ù×÷ϵͳµÄÈÕÒæÖ÷Òª£¬Óû§¹ØÓÚ²Ù×÷ϵͳµÄÎȹÌÐÔ¡¢Çå¾²ÐԺ͹¦Ð§µÄÒªÇóÒ²Ô½À´Ô½¸ß¡£ÎªÁËÖª×ãÓû§µÄÐèÇ󣬲Ù×÷ϵͳÐèÒªÌṩ×Ô¶¯¸üкÍÉý¼¶¹¦Ð§£¬ÊµÊ±ÐÞ¸´Îó²îºÍÌí¼Óй¦Ð§¡£÷è÷ë²Ù×÷ϵͳ×÷Ϊ¹ú²ú×ÔÖ÷Ñз¢µÄ²Ù×÷ϵͳ£¬Ò²²»ÆÆÀý£¬ËüÌṩÁË×Ô¶¯¸üкÍÉý¼¶µÄ¹¦Ð§¡£
ÔÚ÷è÷ë²Ù×÷ϵͳÖУ¬×Ô¶¯¸üкÍÉý¼¶µÄ¹¦Ð§Ö÷Ҫͨ¹ýÈí¼þ°ü¹ÜÀíÆ÷ºÍ¸üÐÂЧÀÍÍê³É¡£÷è÷ë²Ù×÷ϵͳʹÓõÄÈí¼þ°ü¹ÜÀíÆ÷ÊÇapt»òyum£¬ËüÃÇÊÇ¿ªÔ´ÇÒÆÕ±éʹÓõÄÈí¼þ°ü¹ÜÀí¹¤¾ß£¬¿ÉÒÔÀû±ãµØÖÎÀíÈí¼þ°üµÄ×°ÖúÍÉý¼¶¡£
Ê×ÏÈ£¬÷è÷ë²Ù×÷ϵͳ»áÔÚ×°ÖÃʱ×Ô¶¯ÉèÖÃÈí¼þ°ü¹ÜÀíÆ÷£¬²¢ÉèÖúøüÐÂÔ´¡£¸üÐÂÔ´ÊÇ´æ·ÅÈí¼þ°ü×îа汾µÄЧÀÍÆ÷£¬÷è÷ë²Ù×÷ϵͳ»á°´ÆÚÅþÁ¬¸üÐÂÔ´£¬»ñÈ¡×îеÄÈí¼þ°üÐÅÏ¢¡£Óû§Ò²¿ÉÒÔ×ÔÐÐÉèÖøüÐÂÔ´£¬Ñ¡ÔñÊʺÏ×Ô¼ºµÄЧÀÍÆ÷¡£
µ±Èí¼þ°ü¹ÜÀíÆ÷¼ì²âµ½ÓÐеÄÈí¼þ°ü°æ±¾¿ÉÓÃʱ£¬Ëü»á֪ͨÓû§£¬²¢×Ô¶¯ÏÂÔØÈí¼þ°üµÄ¸üС£Óû§¿ÉÒÔƾ֤×Ô¼ºµÄÐèÇóÑ¡ÔñÊÇ·ñ×°ÖÃÕâЩ¸üС£ÎªÁË°ü¹Ü²Ù×÷ϵͳµÄÎȹÌÐÔºÍÇå¾²ÐÔ£¬÷è÷ë²Ù×÷ϵͳÍƼöÓû§ÊµÊ±×°ÖÃÖ÷ÒªµÄÇå¾²¸üУ¬µ«Óû§Ò²¿ÉÒÔÑ¡ÔñÊÖ¶¯¸üУ¬ÒÔ±ã¿ØÖÆϵͳµÄ¸üС£
ÒÔÏÂÊÇÒ»¸öʾÀý´úÂ룬չʾÁËÔõÑùʹÓÃ÷è÷ë²Ù×÷ϵͳµÄÈí¼þ°ü¹ÜÀíÆ÷¾ÙÐÐ×Ô¶¯¸üкÍÉý¼¶£º
#!/bin/bash # ʹÓÃapt»òyum¾ÙÐиüÐÂÇ°£¬ÏȾÙÐÐÈí¼þ°üÁбíµÄ¸üРsudo apt update # ¼ì²é¿ÉÓõÄÈí¼þ°ü¸üв¢ÏÂÔØ sudo apt upgrade -y # ÕûÀí²»ÔÙʹÓõÄÈí¼þ°ü sudo apt autoremove -y # ¸üÐÂϵͳ sudo apt dist-upgrade -y
µÇ¼ºó¸´ÖÆ
ÔÚÕâ¸öʾÀý´úÂëÖУ¬ÎÒÃÇÊ×ÏÈʹÓÃapt»òyum¾ÙÐÐÈí¼þ°üÁбíµÄ¸üС£È»ºó£¬Ê¹ÓÃapt upgradeÏÂÁî¾ÙÐмì²é¿ÉÓõÄÈí¼þ°ü¸üв¢ÏÂÔØ£¬²¢Ê¹ÓÃapt autoremoveÏÂÁîÕûÀí²»ÔÙʹÓõÄÈí¼þ°ü¡£×îºó£¬Ê¹ÓÃapt dist-upgradeÏÂÁî¾ÙÐÐϵͳµÄ¸üС£
×ܽáÆðÀ´£¬÷è÷ë²Ù×÷ϵͳͨ¹ýÈí¼þ°ü¹ÜÀíÆ÷ºÍ¸üÐÂЧÀÍÌṩÁË×Ô¶¯¸üкÍÉý¼¶µÄ¹¦Ð§¡£Óû§¿ÉÒÔÀû±ãµØÖÎÀíÈí¼þ°üµÄ×°ÖúÍÉý¼¶¡£ÔÚʹÓÃ÷è÷ë²Ù×÷ϵͳʱ£¬½¨ÒéÓû§°´ÆÚ¼ì²éºÍ×°ÖøüУ¬ÒÔÌáÉýϵͳµÄÎȹÌÐÔ¡¢Çå¾²ÐԺ͹¦Ð§¡£
ÒÔÉϾÍÊÇ÷è÷ë²Ù×÷ϵͳÔõÑùÌṩ×Ô¶¯¸üкÍÉý¼¶¹¦Ð§£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡