Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #######################################################################
- #This program is free software: you can redistribute it and/or modify
- #it under the terms of the GNU General Public License as published by
- #the Free Software Foundation, either version 3 of the License, or
- #(at your option) any later version.
- #This program is distributed in the hope that it will be useful,
- #but WITHOUT ANY WARRANTY; without even the implied warranty of
- #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- #GNU General Public License for more details.
- #You should have received a copy of the GNU General Public License
- #along with this program. If not, see <http://www.gnu.org/licenses/>.
- #######################################################################
- if [ $(id -u) != "0" ];then
- echo "You need to be root to update the system either become root with the su or sudo command. Or contact your system administrator"
- exit 1
- fi
- #########################################################################
- echo "Updating aptitude...please wait"
- sleep 2
- aptitude update
- sleep 2
- ##########################################################################
- echo "Checking for and installing available upgrades...please wait"
- sleep 2
- aptitude upgrade -y
- sleep 2
- ###########################################################################
- echo "Checking for and removing unnecesary packages...please wait"
- sleep 2
- apt-get autoremove -y
- sleep 2
- echo "Aptitude+ Complete"
- ############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement