[CentOS] Apache 2.2X

Kevan Benson kbenson at a-1networks.com
Fri Nov 3 00:39:55 UTC 2006


On Thursday 02 November 2006 16:09, Tim Uckun wrote:
> > After removing all the stuff that depends on apache (mod_python, mod_ssl,
> > http_suexec, webalizer, subversion, etc.), the Apache supplied RPMs seem
> > to install fine.  Of course you wouldn't be using all the same patches
> > and configs from the CentOS rpm version, and there's no guarantee it will
> > work well with the provided libraries (it probably will provided they
> > have all their requires in the spec file correct).  If you don't need any
> > functionality out of Apache other than what you are putting in yourself
> > (rails, mongrel, mod_proxy_balance), this might work.
>
> I didn't want to start down that path of uninstalling everything and
> then reinstalling them again. I was kind of hoping there would be a
> repository I could add to repos.d and then yum upgrade httpd.

When I tested, I just kept pasting the conflicting rpms into an rpm -e command 
line, and removed them all at once.  After confirming they isntalled 
correctly and then uninstalling them, I just replaced the rpm -e (or yum 
remove) in the remove command with yum install.

On my system it was:
 rpm -e mod_perl-1.99_16-4.centos4.i386 mod_python-3.1.3-5.1.i386 
mod_ssl-2.0.52-28.ent.centos4.i386 php-5.1.4-1.centos.i386 
httpd-manual-2.0.52-28.ent.centos4.i386 
httpd-suexec-2.0.52-28.ent.centos4.i386 
httpd-devel-2.0.52-28.ent.centos4.i386 httpd-2.0.52-28.ent.centos4.i386 
system-config-httpd-1.3.1-1.noarch webalizer-2.01_10-25.i386 apr apr-devel 
apr-util apr-util-devl subversion

and

yum install mod_perl-1.99_16-4.centos4.i386 mod_python-3.1.3-5.1.i386 
mod_ssl-2.0.52-28.ent.centos4.i386 php-5.1.4-1.centos.i386 
httpd-manual-2.0.52-28.ent.centos4.i386 
httpd-suexec-2.0.52-28.ent.centos4.i386 
httpd-devel-2.0.52-28.ent.centos4.i386 httpd-2.0.52-28.ent.centos4.i386 
system-config-httpd-1.3.1-1.noarch webalizer-2.01_10-25.i386 apr apr-devel 
apr-util apr-util-devel subversion

yum really makes this easy.  I would recommend using rpm -e fpr the uninstall 
because it will error and not remove any packages until you correctly specify 
all the packages, making you specify them all at once (useful to make sure 
you have a full list of what you've removed).

> I am afraid I don't have the time or the expertise to try and roll my own
> RPMs.

Understood.  This would most likely be a massive undertaking with Apache.

-- 
- Kevan Benson
- A-1 Networks



More information about the CentOS mailing list