1. 程式人生 > >linux系統openoffice安裝步驟

linux系統openoffice安裝步驟

看清楚自己下載的是rpm還是deb的,我下載的rpm的

檔案下載地址
[[email protected] opt]# ll

(1)解壓壓縮包

[[email protected] opt]# tar -zxvf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
zh-CN/
zh-CN/RPMS/
zh-CN/RPMS/openoffice-zh-CN-help-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-writer-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-ooolinguistic-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/desktop-integration/
zh-CN/RPMS/desktop-integration/openoffice4.1.5-suse-menus-4.1.5-9789.noarch.rpm
zh-CN/RPMS/desktop-integration/openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
zh-CN/RPMS/desktop-integration/openoffice4.1.5-freedesktop-menus-4.1.5-9789.noarch.rpm
zh-CN/RPMS/desktop-integration/openoffice4.1.5-mandriva-menus-4.1.5-9789.noarch.rpm
zh-CN/RPMS/openoffice-ooofonts-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-ure-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-draw-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-writer-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core07-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-draw-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-base-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-calc-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-math-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-impress-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core02-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-gnome-integration-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-writer-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-math-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-pyuno-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-calc-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-base-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core01-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-res-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core05-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-xsltfilter-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-ogltrans-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-onlineupdate-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-zh-CN-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-graphicfilter-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-impress-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core03-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core04-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-core06-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-base-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-javafilter-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-zh-CN-math-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-calc-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-brand-impress-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-draw-4.1.5-9789.x86_64.rpm
zh-CN/RPMS/openoffice-images-4.1.5-9789.x86_64.rpm
zh-CN/licenses/
zh-CN/licenses/LICENSE
zh-CN/licenses/NOTICE
zh-CN/readmes/
zh-CN/readmes/README_zh-CN
zh-CN/readmes/README_zh-CN.html
[

[email protected] opt]# ll
total 146760
-rw-r–r-- 1 root root 150268693 Oct 9 16:05 Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
drwxr-xr-x 3 root root 4096 Sep 10 00:48 sxt
drwxrwxr-x 5 root root 4096 Dec 12 2017 zh-CN

(2)進入zh-CN目錄

[[email protected] opt]# cd zh-CN/
[[email protected]

zh-CN]# ll
total 12
drwxrwxr-x 2 root root 4096 Dec 12 2017 licenses
drwxrwxr-x 2 root root 4096 Dec 12 2017 readmes
drwxrwxr-x 3 root root 4096 Dec 12 2017 RPMS

(3)進入 RPMS目錄

[[email protected] zh-CN]# cd RPMS/
[[email protected] RPMS]# ll
total 147460
drwxr-xr-x 2 root root 4096 Dec 12 2017 desktop-integration
-rw-r–r-- 1 root root 149122 Dec 12 2017 openoffice-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2921551 Dec 12 2017 openoffice-base-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2633 Dec 12 2017 openoffice-brand-base-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2632 Dec 12 2017 openoffice-brand-calc-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2629 Dec 12 2017 openoffice-brand-draw-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2659 Dec 12 2017 openoffice-brand-impress-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2631 Dec 12 2017 openoffice-brand-math-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2644 Dec 12 2017 openoffice-brand-writer-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 9334 Dec 12 2017 openoffice-brand-zh-CN-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 5888188 Dec 12 2017 openoffice-calc-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 22935306 Dec 12 2017 openoffice-core01-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 307465 Dec 12 2017 openoffice-core02-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 7905566 Dec 12 2017 openoffice-core03-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 35636561 Dec 12 2017 openoffice-core04-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 17223783 Dec 12 2017 openoffice-core05-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 15263773 Dec 12 2017 openoffice-core06-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 9300 Dec 12 2017 openoffice-core07-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 4767 Dec 12 2017 openoffice-draw-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 74211 Dec 12 2017 openoffice-gnome-integration-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 209755 Dec 12 2017 openoffice-graphicfilter-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 10357590 Dec 12 2017 openoffice-images-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 106473 Dec 12 2017 openoffice-impress-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 97730 Dec 12 2017 openoffice-javafilter-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 362529 Dec 12 2017 openoffice-math-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 53485 Dec 12 2017 openoffice-ogltrans-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 112083 Dec 12 2017 openoffice-onlineupdate-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 5015634 Dec 12 2017 openoffice-ooofonts-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 195347 Dec 12 2017 openoffice-ooolinguistic-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 5686817 Dec 12 2017 openoffice-pyuno-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 3691970 Dec 12 2017 openoffice-ure-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2731589 Dec 12 2017 openoffice-writer-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 52213 Dec 12 2017 openoffice-xsltfilter-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1452259 Dec 12 2017 openoffice-zh-CN-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 813889 Dec 12 2017 openoffice-zh-CN-base-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1887430 Dec 12 2017 openoffice-zh-CN-calc-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1018354 Dec 12 2017 openoffice-zh-CN-draw-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 4136071 Dec 12 2017 openoffice-zh-CN-help-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1320390 Dec 12 2017 openoffice-zh-CN-impress-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1006575 Dec 12 2017 openoffice-zh-CN-math-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 422064 Dec 12 2017 openoffice-zh-CN-res-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1833757 Dec 12 2017 openoffice-zh-CN-writer-4.1.5-9789.x86_64.rpm

