LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2011, 12:50 AM   #1
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Rep: Reputation: 30
Command to run program when package doesn't match binary


Hello,

I have a weird/stupid question. How do you know what command would start an application after installing it, if the synaptic package name doesn't match?

For example google chrome and lmsensors. The first appears as Chrome in Synaptic and the second as lmsensors, but to run them you have to type google-chrome for the first and sensors for the second in the console to start them.
When I did locate sensors or locate chrome/chromium, nothing came up in the search that would hint me that I need to run those commands. I had to rely on a google search and look for someone else's answer. Is there a better way, one that I can figure it out on my own?
 
Old 07-12-2011, 01:06 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by alagenchev View Post
Hello,

I have a weird/stupid question. How do you know what command would start an application after installing it, if the synaptic package name doesn't match?

For example google chrome and lmsensors. The first appears as Chrome in Synaptic and the second as lmsensors, but to run them you have to type google-chrome for the first and sensors for the second in the console to start them.
When I did locate sensors or locate chrome/chromium, nothing came up in the search that would hint me that I need to run those commands. I had to rely on a google search and look for someone else's answer. Is there a better way, one that I can figure it out on my own?
You can get a list of files that are part of an installed package in synaptic and from this one can deduce the name of the command.

This is basically the output of
Code:
dpkg -L pkgname
For instance, lm-sensors is the Ubuntu package name and the output of dpkg -L is:

Code:
/etc/init.d/lm-sensors
/usr/bin/sensors
/usr/bin/sensors-conf-convert
/usr/sbin/isadump
/usr/sbin/isaset
/usr/sbin/sensors-detect
/usr/share/doc/lm-sensors/README.Debian.gz
/usr/share/doc/lm-sensors/applications
/usr/share/doc/lm-sensors/changelog.Debian.gz
/usr/share/doc/lm-sensors/changelog.gz
/usr/share/doc/lm-sensors/chips/MODPARMS.gz
/usr/share/doc/lm-sensors/chips/SUMMARY.gz
/usr/share/doc/lm-sensors/copyright
/usr/share/doc/lm-sensors/donations
/usr/share/doc/lm-sensors/examples/daemon/healthd.sh
/usr/share/doc/lm-sensors/examples/hotplug/README.p4b
/usr/share/doc/lm-sensors/examples/hotplug/unhide_ICH_SMBus
/usr/share/doc/lm-sensors/examples/tellerstats/README
/usr/share/doc/lm-sensors/examples/tellerstats/gather.sh
/usr/share/doc/lm-sensors/examples/tellerstats/gnuplotscript.tmpl
/usr/share/doc/lm-sensors/examples/tellerstats/index.shtml
/usr/share/doc/lm-sensors/examples/tellerstats/tellerstats.conf
/usr/share/doc/lm-sensors/examples/tellerstats/tellerstats.sh
/usr/share/doc/lm-sensors/fan-divisors
/usr/share/doc/lm-sensors/temperature-sensors
/usr/share/doc/lm-sensors/vid
/usr/share/man/man1/sensors-conf-convert.1.gz
/usr/share/man/man1/sensors.1.gz
/usr/share/man/man5/sensors.conf.5.gz
/usr/share/man/man8/isadump.8.gz
/usr/share/man/man8/isaset.8.gz
/usr/share/man/man8/sensors-detect.8.gz
From this, you can see that you can use
Code:
sensors
to call /usr/bin/sensors

and you can use
Code:
sudo sensors-detect
to call /usr/sbin/sensors-detect
 
1 members found this post helpful.
Old 07-12-2011, 09:47 PM   #3
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Thanks I think this describes exactly what I was looking for
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to run c program , error : cannot execute binary file soni_silver17 Linux - Software 4 03-30-2009 09:45 AM
How to run a binary program under Linux zhangke Linux - Newbie 14 01-18-2009 03:56 PM
rpmdb: Program version 4.2 doesn't match environment version jhibbets Red Hat 2 05-29-2007 10:57 PM
gtkradiant: "This editor binary doesn't match..." spuzzzzzzz Linux - Software 0 10-10-2004 04:17 AM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 09:19 AM


All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration