Blog

03/06/2019

CentOS/RHEL v5/6 Update Command



How do I apply package updates from the RHN or CentOS repo on CentOS / RHEL / Fedora / Red Hat Enterprise Linux?

You need to use yum command. yum is an interactive, rpm based, package manager. It can automatically perform system updates, including dependency analysis and obsolete processing based on “repository” metadata. It can also perform installation of new packages, removal of old packages and perform queries on the installed and/or available packages among many other commands.

List updates

The check-update option tells you if your machine had any updates that needed to be applied without running it interactively:
# yum check-update

Apply update to the operating system

Use the following command to update the operating system:
# yum update

Update a specific package

To update a specific package, such as httpd, use the following command:
# yum update httpd

To find more information about the command line options available for yum command, use the following command:
# man yum

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...