Difference between revisions of "Documentation/Administration Guide/Linux"

From Apache OpenOffice Wiki
Jump to: navigation, search
(DEB Based Linux Distributions)
 
(10 intermediate revisions by 3 users not shown)
Line 12: Line 12:
 
The RPM package manager is a powerful tool you can use to deploy software packages both locally and throughout a network.   
 
The RPM package manager is a powerful tool you can use to deploy software packages both locally and throughout a network.   
  
{{Documentation/Note|These instructions assume you have downloaded and extracted the {{OOo}} installation files.}}
+
{{Note|These instructions assume you have downloaded and extracted the {{OOo}} installation files.}}
  
 
=== Install ===
 
=== Install ===
 
<ol>
 
<ol>
 
<li>Become root if necessary
 
<li>Become root if necessary
<source lang="text">
+
<syntaxhighlight lang="text">
 
su -
 
su -
</source></li>
+
</syntaxhighlight></li>
 
<li>Change directory to:
 
<li>Change directory to:
<source lang="text">
+
<syntaxhighlight lang="text">
 
<OpenOffice.org_unzip-dir>/RPMS
 
<OpenOffice.org_unzip-dir>/RPMS
</source></li>
+
</syntaxhighlight></li>
<li>The RPMS directory contains RPM packages for OpenOffice.org as well as Gnome and KDE integration.
+
<li>The RPMS directory contains RPM packages for {{AOo}} as well as Gnome and KDE integration.
 
* For users with KDE, you can remove the Gnome integration RPM:
 
* For users with KDE, you can remove the Gnome integration RPM:
<source lang="text">
+
<syntaxhighlight lang="text">
 
rm openoffice.org-gnome-integration-<version>.rpm
 
rm openoffice.org-gnome-integration-<version>.rpm
</source>
+
</syntaxhighlight>
 
* For users with Gnome, you can remove the KDE integration RPM:
 
* For users with Gnome, you can remove the KDE integration RPM:
<source lang="text">
+
<syntaxhighlight lang="text">
 
rm openoffice.org-kde-integration-<version>.rpm
 
rm openoffice.org-kde-integration-<version>.rpm
</source></li>
+
</syntaxhighlight></li>
 
<li>Install into the standard <tt>/opt</tt> directory
 
<li>Install into the standard <tt>/opt</tt> directory
<source lang="text">
+
<syntaxhighlight lang="text">
 
rpm -ivh *.rpm
 
rpm -ivh *.rpm
</source>
+
</syntaxhighlight>
{{Documentation/Note|If you prefer to install {{OOo}} in a different location, use the <tt>-prefix</tt> option.
+
{{Note|If you prefer to install {{AOo}} in a different location, use the <tt>-prefix</tt> option.
<source lang="text">
+
  rpm -ivh –prefix <install-dir> *.rpm}}
rpm -ivh –prefix <install-dir> *.rpm
+
</li>
</source>}}</li>
+
 
<li>To install the {{OOo}} in the menus:
 
<li>To install the {{OOo}} in the menus:
<source lang="text">
+
<syntaxhighlight lang="text">
 
cd desktop-integration
 
cd desktop-integration
</source>
+
</syntaxhighlight>
 
Find the RPM for your specific Linux distribution and install it:
 
Find the RPM for your specific Linux distribution and install it:
<source lang="text">
+
<syntaxhighlight lang="text">
 
rpm -ivh openoffice.org-<distribution>-menus_<version>.rpm
 
rpm -ivh openoffice.org-<distribution>-menus_<version>.rpm
</source></li>
+
</syntaxhighlight></li>
 
</ol>
 
</ol>
  
You can safely delete the {{OOo}} installation packages after the install is complete.
+
You can safely delete the {{AOo}} installation packages after the install is complete.
  
 
=== Uninstall ===
 
=== Uninstall ===
Do not delete the {{OOo}} files from the file system. You must use the {{OOo}} Java setup or the RPM package manager to uninstall {{OOo}}.
+
Do not delete the {{AOo}} files from the file system. You must use either the {{AOo}} Java setup or the RPM package manager to uninstall {{AOo}}.
 
<ol>
 
<ol>
 
<li>Become root if necessary
 
<li>Become root if necessary
<source lang="text">
+
<syntaxhighlight lang="text">
 
su -
 
su -
</source></li>
+
</syntaxhighlight></li>
<li>Create a file 'ooo_packages' with all {{OOo}} related RPM packages
+
<li>Create a file 'ooo_packages' with all {{AOo}} related RPM packages
<source lang="text">
+
<syntaxhighlight lang="text">
 
rpm -qa | grep openoffice > ooo_packages
 
