LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-27-2019, 12:20 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Rep: Reputation: 34
How to find the executable for a program CentOS 7


Greetings, I just installed the Moneydance finance program and I would like to try to create a short cut to the executable on the KDE desktop.

I have tried several forms of the find command but can't seem to find the executable file.

I know it works because when I go the the bottom left launcher on the home screen I can key in Moneydance and an entry comes up stating 'Run Moneydance' and it works, however this item can't be moved to the desktop as a short cut launcher.

Any Help is appreciated. Thanks
 
Old 04-27-2019, 12:47 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Have you tried

which Moneydance
or
locate Moneydance

Last edited by michaelk; 04-27-2019 at 03:41 PM.
 
1 members found this post helpful.
Old 04-27-2019, 08:25 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
Try whereis. From the man page:

Quote:
whereis - locate the binary, source, and manual page files for a command
 
Old 04-27-2019, 08:38 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
A slightly more advanced method:

Run the program, then open a terminal window. Find out what its process ID (PID) is, then find the executable. Here is an example; I find the executable for the named process:

Code:
$ pgrep named
12866
$ sudo ls -l /proc/12866/exe
lrwxrwxrwx 1 bind bind 0 Apr 27 06:43 /proc/12866/exe -> /usr/sbin/named
This will only work if you know the name. It may actually be called something else than Moneydance. The most reliable method is going into the KDE launcher configuration, but I don’t know where that is located.

Can you drag and drop the launcher entry for Moneydance? Or does hovering the mouse over it reveal something? Or right-clicking on the launcher entry?

If the software package that you installed is named something...Moneydance...something, this command displays all its files, which normally includes the executable:

Code:
rpm -ql something...Moneydance...something

Last edited by berndbausch; 04-27-2019 at 08:45 PM.
 
Old 04-27-2019, 08:55 PM   #5
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 233Reputation: 233Reputation: 233
Have you tried looking in /opt/Moneydance?
According to this URL, that's where it is installed to by default.
Quote:
After the download is finished, double-click the moneydance_linux_x86.deb file to install. The installer normally places Moneydance in /opt/Moneydance but the GUI-based installers prompt you for the location to install Moneydance.
Though it specifically mentions the Debian version, I'm assuming it is the same for every Linux version.

EDIT: Yes, that is where everything is installed to if you used the .rpm to install Moneydance.
Code:
strings Moneydance-2017-1.i386.cpio | grep -Fi '/opt/Moneydance/money'
14407:07070200000000000081ed0000000000000000000000015be03563000029cf000000000000000000000000000000000000001c000cb5de./opt/Moneydance/Moneydance

Last edited by individual; 04-27-2019 at 09:04 PM.
 
Old 04-29-2019, 10:56 AM   #6
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
Thanks all for your quick replies.

I’m still working on getting this issue resolved. I know that if I install the package using RPM I would be able to use RPM to remove the package but what if I used a “TAR GZ” file to do the install. How would I go about deleting the package then?

I tried that and saw a “.moneydance” file in my user home directory.

What would be the proper format of the find command in order to find all occurences of Moneydance?

Again, Thanks.
 
Old 04-29-2019, 11:00 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
If you compiled it from source, then have you tried "make uninstall" ?
 
Old 04-29-2019, 11:32 AM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by swamprat View Post
What would be the proper format of the find command in order to find all occurences of Moneydance?
As superuser:
Code:
find / -iname ‘*moneydance*’
The asterisks are wildcards. iname ignores case.

This only works if the executable’s name contains the string “moneydance”.
 
Old 04-29-2019, 01:44 PM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by swamprat View Post
if I used a “TAR GZ” file to do the install.
Most probably there is a readme inside that tar.gz. From the other hand without explaining how did you install hard to say anything.
 
Old 05-30-2019, 03:08 PM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
If you know one of the files within the package. https://gist.github.com/ruario/a3605...6ad39fe39e5385
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help - Renaming a program executable to another name. kaydknight Linux - Software 3 12-08-2005 04:09 AM
Running a Java executable class from another executable class LUB997 Programming 22 07-24-2005 04:57 AM
How can I use "Makefile.in" for building an executable program? wuzhong Linux - Networking 1 10-06-2004 10:00 AM
installed program via source, how can i find the executable? guest Linux - Newbie 3 05-04-2004 02:44 AM
how do I make a program executable through the command prompt? iammeuno Linux - Software 1 12-18-2003 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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