Want to subscribe to topics you're interested in?
Become a Member

Redis Is it possible to install an older version of Redis?

Discussion in 'Other Centmin Mod Installed software' started by pamamolf, Mar 3, 2020.

  1. pamamolf

    pamamolf Well-Known Member

    4,022
    421
    83
    May 31, 2014
    Ratings:
    +816
    Local Time:
    11:18 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hello

    Is it possible to install an older version of Redis?


    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:18 AM
    Nginx 1.25.x
    MariaDB 10.x
    let me guess you accidentally got upgraded to redis 6.0 RC1 via remi-test yum repo ?

    Code (Text):
    yum list redis --showduplicates --enablerepo=remi,remi-test --disablerepo=epel  -q | tr -s ' ' | column -t
    Installed     Packages
    redis.x86_64  6.0~RC1-1.el7.remi  @remi-test
    Available     Packages
    redis.x86_64  5.0.6-1.el7.remi    remi
    redis.x86_64  5.0.7-1.el7.remi    remi

    seems that's what happened for me with yum update after centmin.sh menu option 24 exit for yum transaction id = 640
    Code (Text):
    yum history list redis
    Loaded plugins: fastestmirror, priorities, versionlock
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
       640 | update --disableplugin=p | 2020-02-19 21:07 | E, I, U        |  255 EE
       589 | update --disableplugin=p | 2019-11-26 08:41 | I, U           |   98  
       564 | update --disableplugin=p | 2019-09-25 12:29 | Update         |   77  
       485 | update --disableplugin=p | 2019-05-27 11:53 | Update         |   57  
       438 | update --disableplugin=p | 2019-03-26 17:25 | I, U           |  167 EE
       415 | update --disableplugin=p | 2018-12-25 22:04 | E, I, O, U     |  352 EE
       392 | update --disableplugin=p | 2018-11-23 23:38 | I, U           |   54  
       390 | update --disableplugin=p | 2018-11-16 19:31 | E, I, U        |  108  
       384 | update --disableplugin=p | 2018-09-24 20:08 | Update         |   91  
       358 | update --disableplugin=p | 2018-07-11 06:45 | Update         |    7  
       357 | update --disableplugin=p | 2018-07-08 16:32 | E, I, U        |   29  
       338 | update --disableplugin=p | 2018-03-29 15:16 | Update         |  121 EE
       317 | update --disableplugin=p | 2018-02-15 10:30 | E, I, U        |  116 EE
       316 | update --disableplugin=p | 2018-01-24 23:29 | Update         |    1  
       202 | -y install redis --enabl | 2017-12-27 21:21 | Install        |    1  
    history list
    

    Code (Text):
    yum history info 640
    Loaded plugins: fastestmirror, priorities, versionlock
    Transaction ID : 640
    Begin time     : Wed Feb 19 21:07:34 2020
    Begin rpmdb    : 1422:3c69aa470a780206591579ce1fc5da70f81fdae9
    End time       :            21:09:05 2020 (91 seconds)
    End rpmdb      : 1422:552c688f689560f2af95f561904cac6927bdda8f
    User           : root <root>
    Return-Code    : Success
    Command Line   : update --disableplugin=priorities --setopt=deltarpm=0 --enablerepo=remi,city-fan.org,remi-test --disableexcludes=main,remi -y
    

    Downgrade from redis 6.0 RC1 to 5.0.7 ensuring to disable remi-test and epel yum repos and enable remi
    Code (Text):
    yum downgrade redis --enablerepo=remi --disablerepo=epel,remi-test

    Code (Text):
    yum downgrade redis --enablerepo=remi --disablerepo=epel,remi-test
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror2.evolution-host.com
     * centos-sclo-rh: mirror2.evolution-host.com
     * centos-sclo-sclo: mirror2.evolution-host.com
     * extras: mirror2.evolution-host.com
     * remi: mirror.team-cymru.com
     * rpmforge: repoforge.spinellicreations.com
     * updates: centos.mirror.netelligent.ca
    remi                                                                                                                                                                                                                               | 3.0 kB  00:00:00    
    remi/primary_db                                                                                                                                                                                                                    | 2.6 MB  00:00:00    
    42 packages excluded due to repository priority protections
    Excluding 5 updates due to versionlock (use "yum versionlock status" to show them)
    Resolving Dependencies
    --> Running transaction check
    ---> Package redis.x86_64 0:5.0.7-1.el7.remi will be a downgrade
    ---> Package redis.x86_64 0:6.0~RC1-1.el7.remi will be erased
    --> Finished Dependency Resolution
    Dependencies Resolved
    ==========================================================================================================================================================================================================================================================
     Package                                                   Arch                                                       Version                                                              Repository                                                Size
    ==========================================================================================================================================================================================================================================================
    Downgrading:
     redis                                                     x86_64                                                     5.0.7-1.el7.remi                                                     remi                                                     924 k
    Transaction Summary
    ==========================================================================================================================================================================================================================================================
    Downgrade  1 Package
    Total download size: 924 k
    Is this ok [y/d/N]:
    
     
  3. pamamolf

    pamamolf Well-Known Member

    4,022
    421
    83
    May 31, 2014
    Ratings:
    +816
    Local Time:
    11:18 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    No :)

    I am just wondering if from the latest version of 5.0.7 can i go to the previous 5.0.x version ....

    Thanks
     
  4. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:18 AM
    Nginx 1.25.x
    MariaDB 10.x
    yum downgrade command should work if redis was installed/upgraded via yum
     
  5. pamamolf

    pamamolf Well-Known Member

    4,022
    421
    83
    May 31, 2014
    Ratings:
    +816
    Local Time:
    11:18 PM
    Nginx-1.17.x
    MariaDB 10.3.x
  6. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:18 AM
    Nginx 1.25.x
    MariaDB 10.x
    Code (Text):
    yum downgrade redis --enablerepo=remi --disablerepo=epel,remi-test
     
  7. pamamolf

    pamamolf Well-Known Member

    4,022
    421
    83
    May 31, 2014
    Ratings:
    +816
    Local Time:
    11:18 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    How can i make it more specific on which version number to install than just downgrade it?
     
  8. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:18 AM
    Nginx 1.25.x
    MariaDB 10.x
    What is the issue you trying to solve? Lately a lot of Redis security updates occurred, so downgrading you might want to double check.
     
  9. buik

    buik “The best traveler is one without a camera.”

    1,860
    492
    83
    Apr 29, 2016
    Flanders
    Ratings:
    +1,567
    Local Time:
    10:18 PM
    Of course, you can always install the EPEL version of Redis. Should an older version be desired. Including the security updates.