Update Fedora, CentOS, RHEL Packages with Yum Update – POFTUT

Update Fedora, CentOS, RHEL Packages with Yum Update

Yum is popular package management tools between rpm based distributions. In this tutorial we will simply look how update system packages for different distributions like Fedora, CentOS and RHEL .

List Installed Packages

Before installing any update best step is listing installed packages. We can list install packages with yum list installed command.

List Available Updates

We should review upcoming update before installed them into the production servers. We can also use update testing servers to see effects of new updates. We can list available update with the following command.

Update Yum Packages

Now the most important part. We will install updates provided by official and third party yum repositories. We will simply use yum update command to update all packages.

Update Yum Packages without Prompt

Previous example will update our packages but will ask if we are sure to update packages. We can simply provide y to this question. But there is more straightforward way where we will provide yes with the -y option to the yum update command like below. This will skip confirmation step and directly install updates.

Check Specific Package Update

By default update command will list or update all packages. We can strictly specify the packages we want to update or list like below. In this example we will only update package named ssh .

echo '

LEARN MORE  How To List All Repository Packages With Yum Command

Leave a Reply

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