-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuninstall.sh
69 lines (63 loc) · 2.15 KB
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
echo ""
echo "###################################"
echo "# dxf2gcode uninstall Script V1.0 #"
echo "# for Debian based OS #"
echo "# by Daniel Luginbuehl #"
echo "# [email protected] #"
echo "# (c) 2023 #"
echo "###################################"
echo ""
echo "Support: https://www.ltspiceusers.ch/#dxf2gcode.68"
echo ""
echo ""
aptversion="apt-get" # Old style = apt-get | New style = apt
echo "y=yes, n=no, q=quit"
echo "Do you also want to remove the dependencies (y/n/q)?"
while true; do
read answer
if echo "$answer" | grep -iq "^y" ;then
sudo $aptversion purge -y dos2unix
# sudo $aptversion purge -y pip-pip
# sudo $aptversion purge -y pip-pyqt5
sudo $aptversion purge -y pyqt5-dev-tools
sudo $aptversion purge -y qttools5-dev-tools
# sudo $aptversion purge -y pip-opengl
sudo $aptversion purge -y qtcreator pyqt5-dev-tools
sudo $aptversion purge -y poppler-utils
sudo $aptversion purge -y pstoedit
break
fi
if echo "$answer" | grep -iq "^n" ;then
break
fi
if echo "$answer" | grep -iq "^q" ;then
exit
fi
done
echo "I will now uninstall dxf2gcode (y/q)?"
while true; do
read answer
if echo "$answer" | grep -iq "^y" ;then
echo ""
break
fi
if echo "$answer" | grep -iq "^q" ;then
exit
fi
done
sudo rm -rf /usr/share/dxf2gcode
sudo rm -f /usr/local/bin/dxf2gcode
sudo rm -rf ~/.config/dxf2gcode
sudo rm -f /usr/local/lib/python3.7/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.8/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.9/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.10/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.11/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.12/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.13/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.14/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.15/dist-packages/dxf2gcode*
sudo rm -f /usr/local/lib/python3.16/dist-packages/dxf2gcode*
echo
echo "dxf2gcode is now removed!"