Jump to content
ElementaryOS France

LibreOffice 4.2


Recommended Posts

32 bit

$ wget download.documentfoundation.org/libreoffice/stable/4.2.0/deb/x86/LibreOffice_4.2.0_Linux_x86_deb.tar.gz
$ tar -xzvf LibreOffice_4.2.0_Linux_x86_deb.tar.gz
$ cd LibreOffice_4.2.0.4_Linux_x86_deb\DEBS
$ sudo dpkg -i *.deb

 

64 bit

$ wget download.documentfoundation.org/libreoffice/stable/4.2.0/deb/x86_64/LibreOffice_4.2.0_Linux_x86-64_deb.tar.gz
$ tar -xzvf LibreOffice_4.2.0_Linux_x86-64_deb.tar.gz
$ cd LibreOffice_4.2.0.4_Linux_x86-64_deb\DEBS
$ sudo dpkg -i *.deb

Link to comment
Share on other sites

Sinon j'ai fait un petit script en me basant sur celui de SkyzO (kernel) pour l'architecture de la machine.

Cela évite de passer par un dépôt.

 

wget http://hitsouburaiken.com/dossiers/unix/eos/libreoffice4-2.sh
sudo sh libreoffice4-2.sh

 

Contenu du script

#!/bin/sh
# 
# Create by Bailly Benjamin - Hitsouburaiken.com
# for www.elementaryos-fr.org
#

# Répétoire temporaire
TMP=/tmp
# i386 links
link_86="http://download.documentfoundation.org/libreoffice/stable/4.2.0/deb/x86/LibreOffice_4.2.0_Linux_x86_deb.tar.gz"
# amd64 links
link_64="http://download.documentfoundation.org/libreoffice/stable/4.2.0/deb/x86_64/LibreOffice_4.2.0_Linux_x86-64_deb.tar.gz"
# architecture
arch=`uname -m`

echo "$(tput sgr 0 1)$(tput bold)Installation LibreOffice 4.2 - Hitsouburaiken$(tput sgr0)"
echo ""


echo "$(tput setaf 3)---                                                                            ---$(tput sgr0)"
echo "$(tput setaf 3)Attention: Vous devez lancer ce script en tant que root : sudo sh libreoffice4-2.sh $(tput sgr0)"
echo "$(tput setaf 3)---                                                                            ---$(tput sgr0)"

echo ""
echo "$(tput sgr 0 1)$(tput bold)Choix:$(tput sgr0)"
echo ""
echo "    1) Installation"
echo "    2) Suppression"
echo "    fr) Pack langue : French"
echo ""
echo -n "Veuillez faire votre choix " 
read choix
# Vérification de la réponse

if [ "$choix" = "1" ]; then

   if  [ $arch = i686 ] || [ $arch = i386 ]; then
        cd $TMP
        wget $link_86
        tar -xzvf LibreOffice_4.2.0_Linux_x86_deb.tar.gz
        cd LibreOffice_4.2.0.4_Linux_x86_deb/DEBS/
        dpkg -i *.deb

   elif [ $arch = "x86_64" ]; then
           cd $TMP
           wget $link_64
           tar -xzvf LibreOffice_4.2.0_Linux_x86-64_deb.tar.gz
           cd LibreOffice_4.2.0.4_Linux_x86-64_deb/DEBS/
           dpkg -i *.deb

    else
        echo "$(tput sgr 0 1)$(tput setaf 1)Unsupported Architecture $(tput sgr0)"
        echo "$(tput setaf 1)`uname -a`$(tput sgr0)"
    fi


elif [ "$choix" = "2" ]; then

   apt-get remove -y --purge libreoffice*.*

elif [ "$choix" = "fr" ]; then
   apt-get install -y libreoffice-l10n-fr

else

   echo "Erreur"
fi

 

Il existe surement des petites erreurs, mais il est fonctionnel.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...