Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-29-2009, 03:22 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 20

Rep: Reputation: 0
rpm installation directory?


if i install an rpm package " rpm -i <file-name>" , is it getting installed in any particular folder in the system ? Im thinking in windows prespective so please pardon me

i had to install cronolog on RHEL 5.1, i untar the tar file , but if i try to run the file, i get the error saying "-bash: ./cronolog: cannot execute binary file"

i was told by someone to install rpm package, but i did it. my question is . if i install rpm, will the system automatically get the cronolog file ? i had to provide cronolog path in the config file and the one i know now is the file i got after untar.. is it possible to find the rpm installed cronolog file ?

Old 12-29-2009, 03:46 AM   #2
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
rpm packages are installed into a fixed path, you cannot specify the install directory. If you wanna know where the files go after installation, you can run:
# rpm -ql <packagename>
This will list all the files installed by the package.
Old 12-29-2009, 04:40 AM   #3
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
A little add-on to the previous post by ongte. You can also check where files will be installed prior to install a RPM package (provided you've downloaded it) using the -p option of the rpm command, e.g.
$ rpm -qlp cronolog-1.6.2-1.el5.rf.i386.rpm
This list tells you that executables will be installed in /usr/sbin. Since this is a directory listed in the PATH environment variable of the sistem administrator only, you can run cronolog as root and not as a regular user.

To understand where software is usually installed, you have to understand the Filesystem Hierarchy Standard, that is how a *nix system is organized and what every item under the origin of the directory tree is intended for. You can take a look at one of the documents here or at the Linux Filesystem Hierarchy HOWTO. Cheers!
Old 12-30-2009, 04:15 PM   #4
LQ Newbie
Registered: Aug 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you, that worked !!

I ran $ rpm -ql cronolog-1.6.2-1.el5.rf

and found cronolog under /usr/sbin and was able to run the file without any error

thanks again

- raj


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
rpm -ihv hp_qla2x00src- during Qlogic driver installation Dennisliu Linux - Software 5 09-10-2008 06:08 PM
Creating an RPM that installs in a directory made by another RPM erinfin Linux - Software 4 11-15-2007 06:10 PM
Hosed my rpm installation (i.e. "rpm -e rpm") Mad Scientist Fedora 6 03-02-2007 01:42 AM
Rpm installation and directory problem thebiggiantmouse Linux - Software 4 06-21-2006 01:58 AM
specifying installation directory in RPM ? Linuxuser_81 Linux - Newbie 1 10-21-2005 09:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration