Hi,
seems your message has been stripped by the List software, so I'm repeating it
below for conveniance.
Nino
-- Forwared Message -
Date: Mar 22, 2012; 6:08pm
From: Reinhard
To: users@global
Subject: Install RPM as non-superuser
Hi all,
I have been using Open/Libre Office under Linux since at least release
1.5, but there was an annoying problem during installation starting with
OpenOffice 2: As a rule, you must be superuser to install it (at least
for the RPM files). This can be critical. Once I had to write some
analysis in a company on a computer without any administrator available.
(It was a Linux machine with the broken OpenOffice 2.0 on it.) Happily,
I knew how to transform all the RPM's to a big tgz archive and carried
OpenOffice 2.1 as tgz with me. For simple usage, you only need the file
tree somewhere (locally), and you must know to call .../program/soffice to
start.
The shell script below does this transformation and expects a tar.gz
archive of RPM's from the official distribution as argument. It is more
or less straightforward but I remember that many people asked in a forum
what to do with alle the RPM's not being superuser (it *is* possible,
but you have to install your own package database). I know that there
are difficulties to offer such tgz packages because of upload speed of
contributors, but it could be possible to run this script on a server
after uploading the packages in recent form..
At least, I think it should be known (and what to do with the file
tree). A guy during the Linux Day in Chemnitz (Germany) recommended me
last weekend to put such instruction to the wiki. Before spamming, I
would like to ask the community if this is worth a wiki entry ... (I
have possibly one more item - a Python class to analyze and modify ODF
files without using LibreOffice, but I think this would be rather a
Python issue).
Best
Reinhard
#!/bin/bash
# transform LibreOffice-tgz to plain tgz
# Reinhard Wobst, @(#) Mar 20 2012, 14:02:58
case $1 in
(*.tar.gz) [[ -f $1 ]] || { echo \$1\ not found!; exit 1; };;
() echo missing argument; exit 1;;
(*) echo illegal file name:, $1; exit 1;;
esac
origin=$PWD
tmpdir=$(mktemp -u --tmpdir=.)
mkdir $tmpdir
ln $1 $tmpdir
cd $tmpdir
tar xzf *
pkgname=$(ls | fgrep -v tar.gz)
cd $pkgname
cd RPMS
for i in *.rpm; do rpm2cpio $i | cpio -id; done
cd opt
tar czf $origin/${pkgname}_tgz.tar.gz *
cd $origin
rm -rf $tmpdir
echo *** ${pkgname}_tgz.tar.gz created ***
--
--
For unsubscribe instructions e-mail to: users+h...@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