By using this site, you agree to the Privacy Policy.
Accept
EnterinITEnterinITEnterinIT
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
Reading: How to Update and Upgrade Packages in CentOS 7: A Step-by-Step Guide
Font ResizerAa
EnterinITEnterinIT
Font ResizerAa
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
  • WINDOWS
  • SCCM Query Collection List
Search
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
CentOS

How to Update and Upgrade Packages in CentOS 7: A Step-by-Step Guide

Published: February 18, 2024
1 Min Read
SHARE

How to Update and Upgrade Packages in CentOS 7: A Step-by-Step Guide.

Open up a terminal application or log in using the ssh command. Run the yum command to upgrade all installed packages on the CentOS Linux system:

sudo yum update

One can only apply security-related updates to the server, running:

sudo yum --security update

How to update a single package? Run the following command (as an example):

sudo yum update pkg_name
sudo yum update nginx
sudo yum update php
sudo yum update httpd

It is also possible to install all updates except kernel and php packages as follows:

sudo yum -x 'kernel' -x 'php' update

The -x option excludes packages specified given name. See “Force yum update Command To Exclude Certain Packages” for more info.

Reboot the Linux system

sudo reboot

You must reboot the system when the CentOS Linux kernel gets updated

Verify Linux kernel version and list updates:

uname -mrs
sudo yum check-update
TAGGED:CentOSLinuxYUM
Previous Article Enable or disable ipv6 on ubuntu ufw
Next Article Create FortiGate GRE Tunnel
Leave a Comment Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Translation

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
by Transposh - translation plugin for wordpress

Popular Posts

System Requirements for Windows Server 2016
Windows Server
Configuration Manager Query Collection List
Configuration Manager Query Collection List
ConfigMgr
Structured/Managed Navigation enabled on Modern Pages in Classic Team Sites
Tech
SCCM Failed to get DP locations as the expected version from MP
ConfigMgr

Recent Posts

Installing and Configuring Fail2ban for SSH Protection on Ubuntu 24.04
Linux
Enabling and Configuring FirewallD on AlmaLinux
Linux
User Creation and SSH Key Setup in AlmaLinux
Linux
How to reset password on AlmaLinux
Linux

© 2023 EnterinIT

Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?