-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebclean
executable file
·26 lines (26 loc) · 1.24 KB
/
debclean
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
#!/bin/bash
bold=$(tput bold)
normal=$(tput sgr0)
echo "${bold}*********************************************************************"
echo "${bold}** DEBCLEAN **"
echo "${bold}*********************************************************************"
echo "${bold}This script will clean your entire Debian system${normal}"
echo "${bold}If you don't know what will happen to your system, close this window"
echo "and go to --> github.com/GMornat/debclean"
echo "We aren't responsible for any brick or something else${normal}"
echo "${bold}THIS PROGRAM USES SUPERUSER. BE CAREFUL !${normal}"
read -p "${bold}Press any prompt to continue${normal}"
echo "${bold}Updating packages list & tree from repositories source${normal}"
sudo apt-get update -y
echo "${bold}Cleaning and removing unused packages${normal}"
sudo apt-get autoclean -y
sudo apt-get autoremove -y
echo "${bold}Updating packages${normal}"
sudo apt-get dist-upgrade -y
echo "${bold}Correcting dependecies${normal}"
sudo apt-get -f -y install
echo "${bold}Cleaning${normal}"
sudo apt-get autoclean -y
echo "${bold}Complete!${normal}"
echo "${bold}--- THANKS FOR USING DEBCLEAN ---${normal}"
read -p "${bold}Press any prompt to leave the program${normal}"