正:安裝

From Apache OpenOffice Wiki
Revision as of 05:31, 8 December 2005 by Pplwong (Talk | contribs)

Jump to: navigation, search

Linux上的安裝

RPM

  1. 為下載了的 OpenOffice.org 壓縮檔解除壓縮。現在來說,以下的指令會把 OpenOffice.org 的壓縮檔解除壓縮並放至所在的資料夾:
    tar xvzf OOo_2.0.0_LinuxIntel_install_zh-TW.tar.gz
  2. 如您沒有在 /opt 中新增或更改文件之權的話,請在以 su 指令登入 root。
  3. 以 cd 指令進入剛才解除了壓縮的 RPM 檔所在的資料夾。RPM 檔該在一個名為 RPMS 的資料夾內。
  4. 執行 rpm -Uvh *rpm 來安裝在預設的 /opt 內。如困您想安裝在別的資料夾中的話,請用:
    rpm -Uvh --prefix /<您想把 OpenOffice.org 安裝到的資料夾位置>/ *.rpm
    例:rpm -Uvh --prefix /home/myusername/

    When relocating, only relocate the base rpms, in other words, do not include any user interface RPMs as these must go in their default locations for proper system integration.

    Note: Upgrade the core first and then upgrade the user interface. Separating steps 4 and 5 ensures a good upgrade.
  5. cd into the desktop-integration directory and execute
    rpm -Uvh
    for the menu rpm that applies to your system. For example, on a RedHat-based system, you would use
    rpm -Uvh openoffice.org-redhat-menus-<release>.noarch.rpm or similar.
  6. Download and install any language packs needed for OpenOffice.org. For example, if you relocated Openoffice.org, you need
    rpm -Uvh --prefix //<where_ooo_should_go>/ <name_of_pack>.rpm

Please read the man page for the rpm that comes with your distribution and select the options that best apply to your situation. The examples above are only that, examples.

Installing individual components is the same as above but only requires the specific module be installed. For example, install all core rpms and then install those for each module you wish, such as, openoffice.org-impress-2.0.0-1.i586.rpm to install only Impress. Other modules may also be necessary.

Note: You may substitute -ihv for -Uhv in any of the above commands to install without upgrading.

Personal tools