{"id":1228,"date":"2023-01-11T00:38:00","date_gmt":"2023-01-11T00:38:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=1228"},"modified":"2023-01-11T00:38:00","modified_gmt":"2023-01-11T00:38:00","slug":"1228","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2023\/01\/11\/1228\/","title":{"rendered":"\u73a9\u5ba2\u4e91linux\u5347\u7ea7"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2023\/01\/409324442.png\" alt=\"OneCloud.png\" title=\"OneCloud.png\"><\/p>\n<pre><code>apt update\napt list --upgradable\napt upgrade<\/code><\/pre>\n<h2>aptitude\u3001apt-get\u548c apt \u547d\u4ee4<\/h2>\n<p>APT \u662f\u4e2a\u539f\u5148\u6709\u56fe\u5f62\u63a5\u53e3\u7684\u5927\u8ba1\u5212\u3002\u4ee5\u5305\u62ec\u6838\u5fc3\u5e94\u7528\u7a0b\u5e8f\u7684\u7a0b\u5e8f\u5e93\u4e3a\u57fa\u7840\uff0c\u4e14\u7b2c\u4e00\u4e2a\u524d\u7aef apt-get \u2014 \u57fa\u4e8e\u547d\u4ee4\u884c \u2014 \u4e5f\u5305\u62ec\u5728\u9879\u76ee\u5f00\u53d1\u4e2d\u3002apt \u662f APT \u7684\u7b2c\u4e8c\u4e2a\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u524d\u7aef\uff0c\u5305\u62ec\u82e5\u5e72 apt-get \u9519\u8bef\u7684\u5904\u7406\u3002<\/p>\n<h2>\u5b89\u88c5\u548c\u5378\u8f7d<\/h2>\n<p>\u901a\u8fc7APT\uff0c\u8f6f\u4ef6\u5305\u53ef\u4ee5\u4ece\u7cfb\u7edf\u4e2d\u6dfb\u52a0\u6216\u79fb\u9664\uff0c\u547d\u4ee4\u5206\u522b\u4e3a <code>apt install \u8f6f\u4ef6\u5305<\/code> \u3001 <code> apt remove \u8f6f\u4ef6\u5305<\/code> \u3002\u5728\u4ee5\u4e0a\u4e24\u79cd\u60c5\u51b5\u4e2d\uff0cAPT \u5c06\u4f1a\u81ea\u52a8\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5305\u6216\u8005\u5220\u9664\u4f9d\u8d56\u4e8e\u5220\u9664\u5305\u7684\u8f6f\u4ef6\u5305\u3002 <code>apt purge \u8f6f\u4ef6\u5305<\/code> \u547d\u4ee4\u5305\u542b\u4e00\u4e2a\u5f7b\u5e95\u5220\u9664 \u2014 \u76f8\u5173\u7684\u914d\u7f6e\u6587\u4ef6\u4e5f\u4f1a\u88ab\u5220\u9664\u3002<\/p>\n<h2>\u7cfb\u7edf\u5347\u7ea7<\/h2>\n<p>apt \u4f1a\u9009\u62e9\u6700\u65b0\u7684\u7248\u672c\u53f7 (\u9664\u4e86\u6765\u81ea Experimental \u4e0e stable-backports\uff0c\u5176\u7f3a\u7701\u5ffd\u7565\u7248\u672c\u53f7)\u3002\u82e5\u5728 sources.list \u5185\u6307\u5b9a \u6d4b\u8bd5\u7248 \u6216 \u4e0d\u7a33\u5b9a\u7248 \uff0c\u5219 <code>apt upgrade<\/code> \u4f1a\u628a \u7a33\u5b9a\u7248 \u7cfb\u7edf\u5207\u6362\u81f3 \u6d4b\u8bd5\u7248 \u6216 \u4e0d\u7a33\u5b9a\u7248\uff0c\u8fd9\u4e9b\u53ef\u80fd\u4e0d\u662f\u60a8\u8981\u7684\u3002<\/p>\n<pre><code>40 packages can be upgraded. Run 'apt list --upgradable' to see them.\nN: Repository 'http:\/\/deb.debian.org\/debian bullseye InRelease' changed its 'Version' value from '11.5' to '11.6'\nroot@onecloud:~# apt list --upgradable\nListing... Done\narmbian-bsp-cli-onecloud\/bullseye 22.11.1 armhf [upgradable from: 22.08.8]\narmbian-config\/bullseye 22.11.2 all [upgradable from: 22.08.6]\narmbian-firmware\/bullseye 22.11.2 all [upgradable from: 22.08.6]\narmbian-zsh\/bullseye 22.11.2 all [upgradable from: 22.08.6]\nbase-files\/stable 11.1+deb11u6 armhf [upgradable from: 11.1+deb11u5]\ncontainerd.io\/bullseye 1.6.15-1 armhf [upgradable from: 1.6.9-1]\ndistro-info-data\/stable 0.51+deb11u3 all [upgradable from: 0.51+deb11u2]\ndocker-ce-cli\/bullseye 5:20.10.22~3-0~debian-bullseye armhf [upgradable from: 5:20.10.21~3-0~debian-bullseye]\ndocker-ce-rootless-extras\/bullseye 5:20.10.22~3-0~debian-bullseye armhf [upgradable from: 5:20.10.21~3-0~debian-bullseye]\ndocker-ce\/bullseye 5:20.10.22~3-0~debian-bullseye armhf [upgradable from: 5:20.10.21~3-0~debian-bullseye]\ndocker-compose-plugin\/bullseye 2.14.1~debian-bullseye armhf [upgradable from: 2.12.2~debian-bullseye]\nlibapache2-mod-php7.4\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nlibgssapi-krb5-2\/stable,stable-security 1.18.3-6+deb11u3 armhf [upgradable from: 1.18.3-6+deb11u2]\nlibk5crypto3\/stable,stable-security 1.18.3-6+deb11u3 armhf [upgradable from: 1.18.3-6+deb11u2]\nlibkrb5-3\/stable,stable-security 1.18.3-6+deb11u3 armhf [upgradable from: 1.18.3-6+deb11u2]\nlibkrb5support0\/stable,stable-security 1.18.3-6+deb11u3 armhf [upgradable from: 1.18.3-6+deb11u2]\nlibksba8\/stable-security 1.5.0-3+deb11u2 armhf [upgradable from: 1.5.0-3+deb11u1]\nlibnginx-mod-http-geoip\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nlibnginx-mod-http-image-filter\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nlibnginx-mod-http-xslt-filter\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nlibnginx-mod-mail\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nlibnginx-mod-stream-geoip\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nlibnginx-mod-stream\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nlibpixman-1-0\/stable,stable-security 0.40.0-1.1~deb11u1 armhf [upgradable from: 0.40.0-1]\nlibtasn1-6\/stable 4.16.0-2+deb11u1 armhf [upgradable from: 4.16.0-2]\nlinux-dtb-edge-meson\/bullseye 22.11.1 armhf [upgradable from: 22.08.6]\nlinux-image-edge-meson\/bullseye 22.11.1 armhf [upgradable from: 22.08.6]\nlinux-libc-dev\/bullseye 22.11.1 armhf [upgradable from: 22.08.6]\nnala\/scar 0.12.0 all [upgradable from: 0.11.0]\nnano\/stable 5.4-2+deb11u2 armhf [upgradable from: 5.4-2+deb11u1]\nnginx-common\/stable,stable-security 1.18.0-6.1+deb11u3 all [upgradable from: 1.18.0-6.1+deb11u2]\nnginx-core\/stable,stable-security 1.18.0-6.1+deb11u3 armhf [upgradable from: 1.18.0-6.1+deb11u2]\nnginx\/stable,stable-security 1.18.0-6.1+deb11u3 all [upgradable from: 1.18.0-6.1+deb11u2]\nphp7.4-cli\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nphp7.4-common\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nphp7.4-fpm\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nphp7.4-json\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nphp7.4-opcache\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nphp7.4-readline\/stable,stable-security 7.4.33-1+deb11u1 armhf [upgradable from: 7.4.30-1+deb11u1]\nphp7.4\/stable,stable-security 7.4.33-1+deb11u1 all [upgradable from: 7.4.30-1+deb11u1]<\/code><\/pre>\n<pre><code>Reading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nCalculating upgrade... Done\nThe following packages will be upgraded:\n  armbian-bsp-cli-onecloud armbian-config armbian-firmware armbian-zsh base-files containerd.io distro-info-data docker-ce docker-ce-cli\n  docker-ce-rootless-extras docker-compose-plugin libapache2-mod-php7.4 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libksba8\n  libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip\n  libpixman-1-0 libtasn1-6 linux-dtb-edge-meson linux-image-edge-meson linux-libc-dev nala nano nginx nginx-common nginx-core php7.4 php7.4-cli\n  php7.4-common php7.4-fpm php7.4-json php7.4-opcache php7.4-readline\n40 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 130 MB of archives.\nAfter this operation, 602 kB of additional disk space will be used.\nDo you want to continue? [Y\/n]<\/code><\/pre>\n<pre><code>Configuration file '\/usr\/lib\/armbian\/armbian-apt-updates'\n ==&gt; File on system created by you or by a script.          \u7cfb\u7edf\u4e0a\u7531\u60a8\u6216\u811a\u672c\u521b\u5efa\u7684\u6587\u4ef6\u3002\n ==&gt; File also in package provided by package maintainer.   \u6587\u4ef6\u4e5f\u5728\u5305\u7ef4\u62a4\u8005\u63d0\u4f9b\u7684\u5305\u4e2d\u3002\n   What would you like to do about it ?  Your options are:  \u4f60\u60f3\u600e\u4e48\u529e\uff1f \u60a8\u7684\u9009\u62e9\u662f\uff1a\n    Y or I  : install the package maintainer's version      Y \u6216 I \uff1a\u5b89\u88c5\u5305\u7ef4\u62a4\u8005\u7684\u7248\u672c\n    N or O  : keep your currently-installed version         N \u6216 O \uff1a\u4fdd\u7559\u60a8\u5f53\u524d\u5b89\u88c5\u7684\u7248\u672c\n      D     : show the differences between the versions     D : \u663e\u793a\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02\n      Z     : start a shell to examine the situation        Z \uff1a\u542f\u52a8 shell \u6765\u68c0\u67e5\u60c5\u51b5\n The default action is to keep your current version.        \u9ed8\u8ba4\u64cd\u4f5c\u662f\u4fdd\u7559\u5f53\u524d\u7248\u672c\u3002\n*** armbian-apt-updates (Y\/I\/N\/O\/D\/Z) [default=N] ?<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>apt update apt list &#8211;upgradable apt upgrade aptit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[17],"class_list":["post-1228","post","type-post","status-publish","format-standard","hentry","category-linux","category-vps","tag-vps"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1228"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1228\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}