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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
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!!
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..
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.