-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy path100-remove-software.sh
executable file
·460 lines (383 loc) · 14.7 KB
/
100-remove-software.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
#!/bin/bash
#set -e
##################################################################################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.alci.online
# Website : https://www.ariser.eu
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
##################################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################################
#tput setaf 0 = black
#tput setaf 1 = red
#tput setaf 2 = green
#tput setaf 3 = yellow
#tput setaf 4 = dark blue
#tput setaf 5 = purple
#tput setaf 6 = cyan
#tput setaf 7 = gray
#tput setaf 8 = light blue
##################################################################################################################################
if [ "$DEBUG" = true ]; then
echo
echo "------------------------------------------------------------"
echo "Running $(basename $0)"
echo "------------------------------------------------------------"
echo
read -n 1 -s -r -p "Debug mode is on. Press any key to continue..."
echo
fi
##################################################################################################################################
echo
tput setaf 2
echo "##############################################################"
echo "################### Start of the removal process"
echo "##############################################################"
tput sgr0
echo
echo
tput setaf 3
echo "##############################################################"
echo "################### Move configs for all - backup"
echo "##############################################################"
tput sgr0
echo
# always put the current .bashrc .zshrc away
if [ -f /etc/skel/.bashrc ]; then
sudo mv -v /etc/skel/.bashrc /etc/skel/.bashrc-nemesis
fi
if [ -f /etc/skel/.zshrc ]; then
sudo mv -v /etc/skel/.zshrc /etc/skel/.zshrc-nemesis
fi
echo
tput setaf 3
echo "########################################################################"
echo "######## Removing the driver for xf86-video-vmware if possible"
echo "########################################################################"
tput sgr0
echo
if ! systemd-detect-virt | grep -q "oracle"; then
if pacman -Qi xf86-video-vmware &> /dev/null; then
sudo pacman -Rs xf86-video-vmware --noconfirm
fi
fi
# when on any ArcoLinux ISO
if [[ -f /etc/dev-rel ]]; then
echo
tput setaf 3
echo "##############################################################"
echo "####### Removing software on ArcoLinux ISOs"
echo "##############################################################"
tput sgr0
echo
echo
tput setaf 3
echo "########################################################################"
echo "######## Launch of get-me-started - kernels - conkys - broadcom/realtek"
echo "########################################################################"
tput sgr0
echo
sh get-me-started
# order is important - dependencies
echo
tput setaf 3
echo "########################################################################"
echo "######## Removing the Arch Linux Tweak Tool"
echo "######## Removing arcolinux-keyring"
echo "######## Removing arcolinux-mirrorlist-git"
echo "########################################################################"
tput sgr0
echo
sudo pacman -Rns --noconfirm archlinux-tweak-tool-git
sudo pacman -Rs --noconfirm arcolinux-keyring
sudo pacman -Rs --noconfirm arcolinux-mirrorlist-git
echo
tput setaf 3
echo "########################################################################"
echo "######## Removing ArcoLinux packages"
echo "########################################################################"
tput sgr0
echo
sudo pacman -Rs --noconfirm arcolinux-pipemenus-git
sudo pacman -Rs --noconfirm a-candy-beauty-icon-theme-git
sudo pacman -Rs --noconfirm adobe-source-han-sans-cn-fonts
sudo pacman -Rs --noconfirm adobe-source-han-sans-jp-fonts
sudo pacman -Rs --noconfirm adobe-source-han-sans-kr-fonts
sudo pacman -Rs --noconfirm archlinux-kernel-manager
sudo pacman -Rs --noconfirm arcolinux-app-glade-git
sudo pacman -Rs --noconfirm arcolinux-arc-dawn-git
sudo pacman -Rs --noconfirm arcolinux-arc-kde
sudo pacman -Rs --noconfirm arcolinux-dconf-all-desktops-git
sudo pacman -Rs --noconfirm arcolinux-desktop-trasher-git
sudo pacman -Rs --noconfirm arcolinux-faces-git
sudo pacman -Rs --noconfirm arcolinux-fish-git
sudo pacman -Rs --noconfirm arcolinux-fonts-git
sudo pacman -Rs --noconfirm arcolinux-hblock-git
sudo pacman -Rs --noconfirm arcolinux-kvantum-git
sudo pacman -Rs --noconfirm arcolinux-local-applications-all-hide-git
sudo pacman -Rs --noconfirm arcolinux-local-applications-git
sudo pacman -Rs --noconfirm arcolinux-local-xfce4-git
sudo pacman -Rs --noconfirm arcolinux-logo-git
sudo pacman -Rs --noconfirm arcolinux-meta-log
sudo pacman -Rs --noconfirm arcolinux-root-git
sudo pacman -Rs --noconfirm arcolinux-sddm-simplicity-git
sudo pacman -Rs --noconfirm arcolinux-systemd-services-git
sudo pacman -Rs --noconfirm arcolinux-wallpapers-git
sudo pacman -Rs --noconfirm arcolinux-welcome-app-git
sudo pacman -Rs --noconfirm arcolinux-xfce-panel-profiles-git
sudo pacman -Rs --noconfirm arcolinux-zsh-git
sudo pacman -Rs --noconfirm arconet-variety-config
sudo pacman -Rs --noconfirm arconet-wallpapers
sudo pacman -Rs --noconfirm arconet-xfce
sudo pacman -Rs --noconfirm sofirem-git
if [ -f /usr/share/wayland-sessions/plasma.desktop ]; then
sudo pacman -Rs --noconfirm arcolinux-plasma-keybindings-git
sudo pacman -Rs --noconfirm arcolinux-plasma-servicemenus-git
sudo pacman -Rs --noconfirm arcolinux-plasma-theme-candy-beauty-arc-dark-git
sudo pacman -Rs --noconfirm arcolinux-plasma-theme-candy-beauty-nordic-git
sudo pacman -Rs --noconfirm arcolinux-gtk-surfn-plasma-dark-git
fi
echo
tput setaf 3
echo "########################################################################"
echo "######## Removing 3th party packages on ArcoLinux"
echo "########################################################################"
tput sgr0
echo
sudo pacman -Rs --noconfirm bibata-cursor-theme-bin
sudo pacman -Rs --noconfirm fastfetch
sudo pacman -Rs --noconfirm mintstick-git
sudo pacman -Rs --noconfirm nomacs-qt6-git
sudo pacman -Rs --noconfirm rate-mirrors-bin
sudo pacman -Rs --noconfirm xfce4-artwork
tput setaf 3
echo "##############################################################"
echo "################### Software removal for ArcoLinux done"
echo "##############################################################"
tput sgr0
echo
fi
# when on Arch Linux - remove conflicting files
if grep -q "Arch Linux" /etc/os-release && [ ! -e /bootloader ]; then
echo
tput setaf 2
echo "##############################################################"
echo "############### Removing software for Arch"
echo "##############################################################"
tput sgr0
echo
echo
tput setaf 3
echo "########################################################################"
echo "######## Removing the drivers"
echo "########################################################################"
tput sgr0
echo
# sudo pacman -Rs --noconfirm xf86-video-amdgpu --noconfirm
# sudo pacman -Rs --noconfirm xf86-video-ati --noconfirm
# sudo pacman -Rs --noconfirm xf86-video-fbdev --noconfirm
# sudo pacman -Rs --noconfirm xf86-video-nouveau --noconfirm
# sudo pacman -Rs --noconfirm xf86-video-openchrome --noconfirm
# sudo pacman -Rs --noconfirm xf86-video-vesa --noconfirm
# sudo pacman -Rs --noconfirm archinstall
# sudo pacman -Rs --noconfirm hardinfo-gtk3
# sudo pacman -Rs --noconfirm lftp
# sudo pacman -Rs --noconfirm memtest86+
# sudo pacman -Rs --noconfirm memtest86+-efi
echo
tput setaf 2
echo "##############################################################"
echo "################### Software on Arch removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on EOS - remove conflicting files
if grep -q "EndeavourOS" /etc/os-release; then
echo
tput setaf 3
echo "##############################################################"
echo "############### Removing software for EOS"
echo "##############################################################"
tput sgr0
echo
if [ -f /etc/skel/.config/rofi/config.rasi ]; then
sudo rm -v /etc/skel/.config/rofi/config.rasi
fi
sudo systemctl disable firewalld
sudo pacman -R --noconfirm firewalld
sudo pacman -R --noconfirm yay
echo
tput setaf 3
echo "##############################################################"
echo "################### Software removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on Garuda - remove conflicting files
if grep -q "Garuda" /etc/os-release; then
echo
tput setaf 3
echo "##############################################################"
echo "############### Removing software for Garuda"
echo "##############################################################"
tput sgr0
echo
sudo pacman -R --noconfirm blueman
sudo pacman -R --noconfirm garuda-xfce-settings
sudo pacman -R --noconfirm garuda-common-settings
sudo pacman -R --noconfirm garuda-bash-config
sudo pacman -R --noconfirm redshift
sudo pacman -Rs --noconfirm transmission-gtk
sudo pacman -Rs --noconfirm geary
sudo pacman -Rs --noconfirm celluloid
sudo pacman -Rs --noconfirm pitivi
sudo pacman -Rs --noconfirm audacity
sudo pacman -Rs --noconfirm xfburn
sudo pacman -Rs --noconfirm abiword
sudo pacman -Rs --noconfirm veracrypt
sudo pacman -Rs --noconfirm gtkhash
sudo pacman -Rs --noconfirm onboard
sudo pacman -Rs --noconfirm vim vim-runtime
sudo pacman -Rs --noconfirm gestures
sudo pacman -Rs --noconfirm pinta
sudo pacman -Rdd --noconfirm hblock
sudo pacman -Rdd --noconfirm modemmanager modem-manager-gui
sudo pacman -Rdd --noconfirm linux-wifi-hotspot
echo
tput setaf 2
echo "##############################################################"
echo "################### Software on Garuda removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on Archman - remove conflicting files
if grep -q "Archman" /etc/os-release; then
echo
tput setaf 3
echo "##############################################################"
echo "############### Removing software for Archman"
echo "##############################################################"
tput sgr0
sudo systemctl disable firewalld
sudo pacman -R --noconfirm firewalld
sudo pacman -R --noconfirm imagewriter
sudo pacman -R --noconfirm surfn-icons
sudo pacman -R --noconfirm grml-zsh-config
sudo rm -r /etc/skel/.config/Thunar
sudo rm -r /etc/skel/.config/xfce4
sudo rm /etc/skel/.config/mimeapps.list
sudo rm /etc/skel/.face
sudo rm /etc/skel/.xinitrc
sudo rm /etc/X11/xorg.conf.d/99-killX.conf
sudo rm /etc/modprobe.d/disable-evbug.conf
sudo rm /etc/modprobe.d/nobeep.conf
echo
tput setaf 2
echo "##############################################################"
echo "################### Software on Archman removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on Archcraft - remove conflicting files
if grep -q "archcraft" /etc/os-release; then
echo
tput setaf 3
echo "##############################################################"
echo "############### Removing software for Archcraft"
echo "##############################################################"
tput sgr0
echo
sudo rm -r /etc/skel/.config/*
sudo rm /etc/skel/.dmrc
sudo rm /etc/skel/.face
sudo rm /etc/skel/.gtkrc-2.0
sudo pacman -R --noconfirm archcraft-skeleton
sudo pacman -R --noconfirm archcraft-omz
sudo pacman -R --noconfirm archcraft-skeleton
sudo pacman -R --noconfirm archcraft-openbox
sudo pacman -R --noconfirm archcraft-gtk-theme-arc
sudo pacman -R --noconfirm archcraft-config-qt
#sudo pacman -R --noconfirm archcraft-neofetch
echo
tput setaf 2
echo "##############################################################"
echo "################### Software on Archcraft removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on BigLinux - remove conflicting files
if grep -q "BigLinux" /etc/os-release; then
echo
tput setaf 2
echo "##############################################################"
echo "####### Removing software for BigLinux"
echo "##############################################################"
tput sgr0
echo
sudo pacman -R --noconfirm big-skel
echo
tput setaf 2
echo "##############################################################"
echo "################### Software on Biglinux removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on RebornOS - remove conflicting files
if grep -q "RebornOS" /etc/os-release; then
echo
tput setaf 2
echo "##############################################################"
echo "####### Removing software for RebornOS"
echo "##############################################################"
tput sgr0
echo
sudo pacman -Rs parole --noconfirm
echo
tput setaf 2
echo "##############################################################"
echo "################### Software on RebornOS removed"
echo "##############################################################"
tput sgr0
echo
fi
# when on CachyOS - remove conflicting files
if grep -q "cachyos" /etc/os-release; then
echo
tput setaf 3
echo "##############################################################"
echo "############### Removing software for CachyOS"
echo "##############################################################"
tput sgr0
echo
sudo pacman -Rs --noconfirm cachyos-fish-config
sudo pacman -Rs --noconfirm fastfetch
sudo pacman -Rs --noconfirm paru
echo
tput setaf 3
echo "##############################################################"
echo "################### Software removed"
echo "##############################################################"
tput sgr0
echo
fi
echo
tput setaf 6
echo "##############################################################"
echo "################### $(basename $0) done"
echo "##############################################################"
tput sgr0
echo