{"id":784,"date":"2018-05-14T04:29:06","date_gmt":"2018-05-14T04:29:06","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=784"},"modified":"2019-06-27T15:44:54","modified_gmt":"2019-06-27T15:44:54","slug":"how-to-check-updates-in-centos-with-yum-command","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/how-to-check-updates-in-centos-with-yum-command\/","title":{"rendered":"How to check updates in CentOS with yum command"},"content":{"rendered":"<h4><strong>How to check updates in CentOS with yum command<\/strong><\/h4>\n<p>In this tutorial we are going to learn how to check for package updates in CentOS Linux using the yum check-update command.<\/p>\n<p>The yum check-update command use to search for the software updates in CentOS 7.<\/p>\n<p>To check updates on CentOS 7, execute yum check-update on the CentOS Terminal.<\/p>\n<pre><strong># yum check-update<\/strong><\/pre>\n<p>This will list all available updates on your CentOS Linux System.<\/p>\n<p>We can specify the package name to check updates on a specific package.<\/p>\n<pre><strong># yum check-update &lt;package-name&gt;<\/strong><\/pre>\n<p>If updates are available, you can use yum update command to update packages.<\/p>\n<p>To update all packages, execute.<\/p>\n<pre><strong># yum update<\/strong><\/pre>\n<p>Or specify the package you want to update.<\/p>\n<pre><strong># yum update &lt;package-name&gt;<\/strong><\/pre>\n<h5><strong>Example &#8211; List All available Update in CentOS<\/strong><\/h5>\n<pre><strong># yum check-update<\/strong><\/pre>\n<p>The yum command will list all available updates for your CentOS 7 Computer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-786 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum.jpg\" alt=\"\" width=\"1344\" height=\"661\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum.jpg 1344w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum-300x148.jpg 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum-768x378.jpg 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum-1024x504.jpg 1024w\" sizes=\"(max-width: 1344px) 100vw, 1344px\" \/><\/p>\n<h5><strong>Example &#8211; Check Updates for Firefox<\/strong><\/h5>\n<pre><strong># yum check-update firefox<\/strong><\/pre>\n<p>This will check whether new updates for Firefox web browser available or not in your CentOS Desktop.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-789 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum1.jpg\" alt=\"\" width=\"524\" height=\"152\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum1.jpg 524w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum1-300x87.jpg 300w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/p>\n<h5><strong>Example &#8211; Check kernel Updates with yum<\/strong><\/h5>\n<pre><strong># yum check-update kernel<\/strong><\/pre>\n<p>This will check whether kernel updates are available for your CentOS Linux system.<\/p>\n<h5><strong>Example &#8211; Filter yum check update with grep command<\/strong><\/h5>\n<p>We can use the grep command to check updates by keyword by redirecting yum check-update result to the grep command.<\/p>\n<pre><strong># yum check-update | grep -i kernel<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-790 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum2.jpg\" alt=\"\" width=\"695\" height=\"112\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum2.jpg 695w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum2-300x48.jpg 300w\" sizes=\"(max-width: 695px) 100vw, 695px\" \/><\/p>\n<pre><strong># yum check-update | grep -i samba<\/strong><\/pre>\n<p>This will filter the yum check update result to list package only match the word samba in CentOS 7.<\/p>\n<h5><strong>Check Updates for Multiple packages<\/strong><\/h5>\n<p>In CentOS, The yum check-update command can search updates for multiple packages at once.<\/p>\n<p><strong>Example<\/strong><\/p>\n<pre><strong># yum check-update samba-client samba-common<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-791 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum3.jpg\" alt=\"\" width=\"519\" height=\"143\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum3.jpg 519w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/05\/yum3-300x83.jpg 300w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/p>\n<p>So that is How we can check yum updates in centOS7\u00a0using the yum command.<\/p>\n<p>You can use yum check-update command to check software updates in centOS7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to check updates in CentOS with yum command In this tutorial we are going to learn how to check for package updates in CentOS Linux using the yum check-update command. The yum check-update command use to search for the software updates in CentOS 7. To check updates on CentOS 7, execute yum check-update on the CentOS Terminal. # yum check-update This will list all available updates on your CentOS Linux System. We can specify the package name to check updates on a specific package. # yum check-update &lt;package-name&gt; If&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/784"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":3,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":1071,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/784\/revisions\/1071"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}