引用:shell> vi uninstallopenoffice.sh
for file in `rpm -qa|grep openoffice`
do
rpm -e --nodeps $file
done
shell> chmod +x uninstallopenoffice.sh
完成后运行uninstallopenoffice.sh就可以轻松地卸载掉openoffice了。
引用:shell> vi uninstallopenoffice.sh
for file in `rpm -qa|grep openoffice`
do
rpm -e --nodeps $file
done
shell> chmod +x uninstallopenoffice.sh