How to update package in Debian system?

To update the software packages in the Debian system, you can use the following command:

  1. Execute the following command to update the package list:
sudo apt update
  1. Then execute the following command to upgrade all available packages:
sudo apt upgrade
  1. To upgrade all the software packages installed in the system, you can use the following command:
sudo apt dist-upgrade
  1. If you only want to update specific software packages, you can use the following command:
sudo apt install <软件包名称>
  1. You can use the following command to check for available updates.
apt list --upgradable

Please make sure to back up important data before updating the software package and be prepared to enter the administrator password during the update process.

Leave a Reply 0

Your email address will not be published. Required fields are marked *