CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Rep:
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.
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.
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.
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:
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.