LinuxQuestions.org
Register a domain and help support LQ
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 03-05-2004, 10:54 PM   #1
Coolioarchfiend
LQ Newbie
 
Registered: Mar 2004
Distribution: red hat
Posts: 4

Rep: Reputation: 0
Question where do new programs get installed by default in lredhat linux


hi ..
hey this might sound silly...but i was wondering where do rpms get installed by default in red hat linux..i recently installed real player and damn hell i cant find it anywhere. even in any reall player enabled(plugin i mean) website i cannot seem to start the real player automatically.

one more qtn ..i have a executable .bin file how do i exactly execute it
 
Old 03-05-2004, 11:00 PM   #2
questionasker
Member
 
Registered: Aug 2003
Location: North Carolina, USA
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359

Rep: Reputation: 30
first off, it depends on what you install. alot of apps have certain files in several locations, such as /usr/bin /usr/local /etc ...
just do:
whereis real player
at command line. it will list all the files for real. usually the executables file will be in /usr/bin (for me anyway).
for other question,
sh filename.bin
at command line. simple enough. (this actually varies a little depending on your shell)
 
Old 03-05-2004, 11:10 PM   #3
darkCanuck
Member
 
Registered: Mar 2004
Location: Edmonton, Alberta, Canada
Distribution: FreeBSD 4.10 RELEASE
Posts: 40

Rep: Reputation: 15
.bin files need to be made executable

That one I can help you with - since .bin files are similar to windows' exe files, they can potentially be a security hazard as they're easily run. So what you need to do is make it executable. To do this, pop open a terminal window and type:

chmod +x NAMEOFYOURBINFILE

chmod changes the file properties, such as read, write and, of course, execute. The +x makes it executable. After that, you can run the .bin file by double-clicking on it or typing:

./NAMEOFYOURBINFILE

at a terminal window. The ./ is important because it says run a file from my current directory. Normally executables are found via your PATH and since the directory you put your file (possibly your home directory or your desktop) isn't in your PATH, typing just NAMEOFYOURBINFILE won't do anything because it doesn't know what/where it is.

Does that help?

As far as where rpms and other installers put files, the best thing to do is read the README files that come with the program and/or the installation instructions on the website from where you downloaded it. I'm not very good with that part either but, usually, it goes into /usr/bin, /usr/local, /usr/local/bin or /opt. Most of the time it's at least put in a place that is already in your PATH so it should run from a terminal window. The frustrating part, of course, is sometimes you don't know the exact name of the executable.

It's not terribly efficient, and I'm sure someone will correct me, but you can always type:

find / -iname NAMEOFPROGRAM

and see if it finds it. The / says start from absolute root (so it'll take awhile) and the -iname means look for something with the following name and ignore case. That way, if looking for MozillaFirebird, it'll find it even if you put 'mozillafirebird' as the NAMEOFPROGRAM.

If you're *really* lucky, the rpm might have even installed a shortcut in your menubar.

Good luck, hope this helps!
 
Old 03-05-2004, 11:25 PM   #4
Coolioarchfiend
LQ Newbie
 
Registered: Mar 2004
Distribution: red hat
Posts: 4

Original Poster
Rep: Reputation: 0
hey thanx a lot dark ..for ur nice long patient reply...Phew...i thought this rpm thing might be just a piece of cake and i am just a fool not to know it...its nice to hear that rpms r somrtimes really a pain in the a**** .....well anyway is there a chance to change the default installation directory...i mean can i change any setting somewhere so that whenever i install it installs only in a specific directory. can it be done!!!!!!!!!
 
Old 03-05-2004, 11:57 PM   #5
darkCanuck
Member
 
Registered: Mar 2004
Location: Edmonton, Alberta, Canada
Distribution: FreeBSD 4.10 RELEASE
Posts: 40

Rep: Reputation: 15
-prefix switch

Hey no problem

I haven't done that too often myself but, looking into man rpm (which you type at a terminal and find out all there is about a command or program) it says you can add:

-prefix=PATHTODIRECTORY

ie:

rpm -i -prefix=/usr/local/putIt/here theRPMiwantToinstall.rpm

Now, you may be doing the double-click installation of the rpms. That's the easy way but you might want to try it from the terminal (shell) and use that prefix switch. -i means install.

One thing about Linux is that you really do have to be a bit of a reader to find out a lot of things. And I found that, even though people were nice enough to answer my questions about these sorts of things early on, too, you really don't "get it" until you read documentation and understand what all these strange switches really do, etc.

I'm not saying you have to become a power user to enjoy Linux, but that's probably part of its attraction in the first place, right?
 
Old 03-06-2004, 12:10 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Executable binaries are usually placed in /usr/bin or /usr/local/bin.
There may be documents and man pages installed in other locations.
You could execute: find /usr -cmin -5 after installing a program.
This will return with the names of files created in the last 5 minutes.

To see what an installed package provides, xmms in this example, you can type
rpm -q --provides xmms

You can also use the kpackage program to see exactly where files will get installed.
 
  


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
Linux Programs and Files: accessible by any installed distro? hanzj Linux - Newbie 10 04-19-2005 07:46 AM
Wich are the default passwords when Linux SuSe was installed gerargon Linux - General 2 12-10-2004 03:37 PM
How do i install programs that I have installed on windows on Linux? ologbon Linux - Newbie 2 06-25-2004 10:19 AM
How to get newly installed programs in programs list Brosky Linux - Software 5 02-06-2004 04:45 PM
Getting installed programs in the applications menu in mandrake linux inprogress Linux - Newbie 2 05-27-2003 05:17 PM


All times are GMT -5. The time now is 06:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration