How do I uninstall package or software using the command line in Linux operating systems? How can I uninstall software on a Debian or Ubuntu Linux? Can you tell me command to uninstall package on a CentOS/RHEL/Oracle/Fedora Linux?
Strictly speaking, Linux is the kernel. Linux distribution is made of Linux kernel, installation scripts, shell, compilers, desktop, and other components. Hence, Linux command to uninstall package or software depends upon Linux distribution name and type. This page explains how to uninstall package or software on various Linux distros using the command line.
Linux uninstall package / software
First, you need to find a list of all installed packages on Linux.
To uninstall an application, you need to use Linux distro-specific command. For example, use the apt command on Debian or Ubuntu Linux. RHEL/CentOS/Fedora Linux users need to run either the dnf or yum command and so on.
Finally, we can use various commands for verification of the uninstallation of a program on Linux.
Let us see all commands in action to uninstall a program on Linux.
Ubuntu/Debian Linux uninstall software
The syntax is as follows to list all installed packages on Debian or Ubuntu Linux using the apt command: apt list --installed
How to find out exact package names in Debian/Ubuntu/Mint Linux Another option for finding out package names is to use the dpkg command: dpkg --list dpkg --list | grep '^ii' Use the ‘dpkg --list‘ command to get a list of all installed packages on an Ubuntu or Debian/Mint Linux It will be a big list, and we need to scroll through package names on a computer screen until you find the one you want to uninstall. Of course, we can use the grep command to filter out the list as follows: dpkg --list | grep -i 'package' apt list --installed \*package\* apt list --installed \*ping\* dpkg --list | grep -i 'firefox' dpkg --list | grep -i 'ping' grep command in action to filter out package names quickly that you want to uninstall Let us uninstall the program named 2ping using the apt-get command or apt command. For example: sudo apt remove 2ping sudo apt remove --purge 2ping OR sudo apt-get remove 2ping sudo apt-get --purge remove 2ping First, you need to enter your password when prompted and press the [Enter] key. The --purge is optional. We use it when we need to uninstall the package and all of its configuration files. When prompted, “Do you want to continue?”, type a y and press the [Enter] key: Do not pass the --purge option if you don’t want to delete the config file for the package. For example, to remove the nginx package and leave all config files as it is on disk, run: sudo apt remove nginx #### OR ##### sudo apt-get remove nginx Finally verify that nginx has been removed or uninstalled from the system, run: dpkg --list | grep nginx apt list --installed | grep nginx Now you know how to uninstall package on a Debian or Ubuntu or Mint Linux. Let us see other distros.
RHEL/CentOS/Oracle Linux
We need to use the yum command for CentOS/RHEL v6.x/7.x. First get a list, run: sudo yum list installed sudo yum list installed | grep package sudo yum list installed | grep zip
yum command in action To uninstall the package named zip, run: sudo yum remove zip Use the dnf command on a CentOS/RHEL/Oracle Linux 8 as follows to uninstall software: sudo dnf list installed sudo dnf list installed | grep zip sudo dnf remove zip
Fedora Linux
Again, we need to the dnf command as follows: ## List all installed packages ## sudo dnf list installed ## Filter out the package named httpd ## sudo dnf list installed | grep httpd ## Delete the httpd ## sudo dnf remove httpd
ArchLinux
We use the pacman command on Arch Linux to uninstall software. Pass the Q to list all installed packages on Arch Linux: sudo pacman Q sudo pacman Q | more sudo pacman Q | grep sl To delete/remove the sl package in Arch, run: sudo pacman -R sl
pacman command in action to list and uninstall package on an Arch Linux
OpenSUSE or SUSE Linux removing package command
We are going to use the zypper command. To list all installed packages in SUSE/OpenSUSE, run: sudo zypper packages --installed-only sudo zypper packages --installed-only | grep -i package sudo zypper packages --installed-only | grep -i zip I am going to remove the zip package, enter: sudo zypper remove package sudo zypper remove zip
Alpine Linux
Use the apk command to list installed packages only: sudo apk list sudo apk list -I sudo apk list -I 'package' sudo apk list -I 'zip' To uninstall the zip Linux uninstall software pass the del as follows: sudo apk del pkg sudo apk del zip
apk command in action
Conclusion
You learned how to uninstall package on popular Linux distros. I would strongly recommend reading the man pages: man yum man dnf man apt man zypper man pacman
Charts helps us to visualize large amount of data in an easy to understand and interactive way. This helps businesses to grow more by taking important decisions from the data. For example, e-commerce can have charts or reports for product sales, with various categories like product type, year, etc. In angular, we have various charting libraries to create charts. Ngx-charts is one of them. Check out the list of best angular chart libraries . In this article, we will see data visualization with ngx-charts and how to use ngx-charts in angular application ? We will see, How to install ngx-charts in angular ? Create a vertical bar chart Create a pie chart, advanced pie chart and pie chart grid Introduction ngx-charts is an open-source and declarative charting framework for angular2+. It is maintained by Swimlane . It is using Angular to render and animate the SVG elements with all of its binding and speed goodness and uses d3 for the excellent math functio...
forRoot / forChild is a pattern for singleton services that most of us know from routing. Routing is actually the main use case for it and as it is not commonly used outside of it, I wouldn’t be surprised if most Angular developers haven’t given it a second thought. However, as the official Angular documentation puts it: “Understanding how forRoot() works to make sure a service is a singleton will inform your development at a deeper level.” So let’s go. Providers & Injectors Angular comes with a dependency injection (DI) mechanism. When a component depends on a service, you don’t manually create an instance of the service. You inject the service and the dependency injection system takes care of providing an instance. import { Component, OnInit } from '@angular/core'; import { TestService } from 'src/app/services/test.service'; @Component({ selector: 'app-test', templateUrl: './test.component.html', styleUrls: ['./test.compon...
During the automation of multiple tasks on my job and personal projects, i decided to move on Puppeteer instead of the old school PhantomJS. One of the most usual problems with pages that contain a lot of content, because of the ads, images etc. is the load time, an exception is thrown (specifically the TimeoutError) after a page takes more than 30000ms (30 seconds) to load totally. To solve this problem, you will have 2 options, either to increase this timeout in the configuration or remove it at all. Personally, i prefer to remove the limit as i know that the pages that i work with will end up loading someday. In this article, i'll explain you briefly 2 ways to bypass this limitation. A. Globally on the tab The option that i prefer, as i browse multiple pages in the same tab, is to remove the timeout limit on the tab that i use to browse. For example, to remove the limit you should add: await page . setDefaultNavigationTimeout ( 0 ) ; COPY SNIPPET The setDefaultNav...
Comments
Post a Comment