如何查看终端中可用的更新

我有一台运行Ubuntu 16的服务器,如何找出安全更新并应用它们?

如何选择我想要的?

我怎么知道他们是否会干扰运行应用程序?

谢谢

你可以跑

sudo apt update && apt list --upgradable 

这将首先更新包列表,然后显示可用的升级。

请尝试以下方法:

 sudo apt-get update # Fetches the list of available updates sudo apt-get upgrade # Strictly upgrades the current packages sudo apt-get dist-upgrade # Installs updates (new ones) 

如果您想查看更新来源的来源,请执行以下操作:

 sudo vi /etc/apt/sources.list 

或者,在Ubuntu下,打开Ubuntu软件中心并单击Updates选项卡,它将显示可在GUI内更新的所有内容。