diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 14:02:30 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 14:02:30 +0000 |
commit | fa4bf1ee8c74429f5b506ea94485bdd6b5d89f58 (patch) | |
tree | b1cd0fe5794e3f52f14e292afbdb0020ea909cf6 /setup_native/scripts/uninstall_linux.sh | |
parent | db4869d49caef34000077bd288f2d778062bc2e0 (diff) |
INTEGRATION: CWS customizer (1.1.2); FILE ADDED
2004/09/01 10:01:43 is 1.1.2.2: #i33634# scripts for userland installation
2004/08/31 15:41:48 is 1.1.2.1: #i33634# userland scripts
Diffstat (limited to 'setup_native/scripts/uninstall_linux.sh')
-rw-r--r-- | setup_native/scripts/uninstall_linux.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/setup_native/scripts/uninstall_linux.sh b/setup_native/scripts/uninstall_linux.sh new file mode 100644 index 000000000000..a7e139aaf708 --- /dev/null +++ b/setup_native/scripts/uninstall_linux.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Linux deinstallation +# No parameter required, all RPMs listed in $HOME/.RPM_OFFICEDATABASE +# will be removed. + +if [ $# -ne 0 ] +then + echo "No parameters required" + echo "All RPMs listed in $HOME/.RPM_OFFICEDATABASE will be removed" + exit 2 +fi + +USER_DIR=~/.StarOffice8 +RPM_DB_PATH=$HOME/.RPM_OFFICEDATABASE + +# Output ... +clear +echo "###################################################################" +echo "# Deinstallation of StarOffice RPMs #" +echo "###################################################################" +echo +echo "Path to the RPM database: " $RPM_DB_PATH +echo "RPMs to deinstall:" +echo "`rpm --dbpath $RPM_DB_PATH --query --all`" +echo "====================================================================" +echo +rpm --dbpath $RPM_DB_PATH --erase `rpm --dbpath $RPM_DB_PATH --query --all` + +echo +echo "Deleting directories" +rm -rf $RPM_DB_PATH +rm -rf $USER_DIR + +echo +echo "Deinstallation done ..." + +exit 0
\ No newline at end of file |