ubuntu更新软件包命令_从Ubuntu命令行查看哪些更新的软件包可用

ubuntu更新软件包命令

ubuntu更新软件包命令

If you are running Ubuntu Server, or even if you prefer to administer your desktop from the command line, you will want to be able to see what packages are available for update. Ubuntu includes a great package management tool called Aptitude that gives you an interactive environment from which to install/upgrade packages.

如果您正在运行Ubuntu Server,或者甚至希望从命令行管理桌面,您将希望能够查看哪些软件包可用于更新。 Ubuntu包含一个称为Aptitude的出色软件包管理工具,可为您提供一个用于安装/升级软件包的交互式环境。

Launch the aptitude tool from the terminal using the following command. Note that you can view the package updates without sudo, but you usually can’t install them unless you do.

使用以下命令从终端启动aptitude工具。 请注意,您可以不使用sudo来查看软件包更新,但是除非您这样做,否则通常无法安装它们。

sudo aptitude

须藤才华

This will bring you to the console mode application window:

这将带您进入控制台模式应用程序窗口:

 To navigate down through the menus, use the Enter key. To go back up through the menus, use Q

要向下浏览菜单,请使用Enter键。 要返回菜单,请使用Q

We’re going to check what upgradable packages are available by going down through that menu:

我们将通过浏览该菜单来检查可用的可升级软件包:

It looks like there’s a new version of gnupg. I don’t really care about updating that utility, but we’ll go through it anyway. To select the new version for installation, hit the + key to select it, and then hit G to install. You will be taken to this confirmation screen, showing you what will be installed.

好像有一个新版本的gnupg。 我并不是很在意更新该实用程序,但是我们还是会继续进行。 要选择要安装的新版本,请按+键将其选中,然后按G进行安装。 您将被带到此确认屏幕,向您显示将要安装的内容。

Note that in the Packages to be upgraded section, there are two packages that I had selected. Hit the G key again to install the packages. Use Q to quit, and you are all done! 

请注意,在“要升级的软件包”部分中,我选择了两个软件包。 再次按G键以安装软件包。 使用Q退出,一切就完成了!

翻译自: https://www.howtogeek.com/howto/ubuntu/see-what-updated-packages-are-available-from-ubuntu-command-line/

ubuntu更新软件包命令

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值