LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-17-2018, 01:49 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Running a test installation via yum


Hello --

We are running RHEL 7.2 on one of our servers, and we are preparing to do a patch upgrade on the system. The plan is to utilize the yum utility with the following command syntax:

Code:
yum -y update
Prior to the update, we would like to do a test run, in other words simulate but not actually install the packages, of the update to determine if there are any issues that need to be dealt with prior to the event. The results are to be shown on screen, as well as saved to file. The command syntax that I was planning on using the following:

Code:
yum -y update --setopt tsflags=test | tee /root/yumupdateresults.txt
Is the command syntax correct, or did I miss something?

Thanks.
 
Old 01-17-2018, 02:21 PM   #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 kaplan71 View Post
Hello --
We are running RHEL 7.2 on one of our servers, and we are preparing to do a patch upgrade on the system. The plan is to utilize the yum utility with the following command syntax:
Code:
yum -y update
Prior to the update, we would like to do a test run, in other words simulate but not actually install the packages, of the update to determine if there are any issues that need to be dealt with prior to the event. The results are to be shown on screen, as well as saved to file. The command syntax that I was planning on using the following:
Code:
yum -y update --setopt tsflags=test | tee /root/yumupdateresults.txt
Is the command syntax correct, or did I miss something?
It appears to be, but (AGAIN), since you are using RHEL, you can verify this by contacting Red Hat support. Have you done so? That's been told to you many times previously, and you seem to ignore this advice. And since the yum command won't work unless you *ARE* paying...seems like an easy thing to do.

Also, your question and plan are not sound. Because aside from any dependency issues (which you will have by the armload if you don't pay for RHEL and try an update), it won't show any other 'issues' that could arise. Things like going from one version of a program to another, for example, or having options change. In place upgrades are always too risky in my opinion...better to test and do this on a test machine first, and make SURE things work. Then do a format/install/reload-from-backup to make sure your machine is stable. And a side benefit of this is you get to test your backup/restore procedures and make sure THEY work.
 
Old 01-17-2018, 02:43 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
Dear TBOne --

The reason that I am posting my questions in this forum first, is due to my attempt to get feedback from my peers prior to my contacting Red Hat Support. The purpose of this exercise is to get as much information as possible so when I do call support I will be better informed, and thereby making the call more productive. Also for the record, we do have paid support available. I see my posting questions here, and subsequently contacting Red Hat Support as an opportunity to learn and thereby become less dependent.

We do not have a development machine available so we do not have the luxury of avoiding an in-place upgrade. That is why I posted this thread about the syntax. If I could do this upgrade on a non-production system, I would do so.

I have NOT ignored your advice. As stated previously, I am simply asking learned colleagues for feedback on a major project.
 
Old 01-17-2018, 03:03 PM   #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 kaplan71 View Post
Dear TBOne --

The reason that I am posting my questions in this forum first, is due to my attempt to get feedback from my peers prior to my contacting Red Hat Support. The purpose of this exercise is to get as much information as possible so when I do call support I will be better informed, and thereby making the call more productive. Also for the record, we do have paid support available. I see my posting questions here, and subsequently contacting Red Hat Support as an opportunity to learn and thereby become less dependent.
Sorry, this makes no sense at all. Using the paid support gets you an accurate answer much faster, and being 'better informed' makes no sense in this context, since having a question in the first place means you do NOT have the information you need.
Quote:
We do not have a development machine available so we do not have the luxury of avoiding an in-place upgrade. That is why I posted this thread about the syntax. If I could do this upgrade on a non-production system, I would do so. I have NOT ignored your advice. As stated previously, I am simply asking learned colleagues for feedback on a major project.
Using RHEL support has been told to you many times in the past, but you have never acknowledged even reading such things. Your 'learned colleagues' are telling you that in-place upgrades are a bad thing to do, and to contact RHEL support for concerns about the product you're claiming to pay for. You are responding by (again) ignoring the advice you were given, and continuing to ask.

And doing a fresh load can happen on ANY PC you have laying around, since what you need to test is the functionality of the software and services. THAT is the only way you are going to know of any 'issues' that arise from your upgrade...which again is what you were told previously.
 
  


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 release yum lock --- but no yum is running ! Joy Stick Linux - Newbie 5 11-06-2017 02:56 AM
[SOLVED] In Eudev-3.2.4 installation udev-test.pl FAILS in test hariskar Linux From Scratch 5 10-25-2017 01:00 PM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
YDL PS3 Problem with yum install vlc transaction test intheshadows Linux - Newbie 3 12-23-2009 08:33 PM
Yum fails with Running Transaction Test, Killed rosholm Fedora 2 10-19-2005 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:56 PM.

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