Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I see that apturl is installed on my computer, but I can't seem to locate it.

Can anybody tell me how I can find an installed application on this computer? I am getting very frustrated.

share|improve this question
2  
I believe apturl is a command-line program. Find out more by reading the manual page from the terminal: man apturl –  chili555 Jul 22 at 22:06
    

4 Answers 4

Not all programs are graphical, and thus they will not be in your menu.

You can locate them with several commands

which apturl
locate apturl

locate uses a database that is automatically updated every 24 hours. To manually update,

sudo updatedb

If your command is not on your path, use find

find */*bin -name apturl

See also What is the equivalent to the Windows "Program Files" folder? (Where do things go when I install them?)

Learning to use programs on the command line takes a little time. IMO it is invaluable to learn to read the man pages. They seem like Greek at first, but in time they are invaluable.

You can also try -h or --help

less --help
share|improve this answer

To find out where a program is installed use the whereis command in an open terminal like this:

whereis apturl

the output should look like this:

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

When an app is in the bin or sbin folders it can be started in a terminal by using the name of the file stored in bin or sbin like this

apturl

For more info on how to use this command I have taken the following from http://manpages.ubuntu.com/manpages/precise/man8/apturl.8.html

you can access this by typing the following in a terminal:

man apturl

USAGE

   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.

EXAMPLES

   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.
share|improve this answer

The most easier way is to check the installed files of the package. Ubuntu Software Center doesn't offer this information, so you have to, either, use the command line or install a real package manager like Synaptic.

From the command line

dpkg -L package

Where package is the name of the package you installed. It should show you a list of all the files that were unpackaged.

$ 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

Now, to find the executable or binary, you should look for the one that have "bin" somewhere. So, lets grep it:

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

There you go.

Using the GUI

For this you need to install a package manager. Synaptic is the best that it comes to mind, so, lets use it (there's also packagekit, but it requires to install many dependencies). So, first install Synaptic, search for your package, right click it, select "Properties", then find the "Installed files" tab, should show you something like this:

click to enlarge

(click to enlarge)

But all of this isn't really necessary for apturl

For your specific package, apturl, this isn't really useful. apturl runs from your web browser or messaging application as plugin. It was meant so you can just click a link and the program started the installation for you. If you have the package installed, just do whatever was the next steps in the instructions you were following. Nothing else needs to be done with apturl.

share|improve this answer

A while ago, I made a python script to list all installed applications (with a .desktop file). It produces a list like:

Application name || found command
for example:
....
RedNotebook || rednotebook
Configure Wine || winecfg
Software & Updates || software-properties-gtk
Root Terminal || gksu /usr/bin/x-terminal-emulator
Google Drive scope for Unity || 
Document Viewer || evince %U
....

The script:

#!/usr/bin/python3
import os
dtfile_list = os.listdir("/usr/share/applications")
for item in dtfile_list:
    if item.endswith(".desktop"):
        with open("/usr/share/applications/"+item) as commandlist_source:
            searchlines = commandlist_source.readlines()
        try:
            command_data = ([
                line for line in searchlines if line.startswith("Name=")
                ][0].replace("Name=", "").replace("\n", ""),
                            [
                line for line in searchlines if line.startswith("Exec=")
                ][0].replace("Exec=", "").replace("\n", ""))
            print(command_data[0], "||", command_data[1])
        except Exception:
            pass

Paste it in an empty document, save it as find_command.py, run it by the command:

python3 /path/to/find_command.py
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.