yum update node code example Example: update nodejs centos $ curl -sL https://rpm.nodesource.com/setup_12.x | bash - sudo yum install nodejs