Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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' "
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.