-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleanup.sh
66 lines (59 loc) · 1.56 KB
/
cleanup.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
#!/bin/bash
#Author: TheFenrisLycaon
#Github: https://github.com/TheFenrisLycaon
echo ' -`'
echo ' .o+`'
echo ' `ooo/'
echo ' `+oooo:'
echo ' `+oooooo:'
echo ' -+oooooo+:'
echo ' `/:-:++oooo+:'
echo ' `/++++/+++++++:'
echo ' `/++++++++++++++:'
echo ' `/+++ooooooooooooo/`'
echo ' ./ooosssso++osssssso+`'
echo ' .oossssso-````/ossssss+`'
echo ' -osssssso. :ssssssso.'
echo ' :osssssss/ osssso+++.'
echo ' /ossssssss/ +ssssooo/-'
echo ' `/ossssso+/:- -:/+osssso+-'
echo ' `+sso+:-` Arch Cleaner `.-/+oso:'
echo '`++:. `-/+/'
echo '.` Mark - II ` '
echo ''
echo ''
echo '====== Sync Database ====='
echo ''
sudo pacman -Syy
echo ''
echo '====== Clean Pacman Cache ====='
echo ''
echo ' Careful this eliminates the possibility of using downgrade '
echo ''
sudo pacman -Scc
echo ''
echo '====== Removing unused packages ====='
echo ''
sudo pacman -Rns $(pacman -Qtdq)
echo ''
echo '====== Update mlocate database ====='
echo ''
sudo updatedb
echo ''
echo ''
echo '====== Update mlocate database ====='
echo ''
sudo journalctl --vacuum-size=5M
echo ''
echo ''
echo '====== rmshit ====='
echo ''
if [ -f /etc/init.d/shittyshit.py ]; then
python /etc/init.d/shittyshit.py
else
echo "shittyshit.py not found!"
echo 'Downloading....'
echo ''
sudo curl -O https://raw.githubusercontent.com/TheFenrisLycaon/Arch-Cleaner/master/shittyshit.py
python shittyshit.py
fi