大网数据广告活动
服务器运维问答

Cannot uninstall incorrect version Erlang on RHEL 6.x

· 52CE 我爱测

Issue I am setting up a RHEL 6.X server to house my RabbitMQ test environment. I need to install Erlange 16 or higher to work correctly with the latest version of RabbitMQ (3.6.x I believe). However, I currently have Erlang 14 on…

问题原文

原帖链接 · Chris Maggiulli · CC BY-SA 3.0

Issue

I am setting up a RHEL 6.X server to house my RabbitMQ test environment. I need to install Erlange 16 or higher to work correctly with the latest version of RabbitMQ (3.6.x I believe). However, I currently have Erlang 14 on the system. I tried to remove it via yum however yum is saying it is not installed.

yum remove erlang

However when I run

$ erl -v

I get the following

Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:0] [kernel-poll:false]

Eshell V5.8.5  (abort with ^G)

And there exists a erlang directory

/usr/lib64/erlang/

With the following sub directories

bin  erts-5.8.5  lib  man  releases  usr

How should I go about uninstalling this version of Erlang so I can install a new version? One peice of information that may be helpful. After the first successful install of the old version I actually did run yum remove and it appeared to work. However when I then tried to install the newer version it was stating the conflicts and I then found the aforementioned directory.

已采纳解答

原帖链接 · Paul Haldane · CC BY-SA 3.0

erlang is made up of a number of RPM packages which are installed automatically as depependencies when you do yum install erlang. One of these packages contains the erl script.

However when you do yum remove erlang the additional packages aren't automatically removed.

You can remove all the packages by looking at yum's history (using the yum history list command - see https://unix.stackexchange.com/questions/303754/how-to-remove-all-installed-dependent-packages-while-removing-a-package-in-cento for more details) and removed the packages installed as part of the erlang installation transaction.

Or, in this case, you could probably just get a list of installed erlang components using yum list installed | grep erlang and remove those packages.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-06-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。