Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Elastic Cloud Server/ Troubleshooting/ Linux ECS Issues/ Why Is the OS Version of My ECS Not the One in the Image I Selected During ECS Creation?

Why Is the OS Version of My ECS Not the One in the Image I Selected During ECS Creation?

Updated on 2024-08-15 GMT+08:00

Symptom

You run the following command on your ECS to query its OS version:

/etc/redhat-release

Assume that the command output shows that the current version is CentOS 7.6. However, the OS version of the image that you used to create the ECS is CentOS 7.2 or another version earlier than CentOS 7.6.

NOTE:

The operations described in this section only apply to ECSs running CentOS or EulerOS.

Possible Cause

  1. System patches have been installed. Run the following command to view the operation records in YUM:

    yum history

    Information similar to the following is displayed:

    Loaded plugins: fastestmirror
    ID     | Login user               | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
         8 | root <root>              | 2019-08-23 10:00 | I, U           |   40 EE
         7 | root <root>              | 2019-06-24 10:12 | I, U           |   55   
         6 | root <root>              | 2019-02-22 11:10 | I, O, U        |  280 EE
         5 | root <root>              | 2019-02-22 11:09 | I, U           |    6   
         4 | root <root>              | 2019-02-22 11:08 | Install        |    1   
         3 | root <root>              | 2019-02-22 11:08 | Install        |    1   
         2 | root <root>              | 2019-02-22 11:08 | Install        |    1   
         1 | System <unset>           | 2019-02-22 10:49 | Install        |  352   
    history list

    The action performed on August 23 contains operations I (Install) and U (Update) with operation ID 8.

  2. Run the following command to view details about the operations:

    yum history info 8

    Information similar to the following is displayed:

    Loaded plugins: fastestmirror
    Transaction ID : 8
    Begin time     : Fri Aug 23 10:00:13 2019
    Begin rpmdb    : 384:1c8e3df918de17e245b0dd7195f06f89656c5f27
    End time       :            10:02:22 2019 (129 seconds)
    End rpmdb      : 386:9a3172e7946f31d43c1268b6e1f2428125b3dfc5
    User           : root <root>
    Return-Code    : Success
    Command Line   : update -y

    The preceding command output indicates that user root has performed a YUM update operation successfully. This upgrades the OS to the latest version.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback