yaks-apt-uninstall.sh 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/env bash
  2. ################################################################################
  3. # FILE : yaks-apt-uninstall.sh
  4. # DESCRIPTION: Bash UnInstallation script for removing debian-ubuntu packages.
  5. # AUTHOR : SVAKSHA, http://svaksha.com/pages/Bio
  6. # SOURCE : http://svaksha.github.io/yaksha
  7. # COPYRIGHT© : 2005-Now SVAKSHA, All Rights Reserved.
  8. # LICENSE : GNU AGPLv3 and subject to meeting all the terms in the LICENSE
  9. # file: https://github.com/svaksha/yaksha/blob/master/LICENSE.md
  10. # DATES : Created:2012may05 - Updated:2016jan14
  11. ################################################################################
  12. #
  13. #
  14. # Usage: "./yaks-apt-uninstall.sh"
  15. yaksha_dir=~/yaksha/
  16. # Log the date and time of execution of bash script into the `out` files.
  17. date +'%c|started running `apt-get`: ' >> out-yaks-apt-uninstall.log
  18. date +"%c|completed running: $?" >> out-yaks-apt-uninstall.log
  19. # UNINSTALL UNITY on ubuntu 14.04 - dont do this without installing GNOME first.
  20. # http://askubuntu.com/questions/6302/how-can-you-remove-unity
  21. # http://askubuntu.com/questions/651013/can-i-remove-unity-now-and-how?
  22. function uninstall_unity() {
  23. sudo apt-get -y update
  24. sudo apt-get -y upgrade
  25. sudo apt-get -y remove unity unity-2d
  26. sudo apt-get -y remove unity-2d-panel unity-2d-spread
  27. sudo apt-get -y remove unity-common unity-2d-common
  28. sudo apt-get -y remove unity-asset-pool unity-services
  29. sudo apt-get -y remove unity-lens-files gir1.2-unity-5.0
  30. sudo apt-get -y remove unity-lens-music unity-lens-applications
  31. sudo apt-get -y remove nux-tools libunity-misc4
  32. sudo apt-get -y remove indicator-sound indicator-power
  33. sudo apt-get -y remove indicator-appmenu libindicator7
  34. sudo apt-get -y remove indicator-application indicator-datetime
  35. sudo apt-get -y remove indicator-messages libnux-2.0-0
  36. # Remove AMAZON shopping lens
  37. sudo apt-get -y remove unity-webapps-common
  38. }
  39. uninstall_unity='all'
  40. key="$1"
  41. case $uninstall_unity in
  42. unity)
  43. uninstall_unity
  44. ;;
  45. all)
  46. uninstall_unity
  47. ;;
  48. *)
  49. echo "UnInstallation in progress, almost done!"
  50. esac