This is a discussion on redhat up2date within the Linux Operating System forums, part of the Unix Operating Systems category; --> Is there a way to automate the redhat 'up2date' process to just accept and install all updates automatically?...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| On Fri, 08 Aug 2003 16:03:01 -0700, john bailo wrote: > Is there a way to automate the redhat 'up2date' process to just accept > and install all updates automatically? heathen! You can enable that 'feature' by paying a few extra dollars. Login to redhat network, you should find insturctions about automatic errata there... CL |
| |||
| john bailo wrote: > Is there a way to automate the redhat 'up2date' process to just accept > and install all updates automatically? crontab an entry for 'up2date -fu' I certainly don't recommend this though. You should never 'blindly' accept updates, bad things can happen. You should always read the erratas before patching things. -- ================================================== ========== |
| |||
| On Sat, 09 Aug 2003 01:00:48 GMT, Pham Nuwen <privateaddress1@libertydice.org> wrote: >john bailo wrote: >> Is there a way to automate the redhat 'up2date' process to just accept >> and install all updates automatically? > >crontab an entry for 'up2date -fu' > >I certainly don't recommend this though. You should never 'blindly' >accept updates, bad things can happen. You should always read the >erratas before patching things. Good advice. I have a "/etc/cron.daily/up2datecheck" that goes like this; ########### Start up2datecheck ############ #!/bin/sh up2date -l | mail -s "Up2Date check" root exit 0 ########### end ############# It checks for updates and sends me an Email of the result. I can then make up my own mind what to do. Rich Piotrowski To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com |
| |||
| john bailo wrote: > Is there a way to automate the redhat 'up2date' process to just accept > and install all updates automatically? Dump it and use "autorpm", from www.autorpm.org. It's a quite configurable little tool that is rather more flexible and friendly, contacting your available FTP mirrors and looking among them for updates. |
| |||
| On Sat, 09 Aug 2003 02:22:09 +0000, Rich Piotrowski wrote: > On Sat, 09 Aug 2003 01:00:48 GMT, Pham Nuwen > <privateaddress1@libertydice.org> wrote: > >>john bailo wrote: >>> Is there a way to automate the redhat 'up2date' process to just accept >>> and install all updates automatically? >> >>crontab an entry for 'up2date -fu' >> >>I certainly don't recommend this though. You should never 'blindly' >>accept updates, bad things can happen. You should always read the >>erratas before patching things. > > Good advice. I have a "/etc/cron.daily/up2datecheck" that goes like > this; > > ########### Start up2datecheck ############ > #!/bin/sh > up2date -l | mail -s "Up2Date check" root > exit 0 > ########### end ############# > > It checks for updates and sends me an Email of the result. I can then > make up my own mind what to do. > > > Rich Piotrowski > > To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com I have a similar script that checks when my ip address has changed, except it only mails once per change. it queries my broadband router config page. comcast has been getting happy with the IP addys lately... #!/bin/sh IPFILE='/etc/myIPChangeText' THEIPTEXT=$(wget -q -O - 192.168.0.2/status.htm | grep 'IP Address') if [ ! -f $IPFILE ] || !(echo $THEIPTEXT | diff --brief $IPFILE - &>/dev/null) ; then # echo "Diffs found, sending notification and updating file." ( echo "To: \"CL Gilbert \"<cgilbert01@xxx.com>" echo "From: root@erasmus" echo "Subject: IP address has changed." echo "Your IP address has changed." echo "Your new IP address is below." echo $THEIPTEXT echo "This mail server does not accept incoming mail." ) | 2>&1 /usr/sbin/sendmail -froot -oi cgilbert01@xxx.com # ) | 2>&1 /usr/sbin/sendmail -froot -oi root echo $THEIPTEXT |> $IPFILE fi |
| |||
| Vwakes wrote: > On Sat, 9 Aug 2003 Pham Nuwen wrote: >>john bailo wrote: >>> Is there a way to automate the redhat 'up2date' process to just >>> accept and install all updates automatically? >> >>crontab an entry for 'up2date -fu' >> >>I certainly don't recommend this though. You should never 'blindly' >>accept updates, bad things can happen. You should always read the >>erratas before patching things. > > Agree with that. Maybe you should enable rollbacks just in case if the > updates aren't stable you can switch back to the original with just one > command. Anyway, the updates aren't that frequent to warrant an > auto update or are they?. > > V. How do you enable and use rollbacks? I did not know there was such a feature, and the man page for up2date has no info. In fact, I completed some RHN survey a few weeks ago, and i recall a question where rollback was mentioned, as in would it be a good new feature? From your comment, it would seem it is already available. ~RodgerH |
| |||
| On 8 Aug 2003 16:03:01 -0700, jabailo@earthlink.net (john bailo) wrote: >Is there a way to automate the redhat 'up2date' process to just accept >and install all updates automatically? up2date -uf HOWEVER - Don't do it. Look into apt-get (google should get you there, I don't have a pointer handy). Pay special attention to 'apt-get dist-upgrade'. I wish someone had told me about it before I paid for the redhat subscription. Mike- If you're not confused, you're not trying hard enough. ---------------------------------------------------- Please note - Due to the intense volume of spam, we have installed site-wide spam filters at catherders.com. If email from you bounces, try non-HTML, non-encoded, non-attachments. ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- |
| |||
| On Sat, 9 Aug 2003 RodgerH wrote: >Vwakes wrote: >> >> Maybe you should enable rollbacks just in case if the updates aren't >> stable you can switch back to the original with just one command. > >How do you enable and use rollbacks? I have this in /etc/sysconfig/rhn/up2date enableRollbacks[comment]=Determine if up2date should create rollback rpms enableRollbacks=1 After updates, to list the updates you do # up2date --list-rollbacks and then to 'undo' or 'rollback' an update, you do # up2date --undo I am not sure whether it can only do an undo of the last update or several updates before the last one too. >I did not know there was such a feature, and the man page for up2date >has no info. Yep. The man page doesn't explain much tho. >In fact, I completed some RHN survey a few weeks ago, and i recall a >question where rollback was mentioned, as in would it be a good new >feature? From your comment, it would seem it is already available. Yep. It's there already and I use version: # rpm -q up2date up2date-3.1.23-1 V. |
| ||||
| Michael W. Cocke wrote: > On 8 Aug 2003 16:03:01 -0700, jabailo@earthlink.net (john bailo) > wrote: > > >>Is there a way to automate the redhat 'up2date' process to just accept >>and install all updates automatically? > > > up2date -uf > > HOWEVER - Don't do it. Look into apt-get (google should get you > there, I don't have a pointer handy). Pay special attention to > 'apt-get dist-upgrade'. I wish someone had told me about it before I > paid for the redhat subscription. The 4 or so various apt-get wannabe packages written to fake apt-get behavior under RedHat have never worked for me. Usually they don't even *compile*, because the authors had made their systems extremely non-standard with odd libraries and components before even writing the tarballs or RPM's for it, and didn't note the dependencies. Like the modem tool of the week which newbies invariably pump out while learning to program, none of them have been worth using yet. If someone knows one that actually works with a vanilla RedHat 8.0 or 9 system, I'd *love* to hear about it. |