added Linux upgrade

This commit is contained in:
ahrenholz 2009-06-19 16:15:35 +00:00
parent 2e52318b2f
commit 2a1a94b710

View file

@ -1,8 +1,16 @@
#summary How to upgrade your CORE installation
= FreeBSD upgrade =
= Preferences and Settings =
CORE preferences are kept in the `~/.core` file. Sometimes upgrading from one version to another causes an incompatibility between versions. You can safely remove this file to avoid conflicts.
*Upgrading CORE 3.3 to 3.4*
Other CORE settings are saved in `/etc/core/plugins.conf` and `/etc/core/servers.conf` (`/usr/local/etc/core/*` on FreeBSD).
Be sure to save any configuration files you may have saved from the system-wide directory `/usr/local/lib/core/configs`. Starting with version 3.4, CORE uses a default configuration file path of `/etc/core/configs` (`/usr/local/etc/core/configs` on FreeBSD).
= FreeBSD upgrade =
Use the `pkg_add` and `pkg_remove` FreeBSD utilities to remove the old CORE packages and install the new ones.
== Upgrading CORE 3.3 to 3.4 ==
# First back up any configuration files that you want to keep!
{{{
tar czvf ~/my-important-configs.tgz /usr/local/lib/core/configs
@ -11,7 +19,7 @@ tar czvf ~/my-important-configs.tgz /usr/local/lib/core/configs
{{{
pkg_info -Ex core
}}}
# Use pkg_delete to remove the old CORE packages:
# Use `pkg_delete` to remove the old CORE packages:
{{{
pkg_delete core-span-1.3
pkg_delete core-wlan-1.3
@ -26,3 +34,27 @@ pkg_add core-kernel-7.x-20090505.tbz
# Reboot to the new kernel, and you are ready to start using the new version of CORE.
= Linux upgrade =
Use the RPM package manager to uninstall the old packages and install the ones.
# Save any configuration files you may have. Note that installing a new core-root package will cause any changes to your old core-root to be lost (for example, if you installed new programs in the root image).
# List which CORE packages you have installed:
{{{
rpm -qa core
rpm -qa core-root
}}}
# Remove the old CORE RPMs:
{{{
rpm -e core-3.3-1
rpm -e core-root-3.3-1
}}}
# Install the new RPMs:
{{{
rpm -ivh core-3.4-1.i386.rpm
rpm -ivh core-root-3.4-1.i386.rpm
}}}
# You may need to rebuild the container configs in `/etc/vz/conf` if the `ve-core.conf-sample` file has changed. If you remove the old containers, CORE will build new ones as needed. Here is an example:
{{{
# careful! first check what these commands will delete
rm -f /etc/vz/conf/10*.conf
rm -f /etc/vz/conf/10*.mount
rm -f /vz/private/10*
}}}