wombat.ch

your Partner for Network Design and CMS

 vi /usr/local/bin/update

 #!/bin/bash
clear
apt update -y && apt upgrade -y && apt-get autoremove -y
clear
echo ---------------------------------
hostnamectl
echo - - - -
uptime -p
date +"%A %d. %B %Y | %T"
ip route get 1 | awk '{print $NF;exit}'
echo - - - -

 chmod +x /usr/local/bin/update
     
  # update  
     
   vi /usr/local/bin/notupdate  
   apt-get -s -qq dist-upgrade

apt list --upgradable

apt-get -u upgrade --assume-no
apt-get -u update --assume-no

apt-get --just-print upgrade 2>&1 | perl -ne 'if (/Inst\s([\w,\-,\d,\.,~,:,\+]+)\s\[([\w,\-,\d,\.,~,:,\+]+)\]\s\(([\w,\-,\d,\.,~,:,\+]+)\)? /i) {print "PROGRAM: $1 INSTALLED: $2 AVAILABLE: $3\n"}'
 
   chmod +x /usr/local/bin/notupdate  
     
  crontab -e  
  0 14-21 * * * /usr/local/bin/notupdate  
  service cron reload  
     
     
     
  #     purge-old-kernels --keep 2  

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 136 guests and no members online

We have 155 guests, one bot and no members online


one bot:
1 x BOT for JCE