1 ################################################################################
2 # Copyright (c) [2020] [Radisys] #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################
16 # This script is used to clean-up the system environment
19 echo "***** Environment Clean-up Start *****"
21 if [ -f /etc/os-release ]; then
26 echo "===> Uninstalling GCC"
27 if [ $OS == "ubuntu" ] ; then
28 sudo apt-get remove -y build-essential
30 sudo yum groups mark remove -y "Development Tools"
34 echo "===> Uninstalling LKSCTP"
35 if [ $OS == "ubuntu" ] ; then
36 sudo apt-get remove -y libsctp-dev
38 sudo yum remove -y lksctp-tools-devel
42 echo "===> Uninstalling PCAP"
43 if [ $OS == "ubuntu" ] ; then
44 sudo apt-get remove -y libpcap-dev
46 sudo yum remove -y libpcap-devel
50 echo "===> Uninstalling XTERM"
51 if [ $OS == "ubuntu" ] ; then
52 sudo apt-get remove -y xterm
54 sudo yum remove -y xterm
58 echo "***** Environment Clean-up Complete *****"
60 ################################################################################
62 ################################################################################