Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


FWIW, I wrote this script a couple of years ago to do the installations for me.

#!/bin/bash

# A script to install or update libreoffice releases properly

if [[ "$1" == "-x" ]]; then
    shift
    set -x
fi

me=`basename $0`
Usage() {
    echo "Usage: $me [-x][-h|--help] <gzipped-tarball> [<gzipped-tarball>...]"
    exit 0
}

if [[ -z "$1" || "$1" == "-h" || "$1" == "--help" ]]; then Usage; fi

# Change these to install on rpm base systems
tgt=DEBS
cmd="dpkg -i"
sfx=deb

for tb in $*; do
    if [[ ! -f $tb ]]; then
        if [[ -f "$tb.tgz" ]]; then
            tb="$tb.tgz"
        elif [[ -f "$tb.tar.gz" ]]; then
            tb="$tb.tar.gz"
        else
            echo "Can't find $tb or $tb.tgz or $tb.tar.gz - skipping..."
            read ln
            continue
        fi
    fi

    # find out what the name of the uncompressed subdirectory will be
    dst=`tar tzf $tb 2> /dev/null | head -1 | awk -F/ '{print $1}'`
    tar xzf $tb
    if [[ ! -d $dst/$tgt ]]; then
        echo "Can't find $me directory $dst/$tgt - skipping..."
        read ln
        continue
    fi

    # install or update, depending on how I was called
    cd $dst/$tgt
    case $me in
        loinst)
            sudo $cmd *.$sfx
            if [[ -d desktop-integration ]]; then
                cd desktop-integration
                sudo $cmd *.$sfx
                cd ..
            fi
            cd ../..
            ;;
        loupdate)
            cd ..
            sudo ./update
            cd ..
            ;;
    esac

    # delete the installation directory
    /bin/rm -rf $dst
done

echo ""

MR


On Thu, Oct 8, 2015 at 7:47 PM, John R. Sowden
<jsowden@americansentry.net> wrote:
I have been dealing with this issue for years, going back to the Open Office
days.

How do you install Libreoffice under Ubuntu?

Where are the step by step, clearly documented instructions?

When are they not either on the download page in LO or a clear link on the
download page?

Here's what I find on the net including a google search:

1) Use the Software Center in Ubuntu.  Never mind that it is not the current
version.  Never mind that  the version is not posted in the "more Info"
description, along with the date of the version.

or

20 Go to libreoffice.org.  Press the big download button.  Now what?  Start
googling for instructions.
Expect the instructions to not tell you:
    an explanation of each command.
    where the program will end up on your system.
    whether it will automatically get rid of the remnant files and even the
original downloaded files.
    how to deal with the help, and why.

or

3) Google like I did last night and find that there are "ppa"s, with a well
written explanation of the "fresh ppa" being better and why. Now try to find
how to install the most current version, whether you have a copy on your
computer or not.

and

How to deal with dependencies, not just finding out that you have
"dependency problems" but also that LO will not install due to them.

It seems that this is a universal Linux problem.  If you don't know the
intricacies of Linux, then you shouldn't be using it.  So much for attaining
more market share.

John Sowden










--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems?
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be
deleted

-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.