Linux x86

From Apache OpenOffice Wiki
Jump to: navigation, search
doc OOo

基于 RPM 的 Linux 分发

RPM 软件包管理器是一个功能强大的工具,可用于在本地以及通过网络部署软件包。

Documentation note.png 以下说明假定您已下载并解压缩了 Apache OpenOffice 安装文件。

安装

  1. 成为 root 用户(如果需要)
    su -
  2. 转到以下目录:
    <OpenOffice.org_unzip-dir>/RPMS
  3. RPMS 目录包含 Gnome 和 KDE 集成的 RPM 软件包。
    • 对于使用 KDE 的用户,您可以删除 Gnome 集成 RPM:
    rm openoffice.org-gnome-integration-<version>.rpm
    • 对于使用 Gnome 的用户,您可以删除 KDE 集成 RPM:
    rm openoffice.org-kde-integration-<version>.rpm
  4. 安装到标准 /opt 目录中
    rpm -ivh *.rpm
    Documentation note.png 如果要在其他位置中安装 Apache OpenOffice,请使用 -prefix 选项。
    rpm -ivh –prefix <install-dir> *.rpm
  5. 在菜单中安装 Apache OpenOffice:
    cd desktop-integration

    查找并安装特定 Linux 分发的 RPM:

    rpm -ivh openoffice.org-<distribution>-menus_<version>.deb

在安装完成后,您可以安全地删除 Apache OpenOffice 安装软件包。

卸载

不要从文件系统中删除 Apache OpenOffice 文件。您必须使用 Apache OpenOffice Java 安装程序或 RPM 软件包管理器来卸载 Apache OpenOffice。

  1. 成为 root 用户(如果需要)
    su -
  2. 创建 'ooo_packages' 文件,其中包含与 Apache OpenOffice 相关的所有 RPM 软件包
    rpm -qa | grep openoffice > ooo_packages
  3. 仔细检查该文件的内容。将删除列出的所有软件包。如果使用包含 JRE 的 Apache OpenOffice 安装集,则所列内容中不包含已安装的 JRE 软件包。
  4. 使用以下命令删除与 Apache OpenOffice 相关的所有软件包:
    rpm -e 'cat ooo_packages'

基于 DEB 的 Linux 分发

APT 或 DPKG 软件包管理器用于安装、更新和删除 DEB 软件包,它是作为基于 DEB 的 Linux 分发(如 Debian 和 Ubuntu)的一部分提供的。

Documentation note.png If you have the RPMS package and do not want to download the DEBS package, you can convert the RPMs to DEBs using the following command:
   sudo alien -d --scripts *.rpm 

安装

  1. 成为 root 用户(如果需要)
    su -
  2. 转到以下目录:
    <OpenOffice.org_unzip-dir>/DEBS
  3. DEBS 目录包含 Gnome 和 KDE 集成的 DEB 软件包。
    • 对于使用 KDE 的用户,您可以删除 Gnome 集成 DEB:
    rm openoffice.org-gnome-integration-<version>.deb
    • 对于使用 Gnome 的用户,您可以删除 KDE 集成 DEB:
    rm openoffice.org-kde-integration-<version>.deb
  4. 安装到标准 /opt 目录中
    dpkg -i *.deb
    Documentation note.png 如果要在其他位置中安装 Apache OpenOffice,请使用 --instdir=<directory> 选项。
    dpkg -i --installdir=<install-dir> *.deb
  5. 在菜单中安装 Apache OpenOffice:
    cd desktop-integration
    dpkg -i openoffice.org-debian-menus_<version>.deb

在安装完成后,您可以安全地删除 Apache OpenOffice 安装软件包。

卸载

不要从文件系统中删除 Apache OpenOffice 文件。您必须使用 Apache OpenOffice Java 安装程序或 DEB 软件包管理器来卸载 Apache OpenOffice。

  1. 成为 root 用户(如果需要)
    su -
  2. 使用以下命令删除与 Apache OpenOffice 相关的所有软件包:
    apt-get remove openoffice.org*
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages