LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-19-2003, 09:47 AM   #1
Spica
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 6

Rep: Reputation: 0
Question 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
 
Old 08-19-2003, 09:58 AM   #2
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
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
 
Old 08-20-2003, 12:16 AM   #3
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
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!!
 
Old 08-20-2003, 02:34 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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.
 
Old 08-20-2003, 03:01 AM   #5
Spica
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up 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!
 
Old 08-20-2003, 04:51 AM   #6
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
You can also use the "whereis" command - I think you will find that it does the same thing.

regards

John
 
Old 08-20-2003, 02:07 PM   #7
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
i see..
 
Old 08-20-2003, 02:08 PM   #8
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
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..
 
Old 08-20-2003, 05:09 PM   #9
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
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
 
Old 08-20-2003, 07:02 PM   #10
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
thanks hfawzy ... so you mean if i go to the root dir and type 'which' itll show all of them?
 
Old 08-20-2003, 09:31 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 08-21-2003, 04:22 AM   #12
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
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).
 
Old 08-21-2003, 06:01 AM   #13
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
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
 
Old 08-21-2003, 06:34 AM   #14
secprovider
Member
 
Registered: Jul 2003
Distribution: Debian sarge
Posts: 40

Rep: Reputation: 15
Hi,

Another possiblity to find out where the files have been installed is

rpm -q -l package.rpm
 
Old 08-21-2003, 06:34 AM   #15
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
install can't find installed rpms vijayind Linux - Newbie 1 12-12-2004 05:32 AM
Installed software on Mandrake 10.0, and cant find it Kourosh Linux - Software 5 08-26-2004 07:37 AM
RPMS get installed where? Sporndog Linux - Newbie 6 04-06-2004 02:14 AM
where are RPMS installed? falconfighter Linux - Newbie 1 12-20-2003 11:28 AM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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