fa4bf1ee8c
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
38 lines
No EOL
968 B
Bash
38 lines
No EOL
968 B
Bash
#!/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 |