LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2004, 04:09 PM   #1
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Rep: Reputation: 15
find filename after an install


heres something thats always bothered me about linux. i often times find myself looking for the command name that runs the program i just installed. for example linneighborhood uses the command LinNeighborhood to launch its program. i tried a few different things till i just happened to stumble upon it.

im wondering if there is like some type of standard place to find instructions for launching an app after i install it. i always read threw the README files and install files. but often its just skipped.

any suggestions?
 
Old 06-14-2004, 05:22 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, one problem is that your locate DB only gets updated once per day (usually) so you can't use 'locate' to find it right away. You can use 'find' but it will take a very long time because it looks at every file on your system.

If you keep in mind that all executables go into a /{s}bin directory, you can try something like:
Code:
APP="program_name"; for i in /bin /sbin /usr/bin /usr/sbin /usr/local/bin ; do ls $i/*$APP*; done
where you replace "program_name" with what you just installed. This is not fool proof however, as you may need to change "program_name" a few times with differrent capitalizations etc...

HTH
 
Old 06-14-2004, 07:10 PM   #3
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Original Poster
Rep: Reputation: 15
hmm, well thats interesting. i know ive asked a few linux uesrs at my school and they usually just guess too. i figured something this basic would be easy to find. too bad. :/
 
Old 06-14-2004, 10:32 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, usually a guess will work, in probably 90% of software packages, if it's called "foobarbaz-3.14.tar.gz" the name to start the app is "foobarbaz" but not always.
 
Old 06-15-2004, 12:20 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Just a note, of course, that you can run 'updatedb' (as root) whenever you'd like.

And, depending on your package management system, you can probably query what was installed and look for whatever ended up in a bin directory. Like if I compile 'xlockmore' on Slack and install it with checkinstall:

Code:
~
1017>> cdp                                                                     

/var/log/packages
1018>> grep bin xlockmore-5.10-i386-1                                          
usr/local/bin/
usr/local/bin/xlock
usr/local/bin/xmlock
In that case, guessing 'xlockmore' would be wrong but that or just looking in the source directory and seeing what executables were produced by the compile process and/or looking at the makefile in the 'install' section to see what was sent where would do. I'm sure rpms have some kind of query option.

I was thinking this was different somehow when I started writing this post but I guess it's just a variation of what bulliver said.
 
  


Reply



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
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 05:30 PM
configure: error: cannot find install-sh or install.sh in . ./.. ./../.. jialin Debian 9 12-01-2009 08:36 PM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM
how to install linux with iso filename geh_l Linux - Newbie 6 01-26-2005 06:01 PM
filename- and filename~ files? slinky2004 Linux - Newbie 5 10-17-2004 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 PM.

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
Open Source Consulting | Domain Registration