Updating Different Linux Distribution Types

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

Understanding how to update packages and entire systems running a variety of Linux distributions is a key concept in managing a heterogeneous environment. After completing this activity, the student will have an understanding of how to use the appropriate package management systems for different distributions to update packages and systems in order to obtain functional and security updates for each.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Update the Yum Package Manager on the CentOS 7 Server

The Yum Package Manager can upgrade itself! First, check the current version on your system with:

yum --version

Like any other package you can use yum to upgrade just a single package (and its dependencies) with the command:

yum update yum

You can verify by rerunning:

yum --version

To see it is now running the updated version!

Update the ‘VM Tools’ on the Ubuntu Virtual Machine

The Ubuntu system apparently has a lot of libraries and links customized, but needs the latest ‘open-vm-tools’ package upgraded.

You can update JUST the package (and required packages/dependencies) with the command:

apt-get install --only-upgrade open-vm-tools

This will leave any other packages, even if they need upgrading, alone on the system and on their currently installed version.

Additional Resources

Upon starting this activity, you will be provided IP addresses for both an Ubuntu and CentOS server as well as a single user name and password (which can be used for accessing both). Use these to perform the tasks you will find in the Activity Guide for this activity.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?