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


Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 337 guests and no members online

We have 211 guests, no bots and no members online