SHARE
TWEET

Untitled

a guest Sep 18th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # add this to the end of ~/.bash_aliases
  2.  
  3. alias system_upgrade='echo; \
  4.                       sudo echo -n "Current Distribution: "; lsb_release -sd; \
  5.                       printf "\nRunning update..\n\n"; \
  6.                       sudo apt update && \
  7.                       printf "\nRunning autoremove before upgrade..\n\n"; \
  8.                       sudo apt autoremove && \
  9.                       printf "\nRunning upgrade..\n\n"; \
  10.                       sudo apt upgrade && \
  11.                       printf "\nRunning autoremove again..\n\n"; \
  12.                       sudo apt autoremove &&
  13.                       printf "\nSystem upgrade completed.\n\n"'
  14.  
  15. alias system_upgrade_unattended='sudo apt update && \
  16.                       sudo apt -y autoremove && \
  17.                       sudo DEBIAN_FRONTEND=noninteractive apt -y upgrade && \
  18.                       sudo apt -y autoremove'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top