LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-05-2010, 11:06 PM   #1
narayanapalla
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
Roll-Back with yum


Hi frnds,

We are remotely working on the servers,and right now we got one task to
update packages with the latest releases that are came for the presently installed packages in server.

So we are planed to update packages by using "yum update" --command

But here the question was :- If clients got any problem with the new version, we need to Roll-Back to the previous version.

I searched in Google,Got same solution that was as follows

-----------------------------------------------------------

Rolling back yum packages
 To configure yum to save rollback information, add the line tsflags=repackage to /etc/yum.conf.

 To configure command-line rpm to do the same thing, add the line %_repackage_all_erasures 1 to /etc/rpm/macros (If does not exist, just create it).

 If/when you want to rollback to a previous state, perform an rpm update with the --rollback option followed by a date/time specified.

Some examples:
rpm -Uhv --rollback '9:00 am'
rpm -Uhv --rollback '4 hours ago'
rpm -Uhv --rollback 'december 25'.
---------------------------------------------------------------




But i am not sure how to use this for "yum".

Could you please give me the correct way for "Roll-Back for YUM"

And below is the server info----

-------------------------------------------------------------

[root@wcohpoll01 ~]# uname -a
Linux wcohpoll01.lms.local 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:20:55 EDT 2009 i686 i686 i386 GNU/Linux

Red-hat release version

cat /etc/issue
CentOS release 5.3 (Final)
Kernel \r on an \m
-------------------------------------------------------------



AND ALSO GIVE ME IS THERE ANY OTHER WAY TO UPDATE THE TOTAL PACKAGES

Regards,
Palla
 
Old 07-06-2010, 09:08 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by narayanapalla View Post
Hi frnds,
We are remotely working on the servers,and right now we got one task to
update packages with the latest releases that are came for the presently installed packages in server.

So we are planed to update packages by using "yum update" --command

But here the question was :- If clients got any problem with the new version, we need to Roll-Back to the previous version.

I searched in Google,Got same solution that was as follows
-----------------------------------------------------------
Rolling back yum packages
To configure yum to save rollback information, add the line tsflags=repackage to /etc/yum.conf.

To configure command-line rpm to do the same thing, add the line %_repackage_all_erasures 1 to /etc/rpm/macros (If does not exist, just create it).

If/when you want to rollback to a previous state, perform an rpm update with the --rollback option followed by a date/time specified.

Some examples:
rpm -Uhv --rollback '9:00 am'
rpm -Uhv --rollback '4 hours ago'
rpm -Uhv --rollback 'december 25'.
---------------------------------------------------------------

But i am not sure how to use this for "yum".

Could you please give me the correct way for "Roll-Back for YUM"
And below is the server info
---------------------------------------------------------------
Red-hat release version
cat /etc/issue
CentOS release 5.3 (Final)
-------------------------------------------------------------
AND ALSO GIVE ME IS THERE ANY OTHER WAY TO UPDATE THE TOTAL PACKAGES
Please spell your words out, and don't use so many colors. Your post is very hard to read.

And based on what you posted, you've already GOT the solution. What else do you need??
Quote:
Originally Posted by narayanapalla
If/when you want to rollback to a previous state, perform an rpm update with the --rollback option followed by a date/time specified.

Some examples:
rpm -Uhv --rollback 'december 25'.
There you go. You're configuring the yum system to enable rollbacks. So anything you install will be able to be "rolled back", with the command you posted.
 
0 members found this post helpful.
Old 07-06-2010, 09:38 PM   #3
narayanapalla
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Please spell your words out, and don't use so many colors. Your post is very hard to read.

And based on what you posted, you've already GOT the solution. What else do you need??

There you go. You're configuring the yum system to enable rollbacks. So anything you install will be able to be "rolled back", with the command you posted.
Hi,
Thanks for ur reply and suggestion(i will never use colors from now).

Here i am updating the packages with "yum update"(it will update the all packages at time), but how can "rpm" will help me to roll-back to the previous versions of packages at a time for all packages by using the command " rpm -Uhv --rollback '9:00 am' "
 
Old 07-07-2010, 09:39 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by narayanapalla View Post
Hi,
Thanks for ur reply and suggestion(i will never use colors from now).

Here i am updating the packages with "yum update"(it will update the all packages at time), but how can "rpm" will help me to roll-back to the previous versions of packages at a time for all packages by using the command " rpm -Uhv --rollback '9:00 am' "
And AGAIN, SPELL OUT YOUR WORDS It's not "ur", it's "your".

Yum uses RPM to install packages. Read the docs.
 
0 members found this post helpful.
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to roll back kernel? Geminias Linux - Newbie 2 09-14-2006 04:04 PM
updates and roll back imagineaxion Ubuntu 1 09-02-2006 08:31 AM
Roll back to stable ? tuxuser19 Debian 1 12-10-2005 06:59 AM
Any way to roll back? FKK Linux - Newbie 1 11-12-2005 03:44 AM
Kernel Roll Back jannino Linux - General 1 04-22-2005 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration