100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > ubuntu更新软件包命令_从Ubuntu命令行查看哪些更新的软件包可用

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

时间:2024-02-16 19:08:11

相关推荐

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 tobe 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退出,一切就完成了!

翻译自: /howto/ubuntu/see-what-updated-packages-are-available-from-ubuntu-command-line/

ubuntu更新软件包命令

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。