@cendryon advice is OK, but assuming that:
- you insist on using vanilla Libre Office packages,
- you are rather experienced user
than the answer to your question is: rpm. Busybox can install them for you:
Code:
#!/bin/busybox sh
#
read -p "Do you wish to download and install LibreOffice now (y/n)?: " ANSWER
if [ $ANSWER = y ]; then
URL=http://download.documentfoundation.org/libreoffice/old/3.5.0.3/rpm/x86/
FILE1=LibO_3.5.0rc3_Linux_x86_install-rpm_en-US.tar.gz
FILE2=LibO_3.5.0rc3_Linux_x86_helppack-rpm_en-US.tar.gz
busybox rm -f /tmp/$FILE1 2>/dev/null
echo "Downloading installer:"
busybox wget $URL$FILE1 -P /tmp
busybox rm -f /tmp/$FILE2 2>/dev/null
echo "Downloading help pack:"
busybox wget $URL$FILE2 -P /tmp
if [ ! -e /tmp/$FILE1 ]; then
echo "Error in downloading. Check your internet connection."
echo "You can close this window now."
read
else
busybox tar -vxz -f /tmp/$FILE1 -C /tmp
busybox rm /tmp/$FILE1
busybox mkdir /tmp/oohlp
busybox tar -vxz -f /tmp/$FILE2 -C /tmp/oohlp
busybox rm /tmp/$FILE2
LIST1=$(busybox ls /tmp/LibO*/RPMS/*.rpm)
LIST2=$(busybox ls /tmp/oohlp/LibO*/RPMS/*.rpm)
for i in $LIST1 $LIST2; do
echo "Installing $i..."
busybox rpm -i $i
busybox rm $i
done
busybox rm -fr /tmp/LibO*
busybox rm -fr /tmp/oohlp
busybox ln -sf /opt/libreoffice3.5/program/soffice.bin /usr/bin/ooffice
fi
fi
EOF
REMARKS:
- you must have busybox in /bin,
- you should adjust URL, FILE1 and FILE2 to meet your needs,
- it will be your headache to integrate with KDE. (*)
Good luck!
(*)This script is taken from 4MLinux, and makes it possible to open documents using Midnight Commander.