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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
08-19-2003, 09:47 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 6
Rep:
|
Where to find my installed rpms in Mandrake 9.1?
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?
Thanks
|
|
|
08-19-2003, 09:58 AM
|
#2
|
Member
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163
Rep:
|
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
|
|
|
08-20-2003, 12:16 AM
|
#3
|
Member
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189
Rep:
|
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!!
|
|
|
08-20-2003, 02:34 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
If you want to find where any executable is on Linux you can do
$ which <executable>
e.g
$ which winex
will tell you where winex is.
|
|
|
08-20-2003, 03:01 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 6
Original Poster
Rep:
|
Thanks a lot
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!
|
|
|
08-20-2003, 04:51 AM
|
#6
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Rep:
|
You can also use the "whereis" command - I think you will find that it does the same thing.
regards
John
|
|
|
08-20-2003, 02:07 PM
|
#7
|
Member
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189
Rep:
|
i see..
|
|
|
08-20-2003, 02:08 PM
|
#8
|
Member
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189
Rep:
|
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..
|
|
|
08-20-2003, 05:09 PM
|
#9
|
Member
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163
Rep:
|
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
|
|
|
08-20-2003, 07:02 PM
|
#10
|
Member
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189
Rep:
|
thanks hfawzy ... so you mean if i go to the root dir and type 'which' itll show all of them?
|
|
|
08-20-2003, 09:31 PM
|
#11
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
08-21-2003, 04:22 AM
|
#12
|
Senior Member
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070
Rep:
|
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).
|
|
|
08-21-2003, 06:01 AM
|
#13
|
Member
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163
Rep:
|
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 ...
regards,
hfawzy
|
|
|
08-21-2003, 06:34 AM
|
#14
|
Member
Registered: Jul 2003
Distribution: Debian sarge
Posts: 40
Rep:
|
Hi,
Another possiblity to find out where the files have been installed is
rpm -q -l package.rpm
|
|
|
08-21-2003, 06:34 AM
|
#15
|
Member
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163
Rep:
|
Quote:
Also how do you then uninstall said program(s)?
|
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.
|
|
|
All times are GMT -5. The time now is 08:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|