(4)使用命令rpm -ivh *.rpm安裝所有的rpm壓縮包

[[email protected] RPMS]# rpm -ivh *.rpm
Preparing… ########################################### [100%]
1:openoffice-ure ########################################### [ 2%]
2:openoffice-core01 ########################################### [ 5%]
3:openoffice-zh-CN ########################################### [ 7%]
4:openoffice-impress ########################################### [ 10%]
5:openoffice-zh-CN-base ########################################### [ 12%]
6:openoffice-zh-CN-calc ########################################### [ 15%]
7:openoffice-zh-CN-draw ########################################### [ 17%]
8:openoffice-zh-CN-help ########################################### [ 20%]
9:openoffice-zh-CN-impres########################################### [ 22%]
10:openoffice-zh-CN-math ########################################### [ 24%]
11:openoffice-zh-CN-res ########################################### [ 27%]
12:openoffice-zh-CN-writer########################################### [ 29%]
13:openoffice-base ########################################### [ 32%]
14:openoffice-calc ########################################### [ 34%]
15:openoffice-core02 ########################################### [ 37%]
16:openoffice-core03 ########################################### [ 39%]
17:openoffice-core04 ########################################### [ 41%]
18:openoffice-core05 ########################################### [ 44%]
19:openoffice-core06 ########################################### [ 46%]
20:openoffice-core07 ########################################### [ 49%]
21:openoffice-draw ########################################### [ 51%]
22:openoffice-images ########################################### [ 54%]
23:openoffice ########################################### [ 56%]
24:openoffice-math ########################################### [ 59%]
25:openoffice-writer ########################################### [ 61%]
26:openoffice-brand-writer########################################### [ 63%]
27:openoffice-brand-math ########################################### [ 66%]
28:openoffice-brand-base ########################################### [ 68%]
29:openoffice-brand-calc ########################################### [ 71%]
30:openoffice-brand-draw ########################################### [ 73%]
31:openoffice-brand-impres########################################### [ 76%]
32:openoffice-brand-zh-CN ########################################### [ 78%]
33:openoffice-ogltrans ########################################### [ 80%]
34:openoffice-gnome-integr########################################### [ 83%]
35:openoffice-graphicfilte########################################### [ 85%]
36:openoffice-javafilter ########################################### [ 88%]
37:openoffice-onlineupdate########################################### [ 90%]
38:openoffice-ooofonts ########################################### [ 93%]
39:openoffice-ooolinguisti########################################### [ 95%]
40:openoffice-pyuno ########################################### [ 98%]
41:openoffice-xsltfilter ########################################### [100%]
[[email protected] RPMS]# ll
total 147460
drwxr-xr-x 2 root root 4096 Dec 12 2017 desktop-integration
-rw-r–r-- 1 root root 149122 Dec 12 2017 openoffice-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2921551 Dec 12 2017 openoffice-base-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2633 Dec 12 2017 openoffice-brand-base-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2632 Dec 12 2017 openoffice-brand-calc-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2629 Dec 12 2017 openoffice-brand-draw-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2659 Dec 12 2017 openoffice-brand-impress-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2631 Dec 12 2017 openoffice-brand-math-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2644 Dec 12 2017 openoffice-brand-writer-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 9334 Dec 12 2017 openoffice-brand-zh-CN-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 5888188 Dec 12 2017 openoffice-calc-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 22935306 Dec 12 2017 openoffice-core01-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 307465 Dec 12 2017 openoffice-core02-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 7905566 Dec 12 2017 openoffice-core03-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 35636561 Dec 12 2017 openoffice-core04-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 17223783 Dec 12 2017 openoffice-core05-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 15263773 Dec 12 2017 openoffice-core06-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 9300 Dec 12 2017 openoffice-core07-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 4767 Dec 12 2017 openoffice-draw-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 74211 Dec 12 2017 openoffice-gnome-integration-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 209755 Dec 12 2017 openoffice-graphicfilter-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 10357590 Dec 12 2017 openoffice-images-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 106473 Dec 12 2017 openoffice-impress-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 97730 Dec 12 2017 openoffice-javafilter-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 362529 Dec 12 2017 openoffice-math-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 53485 Dec 12 2017 openoffice-ogltrans-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 112083 Dec 12 2017 openoffice-onlineupdate-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 5015634 Dec 12 2017 openoffice-ooofonts-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 195347 Dec 12 2017 openoffice-ooolinguistic-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 5686817 Dec 12 2017 openoffice-pyuno-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 3691970 Dec 12 2017 openoffice-ure-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 2731589 Dec 12 2017 openoffice-writer-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 52213 Dec 12 2017 openoffice-xsltfilter-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1452259 Dec 12 2017 openoffice-zh-CN-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 813889 Dec 12 2017 openoffice-zh-CN-base-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1887430 Dec 12 2017 openoffice-zh-CN-calc-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1018354 Dec 12 2017 openoffice-zh-CN-draw-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 4136071 Dec 12 2017 openoffice-zh-CN-help-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1320390 Dec 12 2017 openoffice-zh-CN-impress-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1006575 Dec 12 2017 openoffice-zh-CN-math-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 422064 Dec 12 2017 openoffice-zh-CN-res-4.1.5-9789.x86_64.rpm
-rw-r–r-- 1 root root 1833757 Dec 12 2017 openoffice-zh-CN-writer-4.1.5-9789.x86_64.rpm

