ÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÈí¼þµÄ¸üкÍÉý¼¶£¿
ÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÈí¼þµÄ¸üкÍÉý¼¶£¿
÷è÷ë²Ù×÷ϵͳ×÷Ϊһ¿î¹ú²ú×ÔÖ÷Ñз¢µÄ²Ù×÷ϵͳ£¬¾ß±¸ÁËÇ¿Ê¢µÄÇå¾²ÐÔºÍÎȹÌÐÔ£¬Ô½À´Ô½¶àµÄÓû§Ñ¡ÔñʹÓÃ÷è÷ë²Ù×÷ϵͳ¡£ÓëÆäËû²Ù×÷ϵͳһÑù£¬Èí¼þµÄ¸üкÍÉý¼¶¹ØÓÚ¼á³ÖϵͳµÄÇå¾²ÐÔºÍÐÔÄܵÄÌáÉý¶¼ºÜÊÇÖ÷Òª¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÈí¼þµÄ¸üкÍÉý¼¶£¬²¢ÌṩÏìÓ¦µÄ´úÂëʾÀý¡£
Ò»¡¢Ê¹ÓÃÈí¼þ°ü¹ÜÀí¹¤¾ß¾ÙÐиüкÍÉý¼¶
÷è÷ë²Ù×÷ϵͳʹÓÃÁË»ùÓÚDebianµÄAPT£¨Advanced Package Tool£©Èí¼þ°ü¹ÜÀíϵͳ£¬Í¨¹ýAPT¿ÉÒÔÀû±ãµØ¾ÙÐÐÈí¼þµÄ¸üкÍÉý¼¶¡£ÒÔÏÂÊdz£ÓõÄAPTÏÂÁîʾÀý£º
¸üÐÂÈí¼þ°üÁÐ±í£º
sudo apt update
µÇ¼ºó¸´ÖÆ
Éý¼¶ÒÑ×°ÖõÄÈí¼þ°ü£º
sudo apt upgrade
µÇ¼ºó¸´ÖÆ
Éý¼¶ÏµÍ³ÖÐËùÓпÉÉý¼¶µÄÈí¼þ°ü£º
sudo apt full-upgrade
µÇ¼ºó¸´ÖÆ
¶þ¡¢Ê¹ÓÃͼÐνçÃæ¾ÙÐиüкÍÉý¼¶
÷è÷ë²Ù×÷ϵͳÌṩÁËͼÐνçÃæµÄÈí¼þ°ü¹ÜÀí¹¤¾ß£¬Óû§¿ÉÒÔͨ¹ýͼÐνçÃæÖ±¹ÛµØ¾ÙÐÐÈí¼þµÄ¸üкÍÉý¼¶¡£ÒÔÏÂÊÇʹÓÃ÷è÷ë²Ù×÷ϵͳͼÐνçÃæ¾ÙÐÐÈí¼þ¸üкÍÉý¼¶µÄ°ì·¨£º
·¿ª¡°Ó¦ÓóÌÐòÆô¶¯Æ÷¡±£¨Î»ÓÚʹÃüÀ¸µÄ×ó²à£©£¬µã»÷¡°Èí¼þÖÐÐÄ¡±Í¼±ê¡£
ÔÚ¡°Èí¼þÖÐÐÄ¡±½çÃæÖУ¬µã»÷ÓÒÉϽǵġ°¸üС±°´Å¥£¬ÆÚ´ýÈí¼þ°üÁбí¸üÐÂÍê³É¡£
ÔÚ×ó²àµ¼º½À¸ÖÐÑ¡Ôñ¡°×°ÖõÄÈí¼þ°ü¡±£¬¼ì²éϵͳÖÐÒÑ×°ÖõÄÈí¼þ°üÊÇ·ñÓпÉÓõĸüС£
µã»÷¡°¸üС±°´Å¥£¬¾ÙÐÐÈí¼þ°üµÄ¸üС£ÈôÊÇÓÐÐèÒª£¬Æ¾Ö¤ÌáÐÑÊäÈëÖÎÀíÔ±ÃÜÂë¡£
Íê³ÉÈí¼þ°ü¸üк󣬽¨ÒéÖØÐÂÆô¶¯ÏµÍ³ÒÔʹ¸üÐÂÉúЧ¡£
Èý¡¢Ê¹ÓÃShell¾ç±¾¾ÙÐÐÅúÁ¿¸üкÍÉý¼¶
ÈôÊÇÐèÒª°´ÆÚ¾ÙÐÐÈí¼þ°üµÄ¸üкÍÉý¼¶£¬¿ÉÒÔʹÓÃShell½ÅÔÀ´¼ò»¯²Ù×÷¡£ÒÔÏÂÊÇÒ»¸öʾÀý¾ç±¾£º
#!/bin/bash # ¸üÐÂÈí¼þ°üÁбí sudo apt update # Éý¼¶ÒÑ×°ÖõÄÈí¼þ°ü sudo apt upgrade -y # Éý¼¶ÏµÍ³ÖÐËùÓпÉÉý¼¶µÄÈí¼þ°ü sudo apt full-upgrade -y # ÕûÀíÒÑÏÂÔصÄÈí¼þ°ü sudo apt autoclean # ɾ³ýÒÑ×°ÖõľÉÄÚºË sudo apt autoremove --purge -y
µÇ¼ºó¸´ÖÆ
ÉúÑÄÒÔÉϾ籾Ϊupdate.shÎļþ£¬²¢¸øÓèÖ´ÐÐȨÏÞ£º
chmod +x update.sh
µÇ¼ºó¸´ÖÆ
ÔËÐо籾¾ÙÐÐÈí¼þ°üµÄ¸üкÍÉý¼¶£º
./update.sh
µÇ¼ºó¸´ÖÆ
¾ç±¾ÖеÄ-y²ÎÊýÌåÏÖÔÚÖ´ÐÐÀú³ÌÖв»ÐèÒªÊÖ¶¯È·ÈϲÙ×÷£¬¿ÉÒÔƾ֤ÐèÒª¾ÙÐе÷½â¡£
×ܽ᣺
±¾ÎÄÏÈÈÝÁËÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÈí¼þµÄ¸üкÍÉý¼¶¡£Í¨¹ýÈí¼þ°ü¹ÜÀí¹¤¾ß¡¢Í¼ÐνçÃæÒÔ¼°Shell¾ç±¾£¬Óû§¿ÉÒÔÀû±ãµØ¾ÙÐÐÈí¼þµÄ¸üкÍÉý¼¶£¬¼á³ÖϵͳµÄÇå¾²ÐÔºÍÐÔÄܵÄÌáÉý¡£Ï£Íû±¾ÎĶÔÄúÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÈí¼þ¸üкÍÉý¼¶ÌṩÁË×ÊÖú¡£
(×ÖÊý£º571)
ÒÔÉϾÍÊÇÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÈí¼þµÄ¸üкÍÉý¼¶£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