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的方法與之類似,但是安裝包和安裝的命令可能有所不同,要注意區分。