Skip to content

Instantly share code, notes, and snippets.

@ChatchaiJ
Created December 8, 2015 06:48
Show Gist options
  • Save ChatchaiJ/797496f21ba6f07cfc90 to your computer and use it in GitHub Desktop.
Save ChatchaiJ/797496f21ba6f07cfc90 to your computer and use it in GitHub Desktop.
Upgrade debian package on the system
#!/bin/bash
# --------------------------------------------------------------------- #
# pkgupgrade - Upgrade debian package on the system. #
# #
# version 0.1 - cj (200x-xx-xx) init. #
# version 0.2 - cj (2013-07-17) comment, and start/finished time #
# added. #
# --------------------------------------------------------------------- #
S=`date`
sudo apt-get update ; \
sudo apt-get -y dist-upgrade && \
sudo apt-get clean && \
sudo apt-get -y autoremove
F=`date`
echo "Started : $S"
echo "Finished : $F"
# --------------------------------------------------------------------- #
# end of file. #
# --------------------------------------------------------------------- #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment