5

I used sudo apt-get install mercurial to install Hg.. where did it put the executable? I need to specify the location in Netbeans.

Is there a general way to find where apt-get installs things? (Before the install would be nice, too.)

Pete
  • 367
  • 1
  • 6
  • 15

1 Answers1

12

To list files installed by a package execute:

dpkg -L package

Also if the binary is at the search PATH you should be able to locate it with:

which binary_name
João Pinto
  • 17,029
  • 5
  • 55
  • 68
  • 1
    Awesome on both counts... thanks. `/usr/bin/hg` – Pete Dec 31 '10 at 02:14
  • 4
    Just for completeness, the inverse operation is also extremely useful -- I have a program or file, I know where it is, what package installed it? "dpkg -S " will tell you. – divegeek Dec 31 '10 at 04:55