---
title: "How to Update Bash on CentOS 6 and CentOS 7"
source: "https://docs.nexcess.com/hosting/server-administration/linux/how-to-update-bash-on-centos-6-and-centos-7/"
description: "Working from a CentOS 6 server and a CentOS 7 server as root, these instructions are intended specifically for updating Bash on those operating systems."
vertical: "Hosting"
date: "2014-09-25"
last_modified: "2026-07-29"
---

# How to Update Bash on CentOS 6 and CentOS 7

Pre-Flight Check

- These instructions are intended specifically for updating Bash on CentOS 6 and CentOS 7.
- I’ll be working from both a Liquid Web Core Managed CentOS 6 server and a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

First, Clean-Up Yum

`yum clean all`

Update Bash

Updating Bash is as simple as running just one command:

`yum -y update bash`

or… Update All Installed Packages

Optionally, it is possible to update all of the installed packages at once with the following command:

`yum -y update`
