wombat.ch

your Partner for Network Design and CMS

 vi /usr/local/bin/update.sh

 #!/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 $7;exit}'
echo - - - -

 chmod +x /usr/local/bin/update.sh
     
  # update  
     
   vi /usr/local/bin/notupdate.sh  
   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.sh  
     
  crontab -e  
  0 14-21 * * * /usr/local/bin/notupdate.sh  
  service cron reload  
     
     
     
  #     purge-old-kernels --keep 2  

RSS Feed

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 163 guests and no members online

We have 152 guests, no bots and no members online