{"id":29,"date":"2022-07-08T04:33:00","date_gmt":"2022-07-07T23:03:00","guid":{"rendered":"https:\/\/vpswebhostingindia.com\/blog\/?p=29"},"modified":"2022-07-20T10:14:12","modified_gmt":"2022-07-20T04:44:12","slug":"yum-commands","status":"publish","type":"post","link":"https:\/\/vpswebhostingindia.com\/blog\/yum-commands\/","title":{"rendered":"YUM commands"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>YUM &#8211; Yellowdog Updater Modified<\/strong><\/p>\n\n\n\n<p>YUM is an open-source command-line as well as graphical-based package management tool for RPM (RedHat Package Manager) based Linux systems.<\/p>\n\n\n\n<p>It allows users and system administrators to easily install, update, remove or search software packages on a system<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Install a Package<\/strong><\/li><\/ol>\n\n\n\n<p>To install a package, just run the below command it will automatically find and install all required dependencies for package.<\/p>\n\n\n\n<p>&nbsp; &nbsp;# <strong>yum install<\/strong><\/p>\n\n\n\n<p>If you want to install packages automatically without asking for any confirmation, use the option -y as shown below example.<\/p>\n\n\n\n<p># <strong>yum -y install<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>2. <strong>Remove a Package<\/strong><\/p>\n\n\n\n<p>To remove a package completely with all the dependencies, just run the below command.<\/p>\n\n\n\n<p>&nbsp;# <strong>yum remove<\/strong><\/p>\n\n\n\n<p>To disable the confirmation prompt just add option -y as shown below.<\/p>\n\n\n\n<p>&nbsp;# <strong>yum -y remove<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li><strong>Updating a Package<\/strong><\/li><\/ol>\n\n\n\n<p>If you used outdated version of package like mysql, php, etc.. you need to update the package. At that time, use this below command to update the package.<\/p>\n\n\n\n<p># <strong>yum update<\/strong><\/p>\n\n\n\n<p>4. <strong>List a Package<\/strong><\/p>\n\n\n\n<p>Use the list function to search for the specific package with a name like openssh, cron, curl, etc.. To search for a package, use the below command.<\/p>\n\n\n\n<p># <strong>yum list<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li><strong>Get Information about a Package<\/strong><\/li><\/ol>\n\n\n\n<p>If would you like to know the information about a package before installing it. To get information on a package just use the below command.<\/p>\n\n\n\n<p># <strong>yum info<\/strong><\/p>\n\n\n\n<p><strong>List all Installed Packages<\/strong><\/p>\n\n\n\n<p>If you want to know the installed packages on your system use the below command,<\/p>\n\n\n\n<p># <strong>yum list installed<\/strong><\/p>\n\n\n\n<p>It will display all the installed packages.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\"><li><strong>Check for Available Updates<\/strong><\/li><\/ol>\n\n\n\n<p>To find how many installed packages on your system have updates available, check to use the following command.<\/p>\n\n\n\n<p># <strong>yum check-update<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\"><li><strong>Update System<\/strong><\/li><\/ol>\n\n\n\n<p>To keep your system up-to-date with all security and binary package updates, run the following command. It will install all the latest patches and security updates to your system<\/p>\n\n\n\n<p># <strong>yum update<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"9\"><li><strong>Clean Yum Cache<\/strong><\/li><\/ol>\n\n\n\n<p>By default yum keeps all the repository enabled package data in \/var\/cache\/yum\/ with each sub-directory, to clean all cached files from the enabled repository, you need to run the following command regularly to clean up all the cache.<\/p>\n\n\n\n<p># <strong>yum clean all<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\"><li><strong>View History<\/strong><\/li><\/ol>\n\n\n\n<p>To view all the past transactions of the yum command, just use the following command.<\/p>\n\n\n\n<p>&nbsp;# <strong>yum history<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>YUM &#8211; Yellowdog Updater Modified YUM is an open-source command-line as well as graphical-based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrators to easily install, update, remove or search software packages on a system Install a Package To install a package, just run the below command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands"],"_links":{"self":[{"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":7,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions\/62"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpswebhostingindia.com\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}