Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo dpkg --configure -a
- sudo apt-fast -f install
- sudo dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge
- clear
- echo "Updating APT database..."
- sudo apt-fast update > /dev/null 2>&1
- sudo apt-fast -y dist-upgrade
- sudo apt-fast -y upgrade
- sudo apt-fast clean
- sudo dpkg --configure -a
- sudo apt-get -f install
- if [[ "$1" == "s" ]]; then
- sudo shutdown -h now
- fi
- if [[ "$1" == "r" ]]; then
- sudo shutdown -r now
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement