(1)创建一个文件夹
mkdir openoffice
(2)删除老的openoffice
sudo apt-get remove openoffice* libreoffice* (Debian 删除openoffice方式)
yum remove openoffice* libreoffice* (centos 删除openoffice方式)
(3)如果是Debian
---------------------------- On 32-bit Systems ----------------------------
# wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.2/binaries/en-US/Apache_OpenOffice_4.1.2_Linux_x86-64_install-deb_en-US.tar.gz
---------------------------- On 64-bit Systems ----------------------------
# wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.2/binaries/en-US/Apache_OpenOffice_4.1.2_Linux_x86_install-deb_en-US.tar.gz
(4)如果 RedHad
---------------------------- On 32-bit Systems ----------------------------
# wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.2/binaries/en-US/Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_en-US.tar.gz
---------------------------- On 64-bit Systems ----------------------------
# wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.2/binaries/en-US/Apache_OpenOffice_4.1.2_Linux_x86_install-rpm_en-US.tar.gz
(5)提取openoffice 4.1.2 包
-------------------- On Debian and its Derivatives --------------------
# tar -xvf Apache_OpenOffice_4.1.2_Linux_x86-64_install-deb_en-US.tar.gz[For 32-bit]
# tar -xvf Apache_OpenOffice_4.1.2_Linux_x86_install-deb_en-US.tar.gz[For 64-bit]
-------------------- On RedHat based Systems --------------------
# tar -xvf Apache_OpenOffice_4.1.2_Linux_x86_install-rpm_en-US.tar.gz[For 64-bit]
# tar -xvf Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_en-US.tar.gz[For 32-bit]
(6)安装openoffice 4.1.2 包
-------------------- On Debian and its Derivatives --------------------
# dpkg -i en-US/DEBS/*.deb en-US/DEBS/desktop-integration/openoffice4.1-debian-*.deb
-------------------- On RedHat based Systems --------------------
# rpm -Uvh en-US/RPMS/*.rpm en-US/RPMS/desktop-integration/openoffice4.1.2-redhat-*.rpm
(7)启动openoffice 4.1.2
wget http://10.1.0.64/pkgs/openoffice/RPMS.rar
yum install unrar
unrar e RPMS.rar
rpm -Uvh RPMS/*.rpm RPMS/desktop-integration/openoffice4.1.2-redhat-*.rpm