LinuxQuestions.org
Help answer threads with 0 replies.
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 06-13-2011, 12:58 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Where Did My Installed Program Goto?


I installed a bin file

chmod a+x nameoffile.bin
sudo ./nameoffile.bin

After installation I dunno where the file went. Can anyone help?
 
Old 06-13-2011, 02:15 AM   #2
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
Quote:
Originally Posted by hitmen View Post
I installed a bin file

chmod a+x nameoffile.bin
sudo ./nameoffile.bin

After installation I dunno where the file went. Can anyone help?
What type of file is nameoffile.bin.

You can use the command "file nameoffile.bin" to find out the type.
If it is a shell script see what it is doing.
If you are looking for a particular command, you can use "which <command name>" to find out the path.

I am not sure the answer above will help you. Please give more information of the executable file you are running.
 
Old 06-13-2011, 02:47 AM   #3
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
Look under /opt or /usr/local/bin
 
Old 06-13-2011, 03:25 AM   #4
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Rep: Reputation: 27
This may be obvious, but you might want to look in the directory where the bin file was located too(just in case you already haven't).
 
Old 06-13-2011, 04:22 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
from only this
" name of file.bin "

how the heck could we know where it installed we do NOT KNOW WHAT IT IS
all that says is some unknown binary file using an UNKNOWN script to install to an UNKNOWN location

for all we know you installed a rootkit and your computer is now PWN and a zombiebot
 
Old 06-13-2011, 10:51 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,788
Blog Entries: 17

Rep: Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316
"man whereis" and "man locate" in a terminal should give you the tools you need.

Last edited by frankbell; 06-13-2011 at 10:53 PM.
 
Old 06-14-2011, 06:03 AM   #7
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
I am installing PacketTracer52_i386.bin that is on my desktop.

The installation was successful but I cant find it using whereis PacketTracer52 and locate PacketTracer52.

I know the installation was successful because this is prompted if I TRY to reinstall it again:

The installer has detected an existing PacketTracer package on the system. Please use the following command as the super user:
>dpkg -r PacketTracer
to uninstall the package and try again.

But where is my PacketTracer program now?
 
Old 06-14-2011, 06:06 AM   #8
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
which packet-tracer
locate packet-tracer
locate tracer

Please try any of the above.
 
Old 06-14-2011, 06:51 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,738

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
I gave this one a try
http://s680.hotfile.com/get/a65647d5...taller-deb.bin
> PacketTracer521_i386_no_tutorials_installer-deb.bin
http://hotfile.com/dl/27483936/f27b3...taller-deb.bin

File location : /usr/local/PacketTracer5/
The executable : /usr/local/PacketTracer5/bin/PacketTracer5

..

Last edited by knudfl; 06-14-2011 at 06:53 AM.
 
Old 06-14-2011, 07:27 AM   #10
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
c@c-laptop:~$ locate PacketTracer

c@c-laptop:~$ whereis PacketTracer
PacketTracer:

c@c-laptop:~$ whereis PacketTracer5
PacketTracer5: /usr/local/PacketTracer5

c@c-laptop:~$ locate PacketTracer5

I dont understand. Why does the search "PacketTracer" gives no output while only whereis PacketTracer5 gives an output. (locate does no help at all!)
 
Old 06-14-2011, 07:29 AM   #11
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
Probably the locate db is not updated..

Run updatedb and then test the locate command.

--Rameez
 
Old 06-14-2011, 07:42 AM   #12
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
c@c-laptop:~$ updatedb
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
 
Old 06-14-2011, 07:43 AM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
Run it as root.
Code:
sudo updatedb
Kind regards
 
Old 06-14-2011, 07:53 AM   #14
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
ok thanks. It works

but I wish to ask how do you know that updatedb updates the locate command?

Thanks.

I will close this soon.
 
Old 06-14-2011, 07:57 AM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
When there are no errors, the database will be updated.

Kind regards
 
  


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
BASH goto dkrysak Programming 35 03-21-2013 11:22 AM
Goto Definition sethu.psgtech Linux - Newbie 4 01-26-2010 02:31 AM
goto usage bru Programming 5 03-09-2004 04:44 AM
Goto command? batfoot Linux - General 4 08-26-2003 08:17 PM
how can I understand whether a program installed or not installed? emin Linux - Newbie 2 10-13-2002 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 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