In the sense that I could have my updates be updated overnight without any kind of human intervention, on a repetitive timed basis? Thanks, -jeric
Jeric wrote:
In the sense that I could have my updates be updated overnight without any kind of human intervention, on a repetitive timed basis?
This has been there in SuSE since I don't know when. I myself have discovered documentation about it in the locally installed SuSE help (it's the last place I looked :-) ). First, edit /etc/suseservers and put the preferred (nearest, least hops) mirror first. Then edit /etc/sysconfig/onlineupdate YAST2_LOADFTPSERVER="no" Then add a script called "autoupdate" in /etc/cron.daily (don't forget to chmod u+x /etc/cron.daily/autoupdate). The script: # download patches yast2 online_update .auto.get # install downloaded patches yast2 online_update .auto.install If you preffer, you can download subgroups of packets like this: yast2 online_update .auto.get security Other than security, there are: "recommended", "document", "YasT2", "optional" To erase, after installation, the downloaded update packages, I thought of this (anyone, is there a better way?): SuSE 8.0: rm -rf /var/lib/YaST/patches/* SuSE 8.1: rm -rf /var/lib/YaST2/you/* -- Linux/Unix Systems Engineer http://www.genesys.ro Phone +40723-267961
Silviu Marin-Caea wrote:
# download patches yast2 online_update .auto.get
# install downloaded patches yast2 online_update .auto.install
I just saw that this does not work on SuSE 8.1 (it does on SuSE 8.0). The two lines of this script give this error, when run from cron.daily (I copied autoupdate to /etc/cron.hourly, to test it). Message 2: From root@silviu.genesys.ro Tue Apr 8 11:00:02 2003 Delivered-To: silviu@silviu.genesys.ro To: root@silviu.genesys.ro Subject: cronjob@silviu - hourly - OK Date: Tue, 8 Apr 2003 11:00:02 +0300 (EEST) From: root@silviu.genesys.ro (root) running hourly cronjob scripts SCRIPT: autoupdate, OK. SCRIPT: ouput (stdout && stderr) follows Error opening terminal: unknown. Error opening terminal: unknown. SCRIPT: autoupdate ------- END OF OUTPUT I don't need it to open any terminal. Anyway, I think it works by adding export TERM=linux (default is "dumb") before yast2 online_update .auto.get -- Linux/Unix Systems Engineer http://www.genesys.ro Phone +40723-267961
participants (2)
-
Jeric
-
Silviu Marin-Caea