如何通过终端安装软件中心提供的软件?
谁能帮我提供终端命令来下载和安装软件中心提供的软件?
其实我正在搜索命令下载并通过终端安装KDbg(调试器)。
短而甜蜜:
在终端中运行以下命令以安装kdbg
:
sudo apt-get update sudo apt-get install kdbg
广义解决方案:
apt-get
是用于安装/更新/删除软件的命令行包管理工具。 要安装任何软件,您可以运行以下命令:
sudo apt-get update # This updates/synchronizes the package index files with the update server (not always necessary to run this command, but preferred) sudo apt-get install # This command actually installs the package
大多数情况下
与要安装的软件的名称相同。 但是,如果你似乎无法弄清楚包的名称,那么你有几个选择。
假设您要安装dconf编辑器 – 它的包名称与其名称不同。
1. GUI – 使用Ubuntu软件中心:
搜索要安装的软件,然后查看“ Version
字段。 它由两个由空格分隔的部分组成,第一部分在空格之前是包名称,第二部分给出版本信息。 对于dconf编辑器,包名称为dconf-tools
。
2.命令行 – 使用apt-cache
:
我们以apt-cache search
运行该命令
$ apt-cache search dconf dconf-gsettings-backend - simple configuration storage system - GSettings back-end dconf-service - simple configuration storage system - D-Bus service dconf-tools - simple configuration storage system - utilities libc-bin - Embedded GNU C Library: Binaries libdconf-dbg - simple configuration storage system - debugging symbols libdconf-dbus-1-0 - simple configuration storage system - D-Bus library libdconf-dbus-1-dbg - simple configuration storage system - D-Bus debug symbols libdconf-dbus-1-dev - simple configuration storage system - D-Bus development files libdconf-dev - simple configuration storage system - development files libdconf-doc - simple configuration storage system - documentation libdconf1 - simple configuration storage system - runtime library asoundconf-gtk - Applet to select the default ALSA sound card dconf - collect system information libdconf-qt-dev - dconf Qt bindings (development files) libdconf-qt0 - dconf Qt bindings (library) libgrabcd-readconfig-perl - rip and encode audio CDs - common files libmed-tools - Runtime tools to handle MED files xnetcardconfig - A simple network card configuration wizard for X
这会在第三位列出dconf-tools
。 不是很有帮助,但在大多数情况下仍然足够好。
我几乎总是倾向于使用apt-cache
,如果不满意,那么使用Ubuntu软件中心。
提示:使用apt-get
模拟:
如果不太确定,请使用-s
标志和apt-get
来模拟命令的工作。 一定要把旗帜放在最后。 因此,运行命令为:
sudo apt-get install -s
用CTRL + ALT + T打开你的终端,然后输入
sudo apt-get install kdbg
这将安装您需要的软件。
如果您想了解有关在Ubuntu中安装任何软件的更多信息,我建议您阅读安装软件文档。
我希望这能帮到您。