Linux.com

Possible t o do.

Posted by: Anonymous Coward on December 18, 2004 02:32 AM
The following will work, but only for those who have the skill to do it. Won't work for granma. Since this is a newsforge post, granma will probably not see it.

Make separate partitions for<nobr> <wbr></nobr>/opt and<nobr> <wbr></nobr>/usr/local. Just as you would for<nobr> <wbr></nobr>/home.

Don't mount them when you install, or upgrade your system. After your new system install(upgrade) is done, go to<nobr> <wbr></nobr>/opt and<nobr> <wbr></nobr>/usr/local, do an rm -rvf<nobr> <wbr></nobr>./*. Mount your old partitions under<nobr> <wbr></nobr>/opt or/usr/local. Or, if you are finicky about standards mount old locations at<nobr> <wbr></nobr>/olddir and just make links, for example with: ln -s<nobr> <wbr></nobr>/olddir<nobr> <wbr></nobr>/opt
I have done this a number of times with new installs, upgrades and even while switching distributions.

Still, I can't see why distributions can't ask the user if they want you to leave<nobr> <wbr></nobr>/home<nobr> <wbr></nobr>/opt and<nobr> <wbr></nobr>/usr/local alone if these are found during an install or upgrade and do as per your input.

#

Return to Why I won't upgrade my Linux distribution