what is the difference between apt-get update and apt-get upgrade
时间: 2024-06-05 21:12:35 浏览: 184
ROS apt-get install -f无效后解决方案
`apt-get update` is used to update the package lists for upgrades and new packages that are available in the repositories. It downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.
`apt-get upgrade`, on the other hand, is used to actually upgrade the installed packages on the system. It installs newer versions of packages that are already installed on the system. It also installs any required dependencies for these packages.
In summary, `apt-get update` updates the package lists, while `apt-get upgrade` installs newer versions of the already installed packages.
阅读全文