Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Currently I'm building a new box using CentOS 5.4. As most of you already know, CentOS 5.4 comes with PHP 5.16 and I want to upgrade to 5.26. (I already know how to do that using yum)
What makes me wonder is http://php.net/ only provide it's source code. So my question is:
what's the benefit and/or lost of using source code + self compile than using the RPM files?
If I use RPM files, any time when needed I can easily add PHP modules by installing separate rpm files (e.g. php-mysql, php-xml, etc). Can I do this with the source code pack, or do I have to reconfigure and recompile everything from scratch?
How can I uninstall PHP that was created using source code + self compile? (I think "rpm -e" won't work here...)
If I use the source code + self compile, and someday I want to upgrade to the latest PHP at that time, should I firstly remove my previous compiled PHP, or I can just configure and compile the latest PHP (with a hope that it'll overwrite previous PHP)?
what's the benefit and/or lost of using source code + self compile than using the RPM files?
If I use RPM files, any time when needed I can easily add PHP modules by installing separate rpm files (e.g. php-mysql, php-xml, etc). Can I do this with the source code pack, or do I have to reconfigure and recompile everything from scratch?
How can I uninstall PHP that was created using source code + self compile? (I think "rpm -e" won't work here...)
If I use the source code + self compile, and someday I want to upgrade to the latest PHP at that time, should I firstly remove my previous compiled PHP, or I can just configure and compile the latest PHP (with a hope that it'll overwrite previous PHP)?
With source code you are in complete control over the version, patches, dependencies, and destination of the files installed. With RPM the builder has already dictated all of this for your distribution. You can use the RPM to remove the package (because it knows where it put the files) With source code, only you know where you told it to put the files, so you have to go in there and take them out yourself.
For the same reason, you can easily update RPMs, but you would have to start from scratch with source code. Lots of problems are caused by having two versions of the same software accessible at the same time. (Specially php)
@bakdong: Thanks for the answers. I think it covers everything
I'll write everything down again, and CMIIW Q:
Quote:
Originally Posted by yoachan
what's the benefit and/or lost of using source code + self compile than using the RPM files?
A:
Quote:
Originally Posted by bakdong
With source code you are in complete control over the version, patches, dependencies, and destination of the files installed. With RPM the builder has already dictated all of this for your distribution.
Q:
Quote:
Originally Posted by yoachan
If I use RPM files, any time when needed I can easily add PHP modules by installing separate rpm files (e.g. php-mysql, php-xml, etc). Can I do this with the source code pack, or do I have to reconfigure and recompile everything from scratch?
A:
Quote:
Originally Posted by bakdong
For the same reason, you can easily update RPMs, but you would have to start from scratch with source code.
Q:
Quote:
Originally Posted by yoachan
How can I uninstall PHP that was created using source code + self compile? (I think "rpm -e" won't work here...)
A:
Quote:
Originally Posted by bakdong
You can use the RPM to remove the package (because it knows where it put the files) With source code, only you know where you told it to put the files, so you have to go in there and take them out yourself.
Q:
Quote:
Originally Posted by yoachan
If I use the source code + self compile, and someday I want to upgrade to the latest PHP at that time, should I firstly remove my previous compiled PHP, or I can just configure and compile the latest PHP (with a hope that it'll overwrite previous PHP)?
A:
Quote:
Originally Posted by bakdong
Lots of problems are caused by having two versions of the same software accessible at the same time. (Specially php)
@knudfl: I've tried to search before posting. But still can't find what I'm looking for. But I'll be more careful next time
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.