Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## Script d'installtion de libreoffice version 4.0.4
- green='\e[32m'
- yellow='\e[33m'
- red='\e[31m'
- cyan='\e[36m'
- NC='\e[0m'
- echo -e ""
- printf "${cyan} Supression de libreoffice 3 ${NC} ${red} Veuillez taper votre PASSWD ${NC}"
- sudo apt-get autoremove libreoffice ; sudo apt-get remove libreoffice-core ;
- echo -e ""
- printf "${cyan} L'installation de libreoffice va démarrer, veuillez patienter la fin de l'installation${NC} ."
- echo -e ""
- printf "${yellow} Démarrage du téléchargement..\n${NC}"
- wget http://download.documentfoundation.org/libreoffice/stable/4.0.4/deb/x86/LibreOffice_4.0.4_Linux_x86_deb.tar.gz ;
- echo -e ""
- wget http://download.documentfoundation.org/libreoffice/stable/4.0.4/deb/x86/LibreOffice_4.0.4_Linux_x86_deb_langpack_fr.tar.gz ;
- echo -e ""
- wget http://download.documentfoundation.org/libreoffice/stable/4.0.4/deb/x86/LibreOffice_4.0.4_Linux_x86_deb_helppack_fr.tar.gz
- echo -e ""
- printf "${green} Décompression des paquets téléchargés..\n${NC}"
- echo -e ""
- tar xvzf LibreOffice_4.0.4_Linux_x86_deb.tar.gz ;
- echo -e ""
- tar xvzf LibreOffice_4.0.4_Linux_x86_deb_langpack_fr.tar.gz ;
- echo -e ""
- tar xvzf LibreOffice_4.0.4_Linux_x86_deb_helppack_fr.tar.gz ;
- echo -e ""
- cd LibreOffice_4.0.4.2_Linux_x86_deb/DEBS/ ;
- echo -e ""
- printf "${yellow} Installation des paquets..\n${NC} ${red} Veuillez taper votre PASSWD..\n${NC}"
- sudo dpkg --install *.deb
- echo -e ""
- cd desktop-integration ;
- echo -e ""
- sudo dpkg --install *.deb ;
- echo -e ""
- cd LibreOffice_4.0.4.2_Linux_x86_deb_langpack_fr/DEBS/ ;
- echo -e ""
- sudo dpkg --install *.deb
- echo -e ""
- cd LibreOffice_4.0.4.2_Linux_x86_deb_helppack_fr/DEBS/ ;
- echo -e ""
- sudo dpkg --install *.deb
- echo -e ""
- printf "${cyan} Fin de l'installation !${NC}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement