Linux - NewbieThis 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
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.
I'm relatively new to Linux (Mandrake) but I've been doing okay for most of the time.
Just this really (embarrassing) simple question: I installed some Mandrake 9.1 binaries, namely Winex and Gens (the Genesis emulator gone open source). Both were in rpm format, so I simply double-clicked on them. Both of them installed without errors.
Now here are my questions: where have they been installed? How can I run those programs?
Welcome,
When you install an rpm package, the executable file is almost all the time on /usr/bin.
To run a program, just open a console and type the program name.
Tip : To get all files that an rpm package will install, type rpm -qpl <package name> in a terminal.
Good luck
hfawzy
yeah in linux... its not like windows where thes a file located in program files and you have to open it... kinda.. you can run it from terminal and it sends a command to open it or you can open it from icons [links/shortcuts] to the file.. if you click on the 'file' itll open the text code [but theres lotsa files normally] because its open source so everythings code but when you install it... it adds the information to all the important files so for example after you install xmms [though it normally comes installed ] you type xmms inside a terminal and itll open it because when you installed it it added some code inside all the files... etc etc .. well you get the picture... sorry for the lecture] and then basically your only option is to run it in a terminal/run prompt.. by typing the thing to run it... normally the program name or something [ beware... ITS CASE SENSETIVE.. evertyhing in linux is .. ] so you type winex in a terminal or the run prompt or you can make an icon/menu item that executes command: winex and labeled whatever you want... thers also a list somewhere... and normally they pop up inside the menu too [like K menu for KDE or startmenu for windows.. [that kinda menu..]] Well good luck mate!!
Both executables were indeed in the usr/bin directory. And they both worked perfectly. The '§ which' command will be helpful in the future! Thanks for the help!
can you use which to find all the executable files that exist?.. or is there a command to that extent? so like you nkow all the programs you have existing on your comp..
the which command searches for all executable files in the directories listed in the environment variable PATH. so if all your programs are located in a directory listed in the PATH env variable, this command will let you know if the given program is installed on your system..
regards,
hfawzy
Actually, the which command runs from within the shell and that tells you location of the command that would run if you had typed it in. Some commands are integrated into the shell and these will run by default rather than the same command in /bin for instance.
The whereis command looks up the location its database, and may not be updated if you are looking for a new file.
If you installed new software, different components may be installed in different places. The command you want to use is the find command.
find / -cmin -10
The above command will locate all files created within the last 10 minutes.
What if you extract a tar.gz and run a configure or install.sh from that directory. Will these files also be in usr/bin? I assume the rpm -qpl won't work in this circumstance? Also how do you then uninstall said program(s).
When you run configure, all newly created files (Makefiles...) are added in your current working directory. But when you run make install, executables usually go in PREFIX/bin, config files in PREFIX/etc, man pages in PREFIX/man, icons in PREFIX/share/icons etc...
Note that the default prefix when you install a program from source is /usr/local and when you install an rpm package, the default one is /usr.
When installing a software from source you can change the prefix by adding --prefix to the configure script. For instance if I want to install a program on /opt/foo, I run "./configure --prefix=/opt/foo", then make and make install . In this directory will be added a "bin" directory that will contain executables, a "share" directory ...
If you compiled/installed from source you may be able to uninstall by entering the source directory and typing make uninstall. Not all apps include this target, but if it is present it's probably the best solution. You may still have to eliminate some config files afterward.
I recommend you to download the checkinstall program from http://asic-linux.com.mx/~izto/checkinstall. This program will let you build your own rpm package from the tarball you downloaded. This is good because if you want to uninstall the program you built and installed using checkinstall, just type "rpm -e <program name>" and this will delete all program files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.