{"id":2063,"date":"2020-11-23T20:25:59","date_gmt":"2020-11-23T20:25:59","guid":{"rendered":"https:\/\/linuxways.net\/?p=2063"},"modified":"2020-11-23T20:26:02","modified_gmt":"2020-11-23T20:26:02","slug":"how-to-uninstall-programs-from-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-uninstall-programs-from-centos-8\/","title":{"rendered":"How to uninstall programs from CentOS 8"},"content":{"rendered":"<p>Each Linux distribution is a collection of various packages. So, all packages must keep in a suitable package manager. Different types of package managers are available on every Linux distribution. When we talk about CentOS then, using RPM is a package, and YUM is used as Package Manager. YUM is available on almost all kinds of RPM-based environments like CentOS, Fedora, OpenSUSE, and RHEL. However, it is used on RHEL and CentOS distributions mostly.<\/p>\n<p>So, we will guide you in this article about how you can uninstall a program or package using the yum package manager. We have implemented all commands on the latest available CentOS 8 Linux distribution. But, these below mentioned commands can also be used on an older CentOS environment. It is important to note that you can uninstall rpm packages using the yum package manager.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>To make any system-level change in the Linux distribution, you must have sudo command or root privileges. In the CentOS environment, you need to login from a root account or any user who can execute sudo commands.\u00a0<\/p>\n<p>All commands we need to run on a command-line tool. Therefore, open the terminal. To do that, click on \u2018Activities\u2019 on top left corner and from the sidebar click on the terminal application icon as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1913\" height=\"947\" class=\"wp-image-2064\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-626.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-626.png 1913w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-626-300x149.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-626-1024x507.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-626-768x380.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-626-1536x760.png 1536w\" sizes=\"auto, (max-width: 1913px) 100vw, 1913px\" \/><\/p>\n<p>Now, let&#8217;s start the demonstration about how to uninstall a package using yum on CentOS 8.\u00a0<\/p>\n<h2><strong>List the installed Package Using Yum Package Manager<\/strong><\/h2>\n<p>Before uninstalling any program from your system, you need to know either this package is installed on this system or not. You must have the package name that you want to uninstall from your CentOS 8 system. For this purpose, you need to list all installed packages. Therefore, by executing the following command you can list all installed packages on your system:<\/p>\n<pre>$ yum list installed<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"741\" class=\"wp-image-2065\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-627.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-627.png 1105w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-627-300x201.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-627-1024x687.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-627-768x515.png 768w\" sizes=\"auto, (max-width: 1105px) 100vw, 1105px\" \/><\/p>\n<p>For your convenience, you can use less with the above-mentioned command.<\/p>\n<pre>$ yum list installed | less<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1097\" height=\"748\" class=\"wp-image-2066\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-628.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-628.png 1097w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-628-300x205.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-628-1024x698.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-628-768x524.png 768w\" sizes=\"auto, (max-width: 1097px) 100vw, 1097px\" \/><\/p>\n<p>You can filtered the displaying output with the help of following \u2018grep\u2019 command:<\/p>\n<pre>$ yum list installed | grep &lt;search_term&gt;<\/pre>\n<p>For example, you want to search the gcc package. Just type gcc in the search term as follows:<\/p>\n<pre>$ yum list installed | grep gcc<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1098\" height=\"603\" class=\"wp-image-2067\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-629.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-629.png 1098w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-629-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-629-1024x562.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-629-768x422.png 768w\" sizes=\"auto, (max-width: 1098px) 100vw, 1098px\" \/><\/p>\n<h2><strong>Uninstall a Package Using Yum<\/strong><\/h2>\n<p>Now, we are assuming that you know about the package name that you want to uninstall. So, using the following command you can uninstall the required package:<\/p>\n<pre># yum remove &lt;package&gt;<\/pre>\n<p>For example, you want to remove a package with the name gcc.x86_64. Then, you can remove it by using the following command:<\/p>\n<pre># yum remove gcc.x86_64<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1098\" height=\"852\" class=\"wp-image-2068\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-630.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-630.png 1098w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-630-300x233.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-630-1024x795.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-630-768x596.png 768w\" sizes=\"auto, (max-width: 1098px) 100vw, 1098px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1103\" height=\"855\" class=\"wp-image-2069\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-631.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-631.png 1103w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-631-300x233.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-631-1024x794.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-631-768x595.png 768w\" sizes=\"auto, (max-width: 1103px) 100vw, 1103px\" \/><\/p>\n<h2><strong>Uninstall Multiple Packages<\/strong><\/h2>\n<p>By executing the same above command using the following structure, you can uninstall multiple packages:<\/p>\n<pre># yum remove &lt;package_1&gt; &lt;package_2&gt;<\/pre>\n<p>For example, we want to remove two packages gcc.x86_64 and Firefox. Then, use the command as follows:<\/p>\n<pre># yum remove gcc.x86_64 firefox<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2070\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-632.png\" alt=\"How to uninstall programs from CentOS\" width=\"1103\" height=\"750\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-632.png 1103w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-632-300x204.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-632-1024x696.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-632-768x522.png 768w\" sizes=\"auto, (max-width: 1103px) 100vw, 1103px\" \/><\/p>\n<h2><strong>Uninstall a packages group<\/strong><\/h2>\n<p>Many similar kinds of packages you can install using the group package installation. So, if you don\u2019t want to use it further then, you can also uninstall this group.\u00a0<\/p>\n<pre># yum remove @\"&lt;group_name&gt;\"<\/pre>\n<p>Let\u2019s give you an example, you can install a group \u2018Development tools\u2019 in which different packages related to development like gcc compiler, cmake, git and automake, etc are included. So, by using just a single command you can uninstall the packages group.<\/p>\n<pre># yum remove @\"Development Tools\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2071\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-633.png\" alt=\"How to uninstall programs from CentOS\" width=\"1091\" height=\"743\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-633.png 1091w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-633-300x204.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-633-1024x697.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-633-768x523.png 768w\" sizes=\"auto, (max-width: 1091px) 100vw, 1091px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2072\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-634.png\" alt=\"How to uninstall programs from CentOS\" width=\"1095\" height=\"749\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-634.png 1095w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-634-300x205.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-634-1024x700.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-634-768x525.png 768w\" sizes=\"auto, (max-width: 1095px) 100vw, 1095px\" \/><\/p>\n<p>Alternatively, you can use the below command that will perform the same operation that we have done in the above command.<\/p>\n<pre># yum group remove \"&lt;group_name&gt;\"<\/pre>\n<h2><strong>Automate package removal confirmation prompt\u00a0<\/strong><\/h2>\n<p>When you uninstall a package, it will show you a confirmation prompt. So, if you don\u2019t want to view the prompt during the installation then, use the option \u2018-y\u2019 with your command.<\/p>\n<pre># yum remove &lt;package_name&gt; -y<\/pre>\n<p>However, yum isn\u2019t the only one that offers this feature. Using this powerful manager you can perform more tasks. So, execute the following command to explore more features of Yum package manager:<\/p>\n<pre>$ yum --help<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2073\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-635.png\" alt=\"How to uninstall programs from CentOS\" width=\"1103\" height=\"746\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-635.png 1103w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-635-300x203.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-635-1024x693.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-635-768x519.png 768w\" sizes=\"auto, (max-width: 1103px) 100vw, 1103px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>We have a simple way to uninstall a package using Yum. You need to just type the package name with root privileges. Moreover, we have also seen how to remove a single package, multiple, and group by using the Yum package manager. Send us your feedback through comments.<\/p>\n<p><strong><a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-uninstall-programs-from-ubuntu-20-04-lts\/\">If you would like to uninstall programs from Ubuntu 20.04, click here.<\/a><\/strong><\/p>\n<p><strong><a href=\"https:\/\/linuxways.net\/de\/debian\/how-to-uninstall-programs-from-debian-10\/\">If you would like to uninstall programs from Debian 10, click here.<\/a><\/strong><\/p>\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Each Linux distribution is a collection of various packages. So, all packages must keep in a suitable package manager. Different types of package managers are available on every&hellip;<\/p>","protected":false},"author":2,"featured_media":2074,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2063","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=2063"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2063\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/2074"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=2063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=2063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=2063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}