(5)進入desktop-integration目錄

[[email protected] RPMS]# cd desktop-integration/
[[email protected] desktop-integration]# ll
total 2004
-rw-r–r-- 1 root root 469543 Dec 12 2017 openoffice4.1.5-freedesktop-menus-4.1.5-9789.noarch.rpm
-rw-r–r-- 1 root root 489989 Dec 12 2017 openoffice4.1.5-mandriva-menus-4.1.5-9789.noarch.rpm
-rw-r–r-- 1 root root 541323 Dec 12 2017 openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
-rw-r–r-- 1 root root 543939 Dec 12 2017 openoffice4.1.5-suse-menus-4.1.5-9789.noarch.rpm

(6)使用命令安裝rpm -ivh openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm壓縮包

[[email protected] desktop-integration]# rpm -ivh openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
Preparing… ########################################### [100%]
1:openoffice4.1.5-redhat-########################################### [100%]
/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.
[[email protected] desktop-integration]# cd …
[[email protected] RPMS]# cd …
[[email protected] zh-CN]# cd …

啟動服務
檔案預設安裝在opt目錄下,進入該目錄
cd /opt/openoffice4/program/
執行下列命令即可啟動服務
soffice --headless --accept=“socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard &
檢視程序
ps -ef|grep soffice