User Tools

Site Tools


mac:libre_office

LibreOffice

LibreOffice is a suite of office productivity programs – word processor, spreadsheet, presentations, and diagraming. It supports ODF formats, as well as Microsoft Office formats. We don't have a frequent need for these applications, but occasionally we do.

We can determine the latest version of the software from the LibreOffice download page. However, we'll automate the download and installation via command line.

Installation

# Set which version we're going to download.
LIBREOFFICE_VERSION='4.0.4'
 
# Download the latest DMG file.
wget "http://download.documentfoundation.org/libreoffice/stable/${LIBREOFFICE_VERSION}/mac/x86/LibreOffice_${LIBREOFFICE_VERSION}_MacOS_x86.dmg"
 
 
# Open the DMG file.
hdiutil attach "LibreOffice_${LIBREOFFICE_VERSION}_MacOS_x86.dmg"
 
# Copy the app file into the Applications folder.
cp -a /Volumes/LibreOffice/LibreOffice.app /Applications/
 
# Unmount the DMG file.
hdiutil detach /Volumes/LibreOffice
 
# Add a dock icon.
dockutil --add /Applications/LibreOffice.app
 
# Remove the file we downloaded.
rm "LibreOffice_${LIBREOFFICE_VERSION}_MacOS_x86.dmg"
mac/libre_office.txt · Last modified: 2013/07/07 11:10 by Admin