LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Questions related to package manager based and manual installation (http://www.linuxquestions.org/questions/red-hat-31/questions-related-to-package-manager-based-and-manual-installation-595731/)

koobi 10-30-2007 05:52 AM

Questions related to package manager based and manual installation
 
Hi,
I have to install Apache and PHP on a RedHat Enterprise Server 4 machine by manually compiling as I need the very latest versions to be compliant with the PCI DSS standards and unfortunately the RedHat or any other repository that I know of does not have these versions. Feel free to recommend one :)

So I have a few questions regarding RPM/Yum/up2date as I'm only familiar with APT.


[ 1 ] If I perform a manual installation of the said software, will the RH package manager track it? Meaning, if I needed to upgrade the software in the future, would I have to upgrade manually?


[ 2 ] Suppose I do install the software via a package manager, how would I compile in a module that isn't present in the repository? Meaning, when I configure, if I had to specify the 'prefix', how would I locate what the prefix path is, easily?



Thanks.

Lenard 10-30-2007 09:10 AM

Quote:

Originally Posted by koobi (Post 2941980)
Hi,
I have to install Apache and PHP on a RedHat Enterprise Server 4 machine by manually compiling as I need the very latest versions to be compliant with the PCI DSS standards and unfortunately the RedHat or any other repository that I know of does not have these versions. Feel free to recommend one :)

So I have a few questions regarding RPM/Yum/up2date as I'm only familiar with APT.

RHEL4 does not use yum by default. Just curious, which versions of Apache and PHP are you looking at??
Reading the manpage man rpm is helpful.

Quote:

[ 1 ] If I perform a manual installation of the said software, will the RH package manager track it? Meaning, if I needed to upgrade the software in the future, would I have to upgrade manually?
Yes if installed by installing rpm packages and you will have to update manually.

Quote:

[ 2 ] Suppose I do install the software via a package manager, how would I compile in a module that isn't present in the repository? Meaning, when I configure, if I had to specify the 'prefix', how would I locate what the prefix path is, easily?
If you have source rpm package9s) then one can build the installable rpm packages, you will need to install the rpm-build package if not already installed. In most cases the built debug package(s) does not need to be installed, in some cases the built devel rpm package(s) may be needed you will be informed when needed.

Example command for building: rpmbuild --bb --define 'dist .el4' foo.spec
The define switch is nice for some source rpm's but is not required to build any packages.

Then one can install the built rpm package by typing something like: rpm -Uvh <packagefilename>.rpm

koobi 11-05-2007 07:02 AM

Quote:

Originally Posted by Lenard (Post 2942176)
RHEL4 does not use yum by default. Just curious, which versions of Apache and PHP are you looking at??
Reading the manpage man rpm is helpful.

I need the absolute latest version of PHP and 2.0.6 or greater of Apache. Zend Core would solve the Apache problem...we actually purchased Zend Core..but my dear god, their documentation totally does not match up with their program. Half the commands in their documentation does not even exist in their shell scripts that do the installing.



Quote:

Originally Posted by Lenard (Post 2942176)
Yes if installed by installing rpm packages and you will have to update manually.



If you have source rpm package9s) then one can build the installable rpm packages, you will need to install the rpm-build package if not already installed. In most cases the built debug package(s) does not need to be installed, in some cases the built devel rpm package(s) may be needed you will be informed when needed.

Example command for building: rpmbuild --bb --define 'dist .el4' foo.spec
The define switch is nice for some source rpm's but is not required to build any packages.

Then one can install the built rpm package by typing something like: rpm -Uvh <packagefilename>.rpm

i see, so you use 'rpm' when installing an rpm but you use 'rpmbuild' when installing source rpm's?

Lenard 11-05-2007 07:46 AM

Quote:

i see, so you use 'rpm' when installing an rpm but you use 'rpmbuild' when installing source rpm's?
No not exactly, rpm is used to install, update or remove the binary executable packages including the source rpm packages. The rpmbuild command is use to build the binary executable rpm packages, sorta of like using the make command to build from source files (tar files for example).

PHP>2.0.6 is available for RHEL4: http://mirror.chpc.utah.edu/pub/centos/4.5/centosplus/

CentOS 4.5 == RHEL4 update 5

Download the source rpm file: php-5.1.6-3.el4s1.8.src.rpm

Also the latest apache cn be built using this source rpm package, direct link:
http://download.fedora.redhat.com/pu...-1.fc7.src.rpm

You may need to do some editing of the spec file and satisfy the dependencies in order to build however.


All times are GMT -5. The time now is 04:10 PM.