You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在RHEL 7.4 Maipo中完全卸载Eclipse 4.7版本?

Fixing Eclipse Uninstallation on RHEL

Hey there! Let's walk through getting Eclipse fully removed from your RHEL system, since the commands you tried only covered partial cleanup. The issue usually boils down to how Eclipse was originally installed—let's cover all possible scenarios step by step:

1. First, confirm Eclipse's installation method

Run this command to check if Eclipse was installed via the RPM package manager:

rpm -qa | grep eclipse
  • If you see a list of packages, it was installed via YUM/DNF.
  • If no results show up, you likely installed it manually (e.g., downloaded a tarball from the Eclipse website).

2. Uninstall for RPM/YUM-installed Eclipse

If the RPM command returned packages, run this to remove all Eclipse-related packages completely (this fixes gaps your initial yum remove 'eclipse*' might have missed):

sudo yum remove $(rpm -qa | grep eclipse)

For newer RHEL versions using DNF, replace yum with dnf:

sudo dnf remove $(rpm -qa | grep eclipse)

3. Uninstall for manually installed Eclipse

If you downloaded Eclipse as a tarball and extracted it yourself:

  • First, locate the main Eclipse program directory (skip your already-deleted config/workspace folders):
    sudo find / -name "eclipse" -type d | grep -v ".eclipse" | grep -v "eclipse-workspace"
    
    Common installation locations include /opt/eclipse, /usr/local/eclipse, or a folder in your home directory.
  • Delete the installation directory:
    sudo rm -rf /path/to/eclipse/directory
    
  • Remove any desktop shortcuts that might still exist:
    sudo rm -f /usr/share/applications/eclipse.desktop
    rm -f ~/.local/share/applications/eclipse.desktop
    

4. Clean up residual files

Even after removing the main program, leftover config and cache files might remain. Run these commands to wipe them:

  • Delete the Eclipse P2 update cache (a common leftover):
    sudo rm -rf ~/.p2
    
  • Remove system-level config directories if they exist:
    sudo rm -rf /etc/eclipse
    

5. Verify the uninstallation

Run this command to confirm Eclipse is gone:

eclipse

If you get a command not found error, that's a solid sign it's fully removed. You can double-check with:

rpm -qa | grep eclipse
sudo find / -name "eclipse" -type d

内容的提问来源于stack exchange,提问作者Aashish Chaubey

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:08:58