如何查找和运行已安装的应用程序?

我看到apturl安装在我的电脑上,但我似乎无法找到它。

谁能告诉我如何在这台电脑上找到已安装的应用程序? 我变得非常沮丧。

并非所有程序都是图形化的,因此它们不会出现在菜单中。

您可以使用多个命令找到它们

which apturl locate apturl 

locate使用每24小时自动更新的数据库。 要手动更新,

 sudo updatedb 

如果您的命令不在您的路径上,请使用find

 find */*bin -name apturl 

另请参阅什么是Linux等效于Windows的程序文件?

学习在命令行上使用程序需要一点时间。 IMO学习阅读手册页是非常宝贵的。 它们起初看起来像希腊语,但它们在时间上非常宝贵。

你也可以试试-h或–help

 less --help 

要找出安装程序的位置,请在打开的终端中使用whereis命令,如下所示:

 whereis apturl 

输出应如下所示:

 apturl: /usr/bin/apturl /usr/bin/X11/apturl /usr/share/apturl /usr/share/man/man8/apturl.8.gz 

当一个应用程序在bin或sbin文件夹中时,它可以通过使用bin或sbin中存储的文件的名称在终端中启动

 apturl 

有关如何使用此命令的更多信息,我从http://manpages.ubuntu.com/manpages/precise/man8/apturl.8.html获取以下内容

您可以通过在终端中键入以下内容来访问它:

 man apturl 

用法

  apturl just needs an URL conforming with the apt-protocol in order to work. Additionally, it recognizes the following options: -p, --http-proxy Use the given HTTP proxy in order to download the packages. 

例子

  apturl apt:pidgin,pidgin-plugin-pack Installs Pidgin and Pidgin Plugin Pack (if the user confirms). apturl apt:freevial?section=universe Enables the "universe" component and installs package Freevial. apturl apt:adobe-flashplugin?channel=lucid-partner Enables the "partner" repository and installs package adobe- flashplugin. Available repositories are listed in /usr/share/app-install/channels/. apturl apt+http://launchpad.net/~mvo/ppa?package=2vcard Installs 2vcard from the indicated PPA (if the user confirms), and afterwards asks if the PPA should be removed again or it should remain enabled. Warning: This is currently disabled because of security concerns. 

最简单的方法是检查包的已安装文件。 Ubuntu软件中心不提供此信息,因此您必须使用命令行或安装像Synaptic这样的真实软件包管理器。

从命令行

 dpkg -L package 

其中package是您安装的软件包的名称。 它应该显示所有未打包的文件的列表。

 $ dpkg -L apturl /usr/bin/apturl-gtk /usr/lib/python3/dist-packages/AptUrl/gtk/GtkUI.py /usr/lib/python3/dist-packages/AptUrl/gtk/__init__.py /usr/lib/python3/dist-packages/AptUrl/gtk/backend/InstallBackendAptdaemon.py /usr/lib/python3/dist-packages/AptUrl/gtk/backend/InstallBackendSynaptic.py /usr/lib/python3/dist-packages/AptUrl/gtk/backend/__init__.py /usr/share/apturl/apturl-gtk.ui /usr/share/doc/apturl/changelog.gz /usr/share/doc/apturl/copyright /usr/share/gconf/schemas/apturl.schemas /usr/share/man/man8/apturl-gtk.8.gz 

现在,要找到可执行文件或二进制文件,你应该找一个在某处有“bin”的文件。 所以,让我们来吧:

 $ dpkg -L apturl | grep bin /usr/bin/apturl-gtk 

你去吧

使用GUI

为此,您需要安装包管理器。 Synaptic是它想到的最好的,所以,让我们使用它(也有packagekit,但它需要安装许多依赖项)。 所以,首先安装Synaptic,搜索你的软件包,右键单击它,选择“Properties”,然后找到“Installed files”选项卡,应该显示如下内容:

点击放大

(点击放大)

但所有这些对于apturl来说并不是必需的

对于您的特定包,apturl,这不是很有用。 apturl作为插件从您的Web浏览器或消息传递应用程序运行。 这意味着您只需单击一个链接,程序就会为您启动安装。 如果您安装了软件包,只需执行您所遵循的说明中的后续步骤即可。 apturl不需要做任何其他事情。