I have an older FreeBSD system (I would like to be on a newer version but it is not my server and I do not have carte blanche to change just anything.)
The currently installed versions of mysql and php are:
I would like to upgrade mysql to 5.0.75 or better, and php to 5.2.6, to match an Ubuntu linux server.
From other posts, I see that the way to do this is to:
- update the ports tree to current levels (such as with portsnap or cvsup or csup),
- then perform pkg_delete on the old versions,
- then perform 'make install clean' for the new versions from the appropriate newer version ports directories
Question: Is my FreeBSD 5.3 system too old to perform the specific upgrades I mention above via a ports install (meaning recompile)? The MySQL documentation says 5.x can be installed (recompiled) on FreeBSD 4.x or later. Not sure about php at this moment but I will verify.
Question: Is it reasonable to want to avoid updating the entire ports tree when I really only want to update two or three products? This is a production server so I am trying to change as little as possible at one time.
Question: If it is reasonable to do just a couple products, how do I update the ports collection for just one product at a time? All the examples I see for updating the ports versions seem to update the entire ports tree.
Thank for any help on these questions.
Code:
------ $ uname -a
FreeBSD [url]www.xxxxxxxxx.com[/url] 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Tue Jan 25 11:14:51 UTC 2005 [email]root@www.xxxxxxxxx.com[/email]:/usr/obj/usr/src/sys/GENERIC i386
The currently installed versions of mysql and php are:
Code:
------ $ pkg_version -v
...
cvsup-without-gui-16.1h = up-to-date with port
...
mysql-client-4.1.5 < needs updating (port has 4.1.9)
mysql-server-4.1.5 < needs updating (port has 4.1.9)
...
php4-ctype-4.3.10_2 = up-to-date with port
php4-extensions-1.0 = up-to-date with port
php4-mysql-4.3.10_2 = up-to-date with port
php4-overload-4.3.10_2 = up-to-date with port
php4-pcre-4.3.10_2 = up-to-date with port
php4-posix-4.3.10_2 = up-to-date with port
php4-session-4.3.10_2 = up-to-date with port
php4-tokenizer-4.3.10_2 = up-to-date with port
php4-xml-4.3.10_2 = up-to-date with port
php4-zlib-4.3.10_2 = up-to-date with port
...
From other posts, I see that the way to do this is to:
- update the ports tree to current levels (such as with portsnap or cvsup or csup),
- then perform pkg_delete on the old versions,
- then perform 'make install clean' for the new versions from the appropriate newer version ports directories
Question: Is my FreeBSD 5.3 system too old to perform the specific upgrades I mention above via a ports install (meaning recompile)? The MySQL documentation says 5.x can be installed (recompiled) on FreeBSD 4.x or later. Not sure about php at this moment but I will verify.
Question: Is it reasonable to want to avoid updating the entire ports tree when I really only want to update two or three products? This is a production server so I am trying to change as little as possible at one time.
Question: If it is reasonable to do just a couple products, how do I update the ports collection for just one product at a time? All the examples I see for updating the ports versions seem to update the entire ports tree.
Thank for any help on these questions.