{"id":1661,"date":"2024-03-08T00:00:00","date_gmt":"2024-03-08T05:00:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=1661"},"modified":"2024-03-09T19:06:24","modified_gmt":"2024-03-10T00:06:24","slug":"yum-cheat-sheet","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/yum-cheat-sheet\/","title":{"rendered":"yum Cheat Sheet"},"content":{"rendered":"\n<p><code>yum<\/code> is a package management command-line tool used in Red Hat-based systems (such as CentOS and Fedora) to install, update, and manage software packages. This cheat sheet covers essential <code>yum<\/code> commands for package management.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Introduction:<\/strong><\/h4>\n\n\n\n<p><code>yum<\/code> simplifies the process of managing software packages on Red Hat-based systems. It handles package installation, updates, removals, and dependency resolution.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Basic Commands:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>sudo yum install [package]<\/code><\/td><td>Install a specific package.<\/td><\/tr><tr><td><code>sudo yum remove [package]<\/code><\/td><td>Remove a specific package.<\/td><\/tr><tr><td><code>sudo yum update<\/code><\/td><td>Update all installed packages to the latest versions.<\/td><\/tr><tr><td><code>sudo yum upgrade<\/code><\/td><td>Upgrade the entire system, including installed packages.<\/td><\/tr><tr><td><code>sudo yum search [keyword]<\/code><\/td><td>Search for packages containing the specified keyword.<\/td><\/tr><tr><td><code>sudo yum list installed<\/code><\/td><td>List all installed packages.<\/td><\/tr><tr><td><code>sudo yum info [package]<\/code><\/td><td>Display detailed information about a package.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Repository Management:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>sudo yum repolist<\/code><\/td><td>List enabled repositories.<\/td><\/tr><tr><td><code>sudo yum-config-manager --enable [repository]<\/code><\/td><td>Enable a repository.<\/td><\/tr><tr><td><code>sudo yum-config-manager --disable [repository]<\/code><\/td><td>Disable a repository.<\/td><\/tr><tr><td><code>sudo yum clean all<\/code><\/td><td>Clean the package cache and metadata for all repositories.<\/td><\/tr><tr><td><code>sudo yum makecache<\/code><\/td><td>Generate the metadata cache used by <code>yum<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Dependency Resolution:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>sudo yum deplist [package]<\/code><\/td><td>List dependencies for a package.<\/td><\/tr><tr><td><code>sudo yum check<\/code><\/td><td>Check for and resolve dependency issues.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>System Information:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>yum list updates<\/code><\/td><td>List packages with available updates.<\/td><\/tr><tr><td><code>yum history<\/code><\/td><td>Display a history of transactions.<\/td><\/tr><tr><td><code>yum info yum<\/code><\/td><td>Display information about the <code>yum<\/code> package.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Miscellaneous:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>sudo yum clean packages<\/code><\/td><td>Remove old package files from the cache.<\/td><\/tr><tr><td><code>sudo yum install yum-utils<\/code><\/td><td>Install <code>yum-utils<\/code> package for additional utilities.<\/td><\/tr><tr><td><code>sudo yum downgrade [package]<\/code><\/td><td>Downgrade a package to a specific version.<\/td><\/tr><tr><td><code>sudo yum check-update<\/code><\/td><td>Check for available package updates.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p><code>yum<\/code> is a powerful package management tool for Red Hat-based systems, providing a straightforward way to install, update, and manage software packages. This cheat sheet covers essential commands for day-to-day package management tasks. Whether you are a system administrator or a user on a Red Hat-based system, mastering these commands will help you efficiently manage software on your system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>yum is a package management command-line tool used in Red Hat-based systems (such as CentOS and Fedora) to install, update, and manage software packages. This cheat sheet covers essential yum commands for package management. Introduction: yum simplifies the process of managing software packages on Red Hat-based systems. It handles package installation, updates, removals, and dependency [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1804,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,265],"tags":[35],"class_list":["post-1661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-reference","tag-linux"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/1661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=1661"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/1661\/revisions"}],"predecessor-version":[{"id":1662,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/1661\/revisions\/1662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media\/1804"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}