Skip to main content

Uninstall Installed Apps in Linux

🐧 How to Completely Uninstall Apps in Linux (Advanced Guide)

linux uninstall guide

Removing apps in Linux is not just about running one command. Sometimes apps are installed using different methods (APT, Snap, Flatpak, .deb files, manual install), and each requires a different removal approach.

📌 Step 1: Identify the App Source (Most Important)

Before uninstalling, you MUST know how the app was installed:

which app_name

Explanation:

  • /usr/bin/ → Installed via APT or .deb
  • /snap/ → Snap package
  • /var/lib/flatpak/ → Flatpak

Alternative checks:

dpkg -l | grep app_name
snap list
flatpak list

⚙️ Method 1: Remove APT / .deb Installed Apps

Normal uninstall:

sudo apt remove app_name

Complete uninstall (recommended):

sudo apt purge app_name

Fix broken packages (important):

sudo apt --fix-broken install

Remove unused dependencies:

sudo apt autoremove

📦 Method 2: Remove Snap Apps

sudo snap remove app_name

📁 Method 3: Remove Flatpak Apps

flatpak uninstall app_name

📦 Method 4: If Installed via .deb File

Even if you installed using a .deb file manually, it is managed by dpkg:

dpkg -l | grep app_name

Remove using dpkg:

sudo dpkg -r package_name

Force remove (if broken):

sudo dpkg --remove --force-remove-reinstreq package_name

⚠️ Common Problems & Fixes

1. ❌ "Unable to locate package"

👉 Wrong package name — find correct name using:

dpkg -l

2. ❌ "Permission denied"

👉 Use sudo before command

3. ❌ App still exists after uninstall

👉 Remove leftover config manually:

rm -rf ~/.config/app_name

4. ❌ Command not found

👉 App already removed OR wrong name

5. ❌ Broken package error

sudo apt --fix-broken install

Pro-Level Tips

  • Always use purge for clean uninstall
  • Check multiple sources (APT + Snap + Flatpak)
  • Use which before uninstalling
  • Clean config files manually for full control

Final Conclusion

If you blindly run uninstall commands, you will mess up your system. First identify → then remove → then clean leftovers. That’s how real Linux users maintain their system.

Comments

Popular posts from this blog

Download youtube video using termux

How to Download YouTube Videos Using Termux If you're interested in downloading YouTube videos directly through Termux, this guide will walk you through the process. We’ll explain each command step-by-step and ensure you can execute them successfully. Introduction Termux is a powerful terminal emulator for Android that allows you to use Linux commands. In this guide, we’ll use Termux to install and run a script for downloading YouTube videos. The script we’ll use is hosted on GitHub, and by following the commands below, you’ll be able to download videos easily. Commands Explanation Below is the list of commands you need to execute, along with an explanation of what each does. 1. Update and Upgrade Packages pkg up -y -y -y -y This command updates and upgrades all existing packages in Termux. The pkg up is a shorthand for pkg update && pkg upgrade . The -y flag automatically answers “yes” to any prompt...

linux on any phone using termux

How to Install Kali Linux on Android Using Termux (Step-by-Step Guide) Kali Linux is a powerful penetration testing and security auditing platform. While it's primarily used on PCs, you can also run it on your Android phone using Termux . In this guide, we'll walk you through the step-by-step process. Prerequisites Before starting, ensure you have: Android 7.0 or higher (root not required but helpful for full functionality) Termux app (download from F-Droid Stable internet connection (for downloading packages) At least 5GB free storage (Kali Linux tools take space) Step 1: Install & Update Termux Download Termux from F-Droid Open Termux and run the following commands to update packages: pkg update -y && pkg upgrade -y Install essential dependencies: pkg install wget proot -y Ste...

Unveiling the Mystery Behind a Phone Number with Python

Unveiling the Mystery Behind a Phone Number with Python In the digital age, a phone number can reveal much more than just a means to communicate. With the right tools, one can uncover the general location and even the service provider behind a mysterious number. Today, we’ll explore how a simple Python script can turn a series of digits into insightful information. The Python Code Our journey begins with importing the necessary modules: import phonenumbers from phonenumbers import geocoder, carrier from geopy.geocoders import Nominatim The phonenumbers module is a treasure trove, capable of parsing, formatting, and validating phone numbers. It also houses geocoder and carrier , submodules that help us find the location and carrier information, respectively. Next, we prompt the user for a phone number: phone_n = input("Enter your phone number: ") phone_number = phonenumbers.parse(phone_n, None) The parse function analyzes the phone number, prepar...