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.
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:
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:
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.