Linux x86
From Apache OpenOffice Wiki
基于 RPM 的 Linux 分发
RPM 软件包管理器是一个功能强大的工具,可用于在本地以及通过网络部署软件包。
安装
- 成为 root 用户(如果需要)
su -
- 转到以下目录:
<OpenOffice.org_unzip-dir>/RPMS
- RPMS 目录包含 Gnome 和 KDE 集成的 RPM 软件包。
- 对于使用 KDE 的用户,您可以删除 Gnome 集成 RPM:
rm openoffice.org-gnome-integration-<version>.rpm
- 对于使用 Gnome 的用户,您可以删除 KDE 集成 RPM:
rm openoffice.org-kde-integration-<version>.rpm
- 安装到标准 /opt 目录中
rpm -ivh *.rpm
- 在菜单中安装 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。
- 成为 root 用户(如果需要)
su -
- 创建 'ooo_packages' 文件,其中包含与 Apache OpenOffice 相关的所有 RPM 软件包
rpm -qa | grep openoffice > ooo_packages
- 仔细检查该文件的内容。将删除列出的所有软件包。如果使用包含 JRE 的 Apache OpenOffice 安装集,则所列内容中不包含已安装的 JRE 软件包。
- 使用以下命令删除与 Apache OpenOffice 相关的所有软件包:
rpm -e 'cat ooo_packages'
基于 DEB 的 Linux 分发
APT 或 DPKG 软件包管理器用于安装、更新和删除 DEB 软件包,它是作为基于 DEB 的 Linux 分发(如 Debian 和 Ubuntu)的一部分提供的。
![]() |
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 |
安装
- 成为 root 用户(如果需要)
su -
- 转到以下目录:
<OpenOffice.org_unzip-dir>/DEBS
- DEBS 目录包含 Gnome 和 KDE 集成的 DEB 软件包。
- 对于使用 KDE 的用户,您可以删除 Gnome 集成 DEB:
rm openoffice.org-gnome-integration-<version>.deb
- 对于使用 Gnome 的用户,您可以删除 KDE 集成 DEB:
rm openoffice.org-kde-integration-<version>.deb
- 安装到标准 /opt 目录中
dpkg -i *.deb
- 在菜单中安装 Apache OpenOffice:
cd desktop-integration dpkg -i openoffice.org-debian-menus_<version>.deb
在安装完成后,您可以安全地删除 Apache OpenOffice 安装软件包。
卸载
不要从文件系统中删除 Apache OpenOffice 文件。您必须使用 Apache OpenOffice Java 安装程序或 DEB 软件包管理器来卸载 Apache OpenOffice。
- 成为 root 用户(如果需要)
su -
- 使用以下命令删除与 Apache OpenOffice 相关的所有软件包:
apt-get remove openoffice.org*
Content on this page is licensed under the Public Documentation License (PDL). |