How do i update redhat from 7.5 to 7.6?



  • Man page for yum.

    Notes:

    • 7.6 at the time of the article is the latest.
    • Update is changing to a new minor release.
    • Upgrade is changing to a new major release.

    Here's we are updating.

    check-update
    	      Implemented so you could know if your machine had any updates that  needed  to  be  applied
    	      without running it interactively. Returns exit value of 100 if there are packages available
    	      for an update. Also returns a list of the packages to be updated in list format. Returns	0
    	      if  no  packages are available for update. Returns 1 if an error occurred.  Running in ver‐
    	      bose mode also shows obsoletes.
    
    update        If  run without any packages, update will update every currently installed package.  If one
    	      or more packages or package globs are specified, Yum will only update the listed	packages.
    	      While updating packages, yum will ensure that all dependencies are satisfied. (See Specify‐
    	      ing package names for more information) If the packages or globs specified match	to  pack‐
    	      ages  which  are not currently installed then update will not install them. update operates
    	      on groups, files, provides and filelists just like the "install" command.
    
    	      If the main obsoletes configure option is true (default) or the --obsoletes flag is present
    	      yum  will	 include  package  obsoletes  in its calculations - this makes it better for dis‐
    	      tro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9.
    
    	      Note that "update" works on installed packages first, and only if there are no matches does
    	      it  look	for  available	packages.  The	difference is most noticeable when you do "update
    	      foo-1-2" which will act exactly as "update foo" if foo-1-2 is installed. You  can	 use  the
    	      "update-to" if you'd prefer that nothing happen in the above case.
    

    Check release.

    $ cat /etc/redhat-release 
    CentOS Linux release 7.5.1804 (Core) 
    

    check-update option to yum will show if you have any updates available. No output TL.

    $ yum check-updates
    

    Update from 7.5 to 7.6 (latest to date). No output TL.

    $ sudo yum update
    

    Check release again.

    $  cat /etc/redhat-release 
    CentOS Linux release 7.6.1810 (Core) 
    

    If nothing needs upgrading then, there's no package listing in the output. This is what you will see after an upgrade.

    $ yum check-updates
    Loaded plugins: fastestmirror, langpacks
    Determining fastest mirrors
     * base: mirrors.clouvider.net
     * extras: mirror.sax.uk.as61049.net
     * updates: mirror.sax.uk.as61049.net
    

Log in to reply
 

© Lightnetics 2024