rpm -qa | grep openoffice > ooo_packages
</source></li>
+
</syntaxhighlight></li>
<li>Check the content of file carefully. All packages in this list will be removed.  This list does not include the JRE package that was installed if you used the {{OOo}} installstion set that includes JRE.</li>
+
<li>Check the content of this file carefully. All packages in this list will be removed.  This list does not include the JRE package that was installed if you used the {{AOo}} installation set that includes JRE.</li>
<li>To remove all {{OOo}} related packages:
+
<li>To remove all {{AOo}} related packages:
<source lang="text">
+
<syntaxhighlight lang="text">
 
rpm -e 'cat ooo_packages'
 
rpm -e 'cat ooo_packages'
</source></li></ol>
+
</syntaxhighlight></li></ol>
  
 
== DEB Based Linux Distributions ==
 
== DEB Based Linux Distributions ==
The APT or DPKG package manager used to install, update and remove DEB packages, is provided as part of DEB based Linux distributions such as Debian and Ubuntu.
+
The APT or DPKG package manager is a powerful tool you can use to install, update and remove DEB packages, and is provided as part of some Linux distributions such as Debian and Ubuntu.
  
{{Documentation/Note | If you have the RPMS package and do not want to download the DEBS package, you can convert the RPM files to DEB files using the following command:
+
{{Note | If you have the RPM package and do not want to download the DEB package, you can convert the RPM files to DEB files using the following command:
  
 
     sudo alien -d --scripts *.rpm }}
 
     sudo alien -d --scripts *.rpm }}
 +
 +
{{Note|There are installation scripts written that may be useful for experienced users. For more information see the following:
 +
http://installation.openoffice.org/source/browse/installation/setup_native/scripts/}}
  
 
=== Install ===
 
=== Install ===
 
<ol>
 
<ol>
 
<li>Become root if necessary
 
<li>Become root if necessary
<source lang="text">
+
<syntaxhighlight lang="text">
 
su -
 
su -
</source></li>
+
</syntaxhighlight></li>
 
<li>Change directory to:
 
<li>Change directory to:
<source lang="text">
+
<syntaxhighlight lang="text">
 
<OpenOffice.org_unzip-dir>/DEBS
 
<OpenOffice.org_unzip-dir>/DEBS
</source></li>
+
</syntaxhighlight></li>
 
<li>The DEBS directory contains DEB packages for OpenOffice.org as well as Gnome and KDE integration.
 
<li>The DEBS directory contains DEB packages for OpenOffice.org as well as Gnome and KDE integration.
 
* For users with KDE, you can remove the Gnome integration DEB:
 
* For users with KDE, you can remove the Gnome integration DEB:
<source lang="text">
+
<syntaxhighlight lang="text">
 
rm openoffice.org-gnome-integration-<version>.deb
 
rm openoffice.org-gnome-integration-<version>.deb
</source>
+
</syntaxhighlight>
 
* For users with Gnome, you can remove the KDE integration DEB:
 
* For users with Gnome, you can remove the KDE integration DEB:
<source lang="text">
+
<syntaxhighlight lang="text">
 
rm openoffice.org-kde-integration-<version>.deb
 
rm openoffice.org-kde-integration-<version>.deb
</source></li>
+
</syntaxhighlight></li>
 
<li>Install into the standard <tt>/opt</tt> directory
 
<li>Install into the standard <tt>/opt</tt> directory
<source lang="text">
+
<syntaxhighlight lang="text">
 
dpkg -i *.deb
 
dpkg -i *.deb
</source>
+
</syntaxhighlight>
{{Documentation/Note|If you prefer to install {{OOo}} in a different location, use the <tt><nowiki>--instdir=<directory></nowiki></tt> option.
+
{{Note|If you prefer to install {{AOo}} in a different location, use the <tt><nowiki>--instdir=<directory></nowiki></tt> option.
<source lang="text">
+
<syntaxhighlight lang="text">
 
dpkg -i --installdir=<install-dir> *.deb
 
dpkg -i --installdir=<install-dir> *.deb
</source>}}</li>
+
</syntaxhighlight>}}</li>
<li>To install the {{OOo}} in the menus:
+
<li>To install the {{AOo}} in the menus:
<source lang="text">
+
<syntaxhighlight lang="text">
 
cd desktop-integration
 
cd desktop-integration
 
dpkg -i openoffice.org-debian-menus_<version>.deb
 
dpkg -i openoffice.org-debian-menus_<version>.deb
</source></li>
+
</syntaxhighlight></li>
 
</ol>
 
</ol>
  
You can safely delete the {{OOo}} installation packages after the install is complete.
+
You can safely delete the {{AOo}} installation packages after the install is complete.
  
 
=== Uninstall ===
 
=== Uninstall ===
Do not delete the {{OOo}} files from the file system. You must use the {{OOo}} Java setup or the DEB package manager to uninstall {{OOo}}.
+
Do not delete the {{AOo}} files from the file system. You must use either the {{AOo}} Java setup or the DEB package manager to uninstall {{AOo}}.
 
<ol>
 
<ol>
 
<li>Become root if necessary
 
<li>Become root if necessary
<source lang="text">
+
<syntaxhighlight lang="text">
 
su -
 
su -
</source></li>
+
</syntaxhighlight></li>
 
<li>To remove all {{OOo}} related packages:
 
<li>To remove all {{OOo}} related packages:
<source lang="text">
+
<syntaxhighlight lang="text">
 
apt-get remove openoffice.org*
 
apt-get remove openoffice.org*
</source></li>
+
</syntaxhighlight></li>
 
</ol>
 
</ol>
  
 
{{InterWiki Languages AdminGuide|articletitle=Documentation/Administration Guide/Linux}}
 
{{InterWiki Languages AdminGuide|articletitle=Documentation/Administration Guide/Linux}}
 
{{PDL1}}
 
{{PDL1}}

Latest revision as of 14:14, 1 February 2021


RPM Based Linux distributions

The RPM package manager is a powerful tool you can use to deploy software packages both locally and throughout a network.

Documentation note.png These instructions assume you have downloaded and extracted the Apache OpenOffice installation files.

Install

  1. Become root if necessary
    su -
  2. Change directory to:
    <OpenOffice.org_unzip-dir>/RPMS
  3. The RPMS directory contains RPM packages for Apache OpenOffice as well as Gnome and KDE integration.
    • For users with KDE, you can remove the Gnome integration RPM:
    rm openoffice.org-gnome-integration-<version>.rpm
    • For users with Gnome, you can remove the KDE integration RPM:
    rm openoffice.org-kde-integration-<version>.rpm
  4. Install into the standard /opt directory
    rpm -ivh *.rpm
    Documentation note.png If you prefer to install Apache OpenOffice in a different location, use the -prefix option.
     rpm -ivh –prefix <install-dir> *.rpm
    
  5. To install the Apache OpenOffice in the menus:
    cd desktop-integration

    Find the RPM for your specific Linux distribution and install it:

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

You can safely delete the Apache OpenOffice installation packages after the install is complete.

Uninstall

Do not delete the Apache OpenOffice files from the file system. You must use either the Apache OpenOffice Java setup or the RPM package manager to uninstall Apache OpenOffice.

  1. Become root if necessary
    su -
  2. Create a file 'ooo_packages' with all Apache OpenOffice related RPM packages
    rpm -qa | grep openoffice > ooo_packages
  3. Check the content of this file carefully. All packages in this list will be removed. This list does not include the JRE package that was installed if you used the Apache OpenOffice installation set that includes JRE.
  4. To remove all Apache OpenOffice related packages:
    rpm -e 'cat ooo_packages'

DEB Based Linux Distributions

The APT or DPKG package manager is a powerful tool you can use to install, update and remove DEB packages, and is provided as part of some Linux distributions such as Debian and Ubuntu.

Documentation note.png If you have the RPM package and do not want to download the DEB package, you can convert the RPM files to DEB files using the following command:
   sudo alien -d --scripts *.rpm 
Documentation note.png There are installation scripts written that may be useful for experienced users. For more information see the following:

http://installation.openoffice.org/source/browse/installation/setup_native/scripts/

Install

  1. Become root if necessary
    su -
  2. Change directory to:
    <OpenOffice.org_unzip-dir>/DEBS
  3. The DEBS directory contains DEB packages for OpenOffice.org as well as Gnome and KDE integration.
    • For users with KDE, you can remove the Gnome integration DEB:
    rm openoffice.org-gnome-integration-<version>.deb
    • For users with Gnome, you can remove the KDE integration DEB:
    rm openoffice.org-kde-integration-<version>.deb
  4. Install into the standard /opt directory
    dpkg -i *.deb
    Documentation note.png If you prefer to install Apache OpenOffice in a different location, use the --instdir=<directory> option.
    dpkg -i --installdir=<install-dir> *.deb
  5. To install the Apache OpenOffice in the menus:
    cd desktop-integration
    dpkg -i openoffice.org-debian-menus_<version>.deb

You can safely delete the Apache OpenOffice installation packages after the install is complete.

Uninstall

Do not delete the Apache OpenOffice files from the file system. You must use either the Apache OpenOffice Java setup or the DEB package manager to uninstall Apache OpenOffice.

  1. Become root if necessary
    su -
  2. To remove all Apache OpenOffice related packages:
    apt-get remove openoffice.org*
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages