Advertisement
Guest User

libreoffice4.sh

a guest
Jul 1st, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. #!/bin/bash
  2. ## Script d'installtion de libreoffice version 4.0.4
  3. green='\e[32m'
  4. yellow='\e[33m'
  5. red='\e[31m'
  6. cyan='\e[36m'
  7. NC='\e[0m'
  8.  
  9. echo -e ""
  10. printf "${cyan} Supression de libreoffice 3 ${NC} ${red} Veuillez taper votre PASSWD ${NC}"
  11. sudo apt-get autoremove libreoffice ; sudo apt-get remove libreoffice-core ;
  12. echo -e ""
  13. printf "${cyan} L'installation de libreoffice va démarrer, veuillez patienter la fin de l'installation${NC} ."
  14. echo -e ""
  15. printf "${yellow} Démarrage du téléchargement..\n${NC}"
  16. wget http://download.documentfoundation.org/libreoffice/stable/4.0.4/deb/x86/LibreOffice_4.0.4_Linux_x86_deb.tar.gz ;
  17. echo -e ""
  18. wget http://download.documentfoundation.org/libreoffice/stable/4.0.4/deb/x86/LibreOffice_4.0.4_Linux_x86_deb_langpack_fr.tar.gz ;
  19. echo -e ""
  20. wget http://download.documentfoundation.org/libreoffice/stable/4.0.4/deb/x86/LibreOffice_4.0.4_Linux_x86_deb_helppack_fr.tar.gz
  21. echo -e ""
  22. printf "${green} Décompression des paquets téléchargés..\n${NC}"
  23. echo -e ""
  24. tar xvzf LibreOffice_4.0.4_Linux_x86_deb.tar.gz ;
  25. echo -e ""
  26. tar xvzf LibreOffice_4.0.4_Linux_x86_deb_langpack_fr.tar.gz ;
  27. echo -e ""
  28. tar xvzf LibreOffice_4.0.4_Linux_x86_deb_helppack_fr.tar.gz ;
  29. echo -e ""
  30. cd LibreOffice_4.0.4.2_Linux_x86_deb/DEBS/ ;
  31. echo -e ""
  32. printf "${yellow} Installation des paquets..\n${NC} ${red} Veuillez taper votre PASSWD..\n${NC}"
  33. sudo dpkg --install *.deb
  34. echo -e ""
  35. cd desktop-integration ;
  36. echo -e ""
  37. sudo dpkg --install *.deb ;
  38. echo -e ""
  39. cd LibreOffice_4.0.4.2_Linux_x86_deb_langpack_fr/DEBS/ ;
  40. echo -e ""
  41. sudo dpkg --install *.deb
  42. echo -e ""
  43. cd LibreOffice_4.0.4.2_Linux_x86_deb_helppack_fr/DEBS/ ;
  44. echo -e ""
  45. sudo dpkg --install *.deb
  46. echo -e ""
  47. printf "${cyan} Fin de l'installation !${NC}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement