-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinuxmint-blacklist
267 lines (243 loc) · 5.08 KB
/
linuxmint-blacklist
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
#!/bin/bash
# Developed only for Linux Mint 20.1 Ulyssa
# For own use.
# License: GNU GPL v.3 http://www.gnu.org/licenses/gpl-3.0.en.html
# Version 3
# Destiny: Script to check whether unnecessary packages are installed.
# The package list is created to my needs.
# I am not responsible for other people's needs.
# Script usage: bash script
## LINKS:
## awk colors: awk: warning: escape sequence `\e' treated as plain `e'
## https://stackoverflow.com/questions/14482101/awk-adding-color-code-to-text
LIST='bluez
bluez-obexd
bluez-tools
avahi-autoipd
avahi-daemon
avahi-utils
libnss-mdns
ghostscript
ghostscript-x
printer-driver-pnm2ppa
printer-driver-ptouch
printer-driver-sag-gdi
libcamel
evolution-data-server
evolution-data-server-common
libebackend
libebook
libecal
libedata-book
libedata-cal
libedataserver
libedataserverui
cmake-data
libavahi-client3
libavahi-common-data
libavahi-common3
libcups2
libdbus-1-3
libgmp10
libgnutls30
libgssapi-krb5-2
libhogweed5
libjsoncpp1
libk5crypto3
libkeyutils1
libkrb5-3
libkrb5support0
libnettle7
libp11-kit0
librhash0
libssl1.1
libtasn1-6
xdg-desktop-portal
xdg-desktop-portal-gtk
samba-libs
language-pack-gnome-en
language-pack-gnome-en-base
language-pack-gnome-pl
language-pack-gnome-pl-base
libtracker-control
libtracker-miner
libtracker-sparql
easytag-nautilus
nautilus
tracker
tracker-extract
tracker-miner-fs
libfprint-2-2
libfprint-2-tod1
fwupd
fwupd-signed
libfwupd2
libfwupdplugin1
thunderbird
thunderbird-gnome-support
thunderbird-locale-en
thunderbird-locale-en-us
thunderbird-locale-pl
network-manager-config-connectivity-ubuntu
ubuntu-report
apport
apport-gtk
apport-symptoms
libsmbclient
libwbclient0
gvfs-backends
libmpv1
vlc-plugin-samba
7kaa
tj3
openssh-client
hypnotix
libgnome-autoar-0-0
thermald
steam-devices
systemd-timesyncd
ubiquity-casper
ubiquity-slideshow-mint
mint-live-session
gparted-common
ubiquity
language-selector-common
python3-pam
boot-sav
boot-sav-extra
python3-debconf
mokutil
glade2script
gparted
ubiquity-ubuntu-artwork
ubiquity-frontend-gtk
boot-repair
celluloid
casper
lupin-casper
cifs-utils
python3-samba
samba-common
smbclient
samba-common-bin
ca-certificates-java
default-jre-headless
default-jre
libreoffice-sdbc-hsqldb
openjdk-11-jre-headless
openjdk-11-jre
brltty
blueberry
gnome-bluetooth
gir1.2-gnomebluetooth-1.0
pulseaudio-module-bluetooth
bluetooth
ntp
ntpdate
openvpn
network-manager-openvpn
network-manager-openvpn-gnome
printer-driver-splix
system-config-printer
printer-driver-foo2zjs
hplip
system-config-printer-gnome
printer-driver-gutenprint
system-config-printer-udev
system-config-printer-common
python3-cupshelpers
bluez-cups
printer-driver-hpcups
cups-pk-helper
cups-server-common
cups-common
python3-cups
cups-filters
cups-ppdc
cups-filters-core-drivers
cups-bsd
cups-core-drivers
cups-daemon
cups
cups-client
cups-ipp-utils
cups-browsed
printer-driver-m2300w
printer-driver-pxljr
foomatic-db-compressed-ppds
foomatic-filters
mint-meta-mate
mate-power-manager
upower
gir1.2-upowerglib-1.0
telnet
secureboot-db
ftp
sane-utils
update-inetd
libproxy1-plugin-networkmanager
network-manager-pptp
network-manager-pptp-gnome
xul-ext-lightning
iio-sensor-proxy
sticky
hplip-data
printer-driver-postscript-hp
update-manager
update-manager-core
ubuntu-release-upgrader-gtk
update-notifier
update-notifier-common
hw-probe
geoclue-2.0
'
## related to the internet:
#network-manager-config-connectivity-ubuntu
#apport
#update-notifier
# python3-popcon ? https://popcon.ubuntu.com/
#popularity-contest
#hw-probe https://linux-hardware.org/
###########################}
# Check Dependecies - List is not created automatically
[[ -z $(type -P apt) ]] && DEP="$DEP"$'\n'"apt"
[[ -z $(type -P awk) ]] && DEP="$DEP"$'\n'"awk"
[[ -z $(type -P echo) ]] && DEP="$DEP"$'\n'"echo"
[[ -z $(type -P grep) ]] && DEP="$DEP"$'\n'"grep"
[[ -z $(type -P sort) ]] && DEP="$DEP"$'\n'"sort"
[[ -z $(type -P uniq) ]] && DEP="$DEP"$'\n'"uniq"
# End script if exist any error
[ -z "$DEP" ] || { echo " Error: Missing dependencies, before run script please install: $DEP" ; exit 1 ;}
###########################}
NC='\e[0m' # Reset Color
GN='\e[0;32m' # Green ECHO
CN='\e[0;36m' # Cyan ECHO
GREEN_ECHO() {
echo -e "${GN} $1 ${NC}"
}
CYAN_ECHO() {
echo -e "${CN} $1 ${NC}"
}
# Display repeats
REPEATS=$( sort <<< "$LIST" | uniq -d)
if [ ! -z "$REPEATS" ] ; then
echo "Warning: The package names are repeated in the list:"
echo "$REPEATS"
echo "==========="
fi
INSTALLED=$(apt list --installed | sed '1d' | tr ' ' '/' | awk -F '/' '{print $1 " " "(" $4 ")"}')
GREEN_ECHO "PACKAGE --> FOUND INSTALLED :ARCHITECTURE"
while read LINE ; do
if $(grep -q "$LINE" <<< "$INSTALLED") ; then
LIST_INSTALLED_2=$(grep "$LINE" <<< "$INSTALLED")
while read LINE_2 ; do
ONLY_NAME=$(awk -F ' ' '{print $1}' <<< "$LINE_2")
if [[ "$LINE" == "$ONLY_NAME" ]] ; then
## echo something | awk '{ print "\033[34m"$1" in colour \033[0m";}'
COLORED=$(echo "$LINE --> $LINE_2" | awk -F ' ' '{print $1 " " $2 " " "\33[36m" $3 "\033[0m" " " $4 ;}')
echo -e "$COLORED"
#echo "$LINE --> $LINE_2"
fi
done <<< "$LIST_INSTALLED_2"
fi
done <<< "$LIST"