Unix Technical Forum

redhat up2date

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?...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:32 AM
john bailo
 
Posts: n/a
Default redhat up2date

Is there a way to automate the redhat 'up2date' process to just accept
and install all updates automatically?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:32 AM
CL [dnoyeB] Gilbert
 
Posts: n/a
Default Re: redhat up2date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:33 AM
Pham Nuwen
 
Posts: n/a
Default Re: redhat up2date

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.

--
================================================== ==========

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:33 AM
Rich Piotrowski
 
Posts: n/a
Default Re: redhat up2date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 07:33 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: redhat up2date

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:33 AM
CL [dnoyeB] Gilbert
 
Posts: n/a
Default Re: redhat up2date

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 07:33 AM
RodgerH
 
Posts: n/a
Default Re: redhat up2date

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 07:33 AM
Michael W. Cocke
 
Posts: n/a
Default Re: redhat up2date

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 =---
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 07:33 AM
Vwakes
 
Posts: n/a
Default Re: redhat up2date

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-17-2008, 07:33 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: redhat up2date

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com