LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-28-2007, 05:15 PM   #1
WingnutOne
Member
 
Registered: Sep 2007
Location: Kansas City
Distribution: Mixed, mostly RH / Fedora
Posts: 76

Rep: Reputation: 16
Rollback of yum updates and/or rpm installs


I've recently learned that you can configure both yum and rpm to save copies of their previous configurations so that changes can be undone or rolled back if the updates cause an unexpected problem.

For yum, you add the line tsflags=repackage to the /etc/yum.conf file.

For rpm, add the line %_repackage_all_erasures 1 to /etc/rpm/macros file. (You may have to create /etc/rpm/macros if it doesn't exist already.)

I've never used these before and want to learn more about how flexible they are. In particular, if you run a general-purpose 'yum update' and one of the installed/updated RPM's creates a problem, can you roll back just the package that caused the problem? ...or do you have to remove all of them and then go reinstall the things that didn't cause problems?

If it makes a difference, I'm running various incarnations of Fedora; mostly 6, 7, & 8.

Thanks all,
WN
 
Old 11-29-2007, 10:24 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I'm not going to answer your question. Not out of malice but because you can do that yourself. You've clearly read up on it so you've got all the nfo you need. (Besides that you've been here long enough to know the horror stories about making no backups.) Find yourself an RPM of some small utility with two versions. Install the lower version. Update to the newer package with "--repackage" (so you don't have to touch the macros file). Now try to roll back.

* As for http://www.linuxquestions.org/questi...pdates-603109/ I'd suggest editing the post and posting the method anyway. Sounds interesting.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: RPM Rollback in Fedora Core 4/5 LXer Syndicated Linux News 0 01-22-2006 10:16 PM
Rollback of gcc failed and rpm is not working syavne Fedora 2 12-01-2005 05:52 AM
updates, rpm, games, yum, up2date helpme0904 Fedora 1 09-23-2004 04:48 PM
How do you rollback up2date updates Andy@DP Red Hat 0 04-07-2004 05:46 PM
RPM Rollback (Patch installation) adme Linux - General 3 04-15-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:42 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