How to Manually Uninstall Software in Linux Mint

Abstract: Resolves the problem of removing software and its configuration files from Linux Mint using apt purge or manually deleting standalone binaries.

Created: 2026-08-27 by

To manually uninstall software in Linux Mint, open a terminal and use the apt command with purge to remove packages and their configuration files. For applications installed from external sources or as standalone binaries, locate the installation directory and delete it using the rm command. Always verify the package name first to avoid removing unintended system components.

Identifying Installed Packages

Before removing any software, it is crucial to know exactly what you are dealing with. The Linux Mint package manager, apt, tracks most system applications and libraries. You can list installed packages by opening the Terminal application. Press Ctrl+Alt+T to launch it quickly. To find a specific package, use the dpkg query tool. Run the following command to search for a package by name:
dpkg -l | grep package-name
Replace package-name with the actual name of the software you wish to remove. This command filters the list of all installed packages to show only those matching your search string. If the package is not found, it might be installed via Snap, Flatpak, or as a manual binary rather than through the standard Debian repositories. In such cases, the apt method will not work, and you must proceed to the manual removal steps later in this guide. For a more detailed view of what a package provides, you can check its description using:
apt-cache show package-name
This helps confirm that you are targeting the correct software, especially when dealing with generic names like java or python which may refer to multiple versions or components.

Removing Standard APT Packages

If the software was installed via the Software Manager or directly through the command line using apt install, it is managed by the Advanced Package Tool. There are two primary commands for removal: remove and purge. The remove command deletes the program files but keeps the configuration files in case you want to reinstall the software later without losing your settings. The purge command deletes both the program files and the configuration files, returning the system to a state as if the software was never installed. To remove a package along with its configuration files, use:
sudo apt purge package-name
You will be prompted to enter your user password. Note that the password will not be visible on screen as you type. After entering the password, press Enter. The system will then display the changes it intends to make and ask for confirmation. Type y and press Enter to proceed. It is important to understand that apt purge does not delete user data stored in your home directory, such as documents, images, or custom settings saved in hidden folders like ~/.config or ~/.local. These files remain intact to prevent accidental data loss. If you need to clean up these user-specific files, you must do so manually after the package removal. After purging the package, it is good practice to clean up orphaned dependencies. These are libraries that were installed to support the removed software but are no longer needed by any other application. Run the following command to remove them:
sudo apt autoremove
This step helps keep your system lean and free of unnecessary clutter. You can also run sudo apt autoclean to clear out old .deb files from the local repository cache, freeing up disk space.

Handling Snap and Flatpak Applications

Linux Mint supports multiple package formats beyond standard DEBs. Many modern applications are distributed via Snap or Flatpak. These managers operate independently of apt, so you cannot remove them using the methods described above. To identify if an application is a Snap, use:
snap list
To remove a Snap application, use the snap remove command:
sudo snap remove app-name
Similarly, for Flatpak applications, list them with:
flatpak list
And remove them using:
flatpak uninstall app-name
These commands handle the removal of the application bundle and associated runtime components. They are generally safer and more complete than manual deletion because they track dependencies and metadata specifically for their respective ecosystems.

Manual Removal of Standalone Software

Some software is installed manually by downloading a tarball, extracting it, and running an installer script, or by placing binaries in /usr/local/bin. These applications are not tracked by apt, snappy, or flatpak. Removing them requires locating the installation directory and deleting it. First, determine where the software was installed. Common locations include /opt, /usr/local, or the user's home directory. For example, if you installed a Java development kit manually, it might reside in /opt/jdk-17. Use the ls command to inspect these directories:
ls /opt
Once you have identified the folder containing the software, you can remove it. Be extremely cautious here, as deleting the wrong directory can break your system. To remove a directory and its contents, use:
sudo rm -rf /path/to/software
The -r flag stands for recursive, meaning it will delete all files and subdirectories within the target folder. The -f flag forces the deletion without prompting for confirmation. Because this command is destructive, double-check the path before executing it. If the software added entries to your system PATH or created desktop shortcuts, you should also clean those up. Desktop shortcuts are usually located in ~/.local/share/applications. Remove any corresponding .desktop files manually. If the software modified environment variables in ~/.bashrc or ~/.profile, edit those files to remove the relevant export statements. For more information on handling file removal errors, see our guide on resolving the Error: rm cannot remove 'dir-name' - Directory not empty issue, which covers permissions and locked files that might prevent deletion.

Cleaning Up Residual Configurations

Even after removing the main application files, residual configuration files may remain in your home directory. These are often stored in hidden folders starting with a dot, such as ~/.config/appname or ~/.appname. To find these files, use the find command:
find ~ -name "*appname*" -type d
This searches your home directory for any folder containing the application name. Review the results carefully. If you are sure you will never reinstall the software, you can delete these folders using rm -rf. However, consider keeping them if you might reinstall the software in the future, as they allow you to restore your previous settings instantly. Regularly cleaning up unused configurations helps maintain a tidy system and prevents confusion when searching for settings. It also reduces the risk of leftover files interfering with new installations or other applications with similar names.

Frequently Asked Questions

Does apt purge delete my personal files?

No, apt purge only removes the package files and system-wide configuration files. It does not touch personal data stored in your home directory, such as documents, photos, or emails. Your user-specific settings in ~/.config are also preserved unless you delete them manually.

How do I find where a manually installed program is located?

You can use the which command followed by the executable name to find the location of a binary in your PATH. For broader searches, use locate filename or find / -name filename (with sudo) to scan the entire filesystem. Checking common directories like /opt and /usr/local is also recommended.

What is the difference between remove and purge in apt?

The remove command deletes the software binaries but keeps configuration files in /etc and the user's home directory. The purge command deletes both the binaries and all associated configuration files, providing a cleaner uninstallation. Use purge if you want to completely eliminate the software's presence from the system.

Can I recover a package after using apt purge?

Yes, you can reinstall the package using sudo apt install package-name. However, any configuration files that were deleted during the purge process will not be restored automatically. You will start with default configurations unless you backed them up beforehand. User data in your home directory remains unaffected by the reinstallation.

Why does rm give me permission denied errors?

Permission denied errors occur when you try to delete files owned by another user or root without sufficient privileges. Use sudo before the rm command to execute it with administrative rights. Ensure you are targeting the correct directory, as deleting system files can cause severe instability.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More