Latest LQ Deal: Latest LQ Deals
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 10-29-2006, 10:44 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
Is installing packages like Windows default?

First of all, are all of the below listed packages are required for a specific service I am trying to run.

I am not extremely familiar with linux, but I do have my own server, root access etc, and have installed packages before.

My main concern is: does the directory I install the package place the other executables in the correct dirs? for example, if I install PHP in /mycreateddir/ will it function the same as if I installed it in: usr/lib? .. I am asking becuase in Windows, if you install an application from any directory, the default directory which all applications with be installed no matter where you initiate the install is c:/program files/ and all files, updates, etc are done in the required locations..

Does Linux RedHat Enterprize 4 follow a similar pattern?

And does it matter where I install the following packages?

1.) PEAR
2.) cURL for PHP 4.3+ and higher SSL support
3.) PHP Open SSL extension for PHP 4.3.0+ and higher
4.) PHP Perl Compatible Regular Expressions extension for PHP 4.3.0+ and higher

Thanks for any recommendations, assistance, tips etc! SOS
Old 10-29-2006, 10:49 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Assuming you have RPM packages for these, the rpm installer will put the files into the correct place when you run them. It does not matter which directory you install the RPM from. If you are compiling from source, you generally specify the destination directory by using the --prefix argument to configure.
Old 10-29-2006, 11:16 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 10

Original Poster
Rep: Reputation: 0

thanks for the information. that does help.

i assume when you said: "If you are compiling from source, you generally specify the destination directory by using the --prefix argument to configure"

you are refering to the binaries?

Do you have a sample binary install command line example with --prefix used?

What directory do you normally store binaries or RPMs priopr to installing? Do you just create a temp dir?

I know this is a personal-preference question, but Im trying to base my decision off of some standard, if there is one.

Thank you
Old 10-29-2006, 12:03 PM   #4
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Source and binaries are just the opposite of one another. Source is where you have to go through ./configure, make, and make install to get it to function. That type of install is what btmiller was referring to when he spoke of using the --prefix arguement.

Just like windows, you can put compiled software anywhere you want, and then play with permissions of the location to allow everything to see and use some "created" location. To make things easier, and get things where they "should" be, most people place self compiled software in /usr/local/.

Binaries come from installing via .rpm files, using yum or any of the tools built around .rpm. Those have instructions built in on where they should be located, so you can install the rpm file from any directory, and it puts all the files where the "should" go, locations like /usr/bin/, /lib,. etc. The binary files require much less thought and planning, they are more of a "just work for me" solution.



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
What default packages are installed on a Server install of Redhat 7? thekillerbean Linux - Software 9 05-02-2006 11:35 PM
default, irrelevant packages installed kpachopoulos Fedora - Installation 1 06-12-2005 04:38 AM
Poll: default optimizations for packages in Slack 10.1 ganja_guru Slackware 33 02-21-2005 11:33 PM
POLL: Optimization for Slack 10.1 default packages ganja_guru Slackware 2 11-16-2004 03:08 AM
Installing packages on linux clients thru windows server or vice-versa balpeck Linux - General 1 09-01-2003 10:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 PM.

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