List all upgradable applications. Upgrade all applications assuming yes to each prompt.
时间: 2023-07-29 20:11:41 浏览: 119
可升级的程序(范例)
To list all upgradable applications, you can use the following command in the terminal:
```
sudo apt-get update && sudo apt-get upgrade --dry-run
```
This command will update the package lists and then simulate the upgrade process, listing all the packages that are upgradable without actually performing the upgrade.
To upgrade all applications, assuming "yes" to each prompt, you can use the following command:
```
sudo apt-get update && sudo apt-get upgrade -y
```
This command will update the package lists and then upgrade all the packages that can be upgraded without prompting for confirmation. The "-y" option will automatically answer "yes" to any prompts that may come up during the upgrade process. Note that this will upgrade all packages, including those that may have compatibility issues or other potential problems, so it's important to verify that the upgrade won't cause any issues before proceeding.
阅读全文