Linux Delete / Uninstall Software

How do I uninstall or delete installed software under Linux operating systems?

Different Linux distributions comes with different tools to remove the software installed under Linux.

First, open terminal (bash prompt).

You must be login as root user to run any one of the following command.

Remove Software under Red Hat / RHEL / Fedora / CentOS Linux

Use rpm or yum command to delete the software.

To list the installed software type

rpm -qa | less
rpm -qa {software-name}
yum list | less
yum list {software-name}

To get information about httpd package, enter:
rpm -qa httpd
yum list httpd

To remove a software use rpm or yum command as follows

rpm -e {software-name}
yum remove {software-name}

To delete a package called httpd, enter:
rpm -e httpd
yum remove httpd

Delete / Uninstall Software Under Debian / Ubuntu Linux

To list installed software type:
dpkg --list
dpkg --list | less
dpkg --list | grep apache

To delete the software, enter:
sudo apt-get remove {package-name}
sudo apt-get remove apache

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 12 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
12 comments… add one
  • catharina laptop Mar 20, 2010 @ 4:37

    I wish back my Windows xp program.

    • Wamiq Ali Jan 2, 2012 @ 6:33

      Which kinda? You can use wine under linux to run many. Even softwares like photoshop. And many common softwares are available at linux like skype, VLC, teamviewer and much more.

  • Yusuf Sep 24, 2012 @ 5:47

    i want to uninstall the oracle 10g from the vertual linux. And my linux os is installed on VMware software so please tell how can i do it ??????????
    Thank You…………..

  • Pinoy Oct 20, 2013 @ 10:18

    Thanks! Short but informative! :)

  • cata Dec 27, 2013 @ 13:36

    thanks a bunch!

  • mina Jan 10, 2014 @ 9:23

    what should i do if i need to see list of unistalled program

  • Natsu Sep 3, 2014 @ 18:04

    That works to full uninstall? Including config files? I mean, for apt-get you can use purge, but for yum, how can you do that?

  • Linuxisme Nov 16, 2014 @ 9:38

    Why very difficult UNINSTALL for LINUX, why?
    Windows only ONE CLICK, but LINUX many many click…..

  • Linuxisme Nov 16, 2014 @ 9:40


  • Muhammad vuvaise Oct 21, 2015 @ 13:34

    I had installed boss linux os in my laptop. Recently I installed gta game. But it is not fully installed. So I can’t able to run the program. How I uninstall or completely remove the application from my laptop. Please help me.

  • noman Jan 24, 2016 @ 17:39

    I am looking someone who can help to uninstall centos 6.7 and install centos 5.11.

  • Hemant Sep 3, 2016 @ 10:23

    It says
    E: unable to locate package “package name”

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum