LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-31-2003, 01:58 PM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Question Where do RPM files go after I run them?


I'm not really sure of the Linux file organization. That being said, when I run an RPM package...where do the files go? I've used Windows and am able to specify and find the files to an application, however in Linux it seems as though the RPM puts it where it wants to.

I will admit to running the RPM from the Konquerer windows by right clicking and choosing install files. The RPM does it's stuff and that's it...no message etc... I don't know how to run the application. if you need to know what I am trying to install, that would be MySQL.

Thanks for the help.
 
Old 08-31-2003, 02:04 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
RPMs are prebuilt install files that contain path specifications. It is upto the writer of the rpm package where they go. To see where the files have gone:
rpm -ql packagename
 
Old 08-31-2003, 02:06 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That's a bit more in depth, but to answer your question generically first:

RPM's (and other's for that matter) choose to install it's components to generally accepted default locations. For the libs that'd be /usr/lib for the binary it's usually /usr/bin /usr/local/bin and/or /usr/sbin /usr/local/sbin (super user). But it really shouldn't matter because the location tends to be located within your $PATH variable. What this is, is a set of directories that are setup for you that are searched when the binary is typed into a run box, or into a terminal (command line).

So, to execute said binary, you'd either open up a run box in a desktop environment and type the name of the program:
mysql (just an example, this should only work for X applcations in reality)
And the program will run, OR
open up a terminal, and type the same thing to start the program from there. There is no need to know the location of all the files that were installed from running the RPM.

That said, MySQL is different

Normally you don't run mysql, but rather a front end for it. If you are experienced enough or have a set of instructions to pass to MySQL via the command line, that's fine. You'll need to get into mysql first, so open up a command line and type:
mysql -u username -p

And it should prompt you for the username's password. By default I believe the only user setup will be the root user, and this user has no password, so set one up immediately. You'll need to have the mysqld (daemon) running to connect to it, and all of this AND MORE should be covered in the documentation at www.mysql.com and/or your distro's documentation if that's where you got the RPM from

Cool
 
Old 08-31-2003, 02:12 PM   #4
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
Thanks both of you for the help. I'm trying to ween myself from the windows way of doing things...click and go.....then crash
 
  


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
Fedora Core 1 RPM files - when I run them, I can't read them! [42]Sanf0rd Linux - Software 0 05-30-2004 05:00 PM
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 05:24 PM
I can't run applications that have been installed from rpm files pisaac Red Hat 9 04-11-2004 10:42 AM
Cant run RPM files hargabyte Mandriva 1 12-22-2003 08:59 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM


All times are GMT -5. The time now is 06:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration