Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • How do I upgrade a Prod Server to Match a Test Server using Subscription Manger or just yum/rpm Rhel 6.6

    Posted on

    I a Prod and Test server. both running Rhel 6.6 but Test has newer installed packages and Kernel then Prod.
    I need to get Prod to match Test. I have tried the following but when I try to downloadonly, yum will try to install
    newer packages even know I have the rhel version set to 6.6

    Here is how I try to create a localinstall, Is there a better way ?

    On Test Server
    rpm -qa --last > list
    vi list # remove old installs from list,

    cat list | cut -d " " -f1 > list1 # removes date from every line
    vi list1 #added this under vi editor # 1,$s/^/echo y | yum upgrade --downloadonly --downloaddir=\/home\/userone\/packages /g

    Then on Prod Server.
    mkdir /home/userone/packages
    ./list1
    yum localupdate *.rpm

    Here is where I yum will install newer packages.... Please Help.

    Michael.

    [root@bhtapp72401v packages]# subscription-manager list

    +-------------------------------------------+
    Installed Product Status
    +-------------------------------------------+
    Product Name: Red Hat Enterprise Linux Server
    Product ID: 69
    Version: 6.6
    Arch: x86_64
    Status: Subscribed
    Status Details:
    Starts: 04/04/2016
    Ends: 04/03/2017

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat