3. Update

Follow the instructions in this section if Zope and Plone have already been installed on your system.

  1. Become root, stop and uninstall your Zope server:

    markus@r51:~> su -l
    Password:
    r51:~ # rczope stop
    Shutting down zope, instances: default                               done
    r51:~ # rpm -e zope

  2. Rename your existing Zope instance which usually resides in /var/opt/zope/default:

    r51:~ # cd /var/opt/zope/
    r51:/var/opt/zope # ls
    .  ..  default
    r51:/var/opt/zope # mv default default.old
    r51:/var/opt/zope # cd

  3. Unpack the bundle:

    r51:~ # tar xvjf Plone-2.5.1-SUSE_10.1_bundle.tar.bz2
    Plone-2.5.1-SUSE_10.1_bundle/
    Plone-2.5.1-SUSE_10.1_bundle/python24-gdbm-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-elementtree-1.2.6-1.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-imaging-1.1.5-17.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-doc-2.4.3-4.noarch.rpm
    Plone-2.5.1-SUSE_10.1_bundle/README/
    Plone-2.5.1-SUSE_10.1_bundle/README/x168.html
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/warning.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/toc-blank.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/note.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/toc-plus.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/important.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/tip.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/home.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/toc-minus.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/prev.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/up.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/next.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/stylesheet-images/caution.gif
    Plone-2.5.1-SUSE_10.1_bundle/README/x103.html
    Plone-2.5.1-SUSE_10.1_bundle/README/x178.html
    Plone-2.5.1-SUSE_10.1_bundle/README/x183.html
    Plone-2.5.1-SUSE_10.1_bundle/README/x19.html
    Plone-2.5.1-SUSE_10.1_bundle/README/index.html
    Plone-2.5.1-SUSE_10.1_bundle/README/docbook.css
    Plone-2.5.1-SUSE_10.1_bundle/README/x47.html
    Plone-2.5.1-SUSE_10.1_bundle/zope-2.9.5-1.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-tk-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-imaging-sane-1.1.5-17.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/plone-2.5.1-2.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-devel-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-idle-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-curses-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-doc-pdf-2.4.3-4.noarch.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-demo-2.4.3-4.i586.rpm
    Plone-2.5.1-SUSE_10.1_bundle/python24-xml-2.4.3-4.i586.rpm
    r51:~ # cd Plone-2.5.1-SUSE_10.1_bundle/
    r51:~/Plone-2.5.1-SUSE_10.1_bundle #

  4. Install Python and the Python XML interface:

    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv python24-2.4.3-4.i586.rpm
    Preparing...                ########################################### [100%]
       1:python24               ########################################### [100%]
    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv python24-xml-2.4.3-4.i586.rpm
    Preparing...                ########################################### [100%]
       1:python24-xml           ########################################### [100%]

  5. Install ElementTree:

    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv python24-elementtree-1.2.6-1.i586.rpm
    Preparing...                ########################################### [100%]
       1:python24-elementtree   ########################################### [100%]

  6. Install the Python Imaging Library (PIL). First make sure that the packages blt, tcl and tk contained in SUSE Linux 10.1 are installed. Then:

    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv python24-tk-2.4.3-4.i586.rpm
    Preparing...                ########################################### [100%]
       1:python24-tk            ########################################### [100%]
    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv python24-imaging-1.1.5-17.i586.rpm
    Preparing...                ########################################### [100%]
       1:python24-imaging       ########################################### [100%]

  7. Install Zope:

    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv zope-2.9.5-1.i586.rpm
    Preparing...                ########################################### [100%]
       1:zope                   ########################################### [100%]
    Updating etc/sysconfig/zope...
    Default zope instance not found, creating
    Instance home not absolute, placing under /var/opt/zope.

    If you have updated from the Zope version 2.7.8 contained in SUSE Linux 10.1 and if you had not removed it as described in step 1 you will see the following error message:

    /usr/bin/python: can't open file '/opt/zope/lib/python/Zope/Startup/zopectl.py':
    [Errno 2] No such file or directory
    ..failed
    The reason is that you have to upgrade your instance before you are able to start your new Zope version. Please read on to find out how to upgrade. You were shown the error message because the old package contained a command which tried to restart the application after an update. In the new version this behaviour has been changed since you wouldn't expect rpm to activate services.

  8. Please read the section Upgrading from Earlier Versions of Zope in /usr/share/doc/packages/zope/FAQ.txt. It tells you to copy the data from your previous Zope instance:

    r51:~/Plone-2.5.1-SUSE_10.1_bundle # cd /var/opt/zope/
    r51:/var/opt/zope # cp default.old/var/Data.fs default/var/
    r51:/var/opt/zope # cp -r default.old/Products/* default/Products/
    r51:/var/opt/zope # cp -r default.old/Extensions/* default/Extensions/
    

  9. Move your old Zope instance to a safe place other than /var/opt/zope.

  10. Install Plone:

    r51:/var/opt/zope # cd ~/Plone-2.5.1-SUSE_10.1_bundle/
    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rpm -Uhv plone-2.5.1-2.i586.rpm
    Preparing...                ########################################### [100%]
       1:plone                  ########################################### [100%]

  11. Start Zope to see if the installation was successful:

    r51:~/Plone-2.5.1-SUSE_10.1_bundle # rczope start
    Starting zope, instances: default                                    done
    Open the Zope start page (http://localhost:8080/) in a web browser. If you see a page named Zope Quick Start your Zope server is up and running.