Difference between revisions of "ZH/Documentation/Administration Guide/Linux"
From Apache OpenOffice Wiki
Line 1: | Line 1: | ||
− | {{Documentation/AdminGuideTOC/v2 | + | {{ZH/Documentation/AdminGuideTOC/v2 |
|OS_type=block | |OS_type=block | ||
|ShowPrevNext=block | |ShowPrevNext=block | ||
Line 16: | Line 16: | ||
<ol> | <ol> | ||
<li>成为 root 用户(如果需要) | <li>成为 root 用户(如果需要) | ||
− | <source | + | <source lang="text"> |
su - | su - | ||
</source></li> | </source></li> | ||
<li>转到以下目录: | <li>转到以下目录: | ||
− | <source | + | <source lang="text"> |
<OpenOffice.org_unzip-dir>/RPMS | <OpenOffice.org_unzip-dir>/RPMS | ||
</source></li> | </source></li> | ||
<li>RPMS 目录包含 Gnome 和 KDE 集成的 RPM 软件包。 | <li>RPMS 目录包含 Gnome 和 KDE 集成的 RPM 软件包。 | ||
*对于使用 KDE 的用户,您可以删除 Gnome 集成 RPM: | *对于使用 KDE 的用户,您可以删除 Gnome 集成 RPM: | ||
− | <source | + | <source lang="text"> |
rm openoffice.org-gnome-integration-<version>.rpm | rm openoffice.org-gnome-integration-<version>.rpm | ||
</source> | </source> | ||
*对于使用 Gnome 的用户,您可以删除 KDE 集成 RPM: | *对于使用 Gnome 的用户,您可以删除 KDE 集成 RPM: | ||
− | <source | + | <source lang="text"> |
rm openoffice.org-kde-integration-<version>.rpm | rm openoffice.org-kde-integration-<version>.rpm | ||
</source></li> | </source></li> | ||
<li>安装到标准 <tt>/opt</tt> 目录中 | <li>安装到标准 <tt>/opt</tt> 目录中 | ||
− | <source | + | <source lang="text"> |
rpm -ivh *.rpm | rpm -ivh *.rpm | ||
</source> | </source> | ||
{{Documentation/Note|如果要在其他位置中安装 {{OOo}},请使用 <tt>-prefix</tt> 选项。 | {{Documentation/Note|如果要在其他位置中安装 {{OOo}},请使用 <tt>-prefix</tt> 选项。 | ||
− | <source | + | <source lang="text"> |
rpm -ivh –prefix <install-dir> *.rpm | rpm -ivh –prefix <install-dir> *.rpm | ||
</source>}}</li> | </source>}}</li> | ||
<li>在菜单中安装 {{OOo}}: | <li>在菜单中安装 {{OOo}}: | ||
− | <source | + | <source lang="text"> |
cd desktop-integration | cd desktop-integration | ||
</source> | </source> | ||
查找并安装特定 Linux 分发的 RPM: | 查找并安装特定 Linux 分发的 RPM: | ||
− | <source | + | <source lang="text"> |
rpm -ivh openoffice.org-<distribution>-menus_<version>.deb | rpm -ivh openoffice.org-<distribution>-menus_<version>.deb | ||
</source></li> | </source></li> | ||
Line 56: | Line 56: | ||
<ol> | <ol> | ||
<li>成为 root 用户(如果需要) | <li>成为 root 用户(如果需要) | ||
− | <source | + | <source lang="text"> |
su - | su - | ||
</source></li> | </source></li> | ||
<li>创建 'ooo_packages' 文件,其中包含与 {{OOo}} 相关的所有 RPM 软件包 | <li>创建 'ooo_packages' 文件,其中包含与 {{OOo}} 相关的所有 RPM 软件包 | ||
− | <source | + | <source lang="text"> |
rpm -qa | grep openoffice > ooo_packages | rpm -qa | grep openoffice > ooo_packages | ||
</source></li> | </source></li> | ||
<li>仔细检查该文件的内容。将删除列出的所有软件包。如果使用包含 JRE 的 {{OOo}} 安装集,则所列内容中不包含已安装的 JRE 软件包。</li> | <li>仔细检查该文件的内容。将删除列出的所有软件包。如果使用包含 JRE 的 {{OOo}} 安装集,则所列内容中不包含已安装的 JRE 软件包。</li> | ||
<li>使用以下命令删除与 {{OOo}} 相关的所有软件包: | <li>使用以下命令删除与 {{OOo}} 相关的所有软件包: | ||
− | <source | + | <source lang="text"> |
rpm -e 'cat ooo_packages' | rpm -e 'cat ooo_packages' | ||
</source></li></ol> | </source></li></ol> | ||
Line 79: | Line 79: | ||
<ol> | <ol> | ||
<li>成为 root 用户(如果需要) | <li>成为 root 用户(如果需要) | ||
− | <source | + | <source lang="text"> |
su - | su - | ||
</source></li> | </source></li> | ||
<li>转到以下目录: | <li>转到以下目录: | ||
− | <source | + | <source lang="text"> |
<OpenOffice.org_unzip-dir>/DEBS | <OpenOffice.org_unzip-dir>/DEBS | ||
</source></li> | </source></li> | ||
<li>DEBS 目录包含 Gnome 和 KDE 集成的 DEB 软件包。 | <li>DEBS 目录包含 Gnome 和 KDE 集成的 DEB 软件包。 | ||
*对于使用 KDE 的用户,您可以删除 Gnome 集成 DEB: | *对于使用 KDE 的用户,您可以删除 Gnome 集成 DEB: | ||
− | <source | + | <source lang="text"> |
rm openoffice.org-gnome-integration-<version>.deb | rm openoffice.org-gnome-integration-<version>.deb | ||
</source> | </source> | ||
*对于使用 Gnome 的用户,您可以删除 KDE 集成 DEB: | *对于使用 Gnome 的用户,您可以删除 KDE 集成 DEB: | ||
− | <source | + | <source lang="text"> |
rm openoffice.org-kde-integration-<version>.deb | rm openoffice.org-kde-integration-<version>.deb | ||
</source></li> | </source></li> | ||
<li>安装到标准 <tt>/opt</tt> 目录中 | <li>安装到标准 <tt>/opt</tt> 目录中 | ||
− | <source | + | <source lang="text"> |
dpkg -i *.deb | dpkg -i *.deb | ||
</source> | </source> | ||
{{Documentation/Note|如果要在其他位置中安装 {{OOo}},请使用 <tt><nowiki>--instdir=<directory></nowiki></tt> 选项。 | {{Documentation/Note|如果要在其他位置中安装 {{OOo}},请使用 <tt><nowiki>--instdir=<directory></nowiki></tt> 选项。 | ||
− | <source | + | <source lang="text"> |
dpkg -i --installdir=<install-dir> *.deb | dpkg -i --installdir=<install-dir> *.deb | ||
</source>}}</li> | </source>}}</li> | ||
<li>在菜单中安装 {{OOo}}: | <li>在菜单中安装 {{OOo}}: | ||
− | <source | + | <source lang="text"> |
cd desktop-integration | cd desktop-integration | ||
dpkg -i openoffice.org-debian-menus_<version>.deb | dpkg -i openoffice.org-debian-menus_<version>.deb | ||
Line 116: | Line 116: | ||
<ol> | <ol> | ||
<li>成为 root 用户(如果需要) | <li>成为 root 用户(如果需要) | ||
− | <source | + | <source lang="text"> |
su - | su - | ||
</source></li> | </source></li> | ||
<li>使用以下命令删除与 {{OOo}} 相关的所有软件包: | <li>使用以下命令删除与 {{OOo}} 相关的所有软件包: | ||
− | <source | + | <source lang="text"> |
apt-get remove openoffice.org* | apt-get remove openoffice.org* | ||
</source></li> | </source></li> | ||
Line 126: | Line 126: | ||
{{PDL1}} | {{PDL1}} | ||
+ | {{InterWiki_Languages_BasicGuide|articletitle=Documentation/Administration Guide/Linux}} |
Revision as of 21:38, 30 October 2008
基于 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 目录中
Template:Documentation/Note
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)的一部分提供的。
安装
- 成为 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 目录中
Template:Documentation/Note
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). |