Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.9 KiB

  1. #!/bin/bash
  2. # TigerOS script for the removal of unwanted major-specific packages
  3. # Check to see if the current user is root
  4. if [ $EUID != 0 ]
  5. then
  6. echo "Please run this script as root (sudo $@$0)."
  7. exit
  8. fi
  9. echo -e "Welcome to the TigerOS package removal script.\n
  10. This script will remove all files and packages installed from a specific major."
  11. echo -e "\n"
  12. sleep 5;
  13. PS3='Please enter the major for the courses you wish to remove: '
  14. options=("CS" "IT/WMC" "NSSA/CIT" "SE" "Quit")
  15. select opt in "${options[@]}"
  16. do
  17. case $opt in
  18. "CS")
  19. echo -e "Welcome to the TigerOS CS package removal script.\n
  20. This script will remove Intellij idea, PyCharm, prolog, racket, and JFLAP from your machine."
  21. while true; do
  22. read -p "Do you wish to continue? [y/n] " yn
  23. case $yn in
  24. [Yy]* ) break;;
  25. [Nn]* ) exit;;
  26. esac
  27. done
  28. # removal script cannot be done without the installer script implementing this section.
  29. ;;
  30. "IT/WMC")
  31. echo -e "Welcome to the TigerOS IT/WMC package removal script.\n
  32. This script will remove mysql, mongodb, subversion, filezilla, and nodejs from your machine."
  33. while true; do
  34. read -p "Do you wish to continue? [y/n] " yn
  35. case $yn in
  36. [Yy]* ) break;;
  37. [Nn]* ) exit;;
  38. esac
  39. done
  40. # removal script here.
  41. ;;
  42. "NSSA/CIT")
  43. echo -e "Welcome to the TigerOS NSSA/CIT package removal script.\n
  44. This script will remove wireshark, python 2.7, python 3, and jGrasp from your machine."
  45. while true; do
  46. read -p "Do you wish to continue [y/n] " yn
  47. case $yn in
  48. [Yy]* ) break;;
  49. [Nn]* ) exit;;
  50. esac
  51. done
  52. sudo dnf remove wireshark python python3
  53. # WARNING --> jGrasp has not been implemented in the installer script yet. Cannot remove
  54. echo "Install finished."
  55. exit
  56. ;;
  57. "SE" )
  58. echo -e "Welcome to the TigerOS Software Engineering removal script.\n
  59. This script will remove ruby, eclipse, Spin, sqlite3 and MIT Alloy from your machine."
  60. while true; do
  61. read -p "Do you wish to continue? [y/n] " yn
  62. case $yn in
  63. [Yy]* ) break;;
  64. [Nn]* ) exit;;
  65. esac
  66. done
  67. # Installer script has not implemented this section yet. Cannot remove files.
  68. echo "All files have been removed."
  69. exit
  70. ;;
  71. "Quit")
  72. break
  73. ;;
  74. *)
  75. echo "Invalid Option."
  76. ;;
  77. esac
  78. done