How to update package in Debian system?
To update the software packages in the Debian system, you can use the following command:
- Execute the following command to update the package list:
sudo apt update
- Then execute the following command to upgrade all available packages:
sudo apt upgrade
- To upgrade all the software packages installed in the system, you can use the following command:
sudo apt dist-upgrade
- If you only want to update specific software packages, you can use the following command:
sudo apt install <软件包名称>
- 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.