-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupgrade
executable file
·45 lines (34 loc) · 1.07 KB
/
upgrade
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
#!/bin/bash
# Text Reset
RESET='\e[0m'
BLINK='\e[5m'
# Regular Colors
BLACK='\e[0;30m'
RED='\e[0;31m'
GREEN='\e[0;32m'
YELLOW='\e[0;33m'
BLUE='\e[0;34m'
PURPLE='\e[0;35m'
CYAN='\e[0;36m'
WHITE='\e[0;37m'
clear
echo -e "${CYAN}=================================================================${RESET}"
echo -e "${GREEN} System Upgrade!! ${RESET}"
echo -e "${CYAN}=================================================================${RESET}"
sudo apt update
echo -e "${YELLOW}APT update finished...${RESET}"
sudo apt full-upgrade -y
echo -e "${YELLOW}APT distributive upgrade finished...${RESET}"
sudo apt upgrade -y
echo -e "${YELLOW}APT upgrade finished...${RESET}"
sudo apt autoremove -y
echo -e "${YELLOW}APT auto remove finished...${RESET}"
sudo apt autoclean -y
echo -e "${YELLOW}APT auto clean finished...${RESET}"
sudo apt remove -y
echo -e "${YELLOW}APT remove finished...${RESET}"
sudo apt clean -y
echo -e "${YELLOW}APT clean finished...${RESET}"
if [ -f /var/run/reboot-required ]; then
echo -e "${RED}Reboot required!${RESET}"
fi