1. 先在openOffice的官网http://www.openoffice.org/download/other.html上下载对应linux系统的软件包。以Debian系统为例,我下了 OOo_3.3.0_Linux_x86_install-deb_en-US.tar.gz 这个安装包。
2.将软件包拷到某个目录,一般为用户的家目录下或桌面。进入软件包所在目录并解压tar包:
~$ tar xvfz OOo_3.3.0_Linux_x86_install-deb_en-US.tar.gz
OOO330_m20_native_packed-1_en-US.9567/
OOO330_m20_native_packed-1_en-US.9567/licenses/
OOO330_m20_native_packed-1_en-US.9567/licenses/LICENSE_en-US.html
OOO330_m20_native_packed-1_en-US.9567/licenses/LICENSE_en-US
OOO330_m20_native_packed-1_en-US.9567/readmes/
OOO330_m20_native_packed-1_en-US.9567/readmes/README_en-US.html
OOO330_m20_native_packed-1_en-US.9567/readmes/README_en-US
OOO330_m20_native_packed-1_en-US.9567/DEBS/
...
3. 进入解压好的目录:
~$ cd OOO330_m20_native_packed-1_en-US.9567/
~$ ls
DEBS licenses readmes update
4.进入安装文件所在的目录:
~$cd DEBS
~$ ls
desktop-integration
ooobasis3.3-base_3.3.0-20_i386.deb
ooobasis3.3-binfilter_3.3.0-20_i386.deb
ooobasis3.3-calc_3.3.0-20_i386.deb
...
5.切换为root用户权限,安装所有openOffice组件:
# dpkg -i *.deb
(Reading database ... 73439 files and directories currently installed.)
Preparing to replace ooobasis3.3-base 3.3.0-20 (using ooobasis3.3-base_3.3.0-20_i386.deb) ...
Unpacking replacement ooobasis3.3-base ...
Preparing to replace ooobasis3.3-binfilter 3.3.0-20 (using ooobasis3.3-binfilter_3.3.0-20_i386.deb) ...
...
6.安装OpenOffice桌面控制台:
# cd desktop-integration/
# ls
openoffice.org3.3-debian-menus_3.3-9556_all.deb
# dpkg -i openoffice.org3.3-debian-menus_3.3-9556_all.deb
(Reading database ... 73439 files and directories currently installed.)
Preparing to replace openoffice.org-debian-menus 3.3-9556 (using openoffice.org3.3-debian-menus_3.3-9556_all.deb) ...
Unpacking replacement openoffice.org-debian-menus ...
/usr/bin/gtk-update-icon-cache
gtk-update-icon-cache: Cache file created successfully.
/usr/bin/gtk-update-icon-cache
gtk-update-icon-cache: Cache file created successfully.
...
安装完控制台后,就可以在系统上使用OpenOffice了。
备注:上面的命令是顺序而来的,因为每一个cd都会对应进入一个新的目录,所以不要忘了看此时在哪个目录下。在其他系统上安装OpenOffice的方法与之类似,但是安装包和安装的命令可能有所不同,要注意区分。