Cannot install libffi-devel

I am trying to install libffi-devel on RHEL, but when I try to get this message:

Transaction Check Error: package libffi-3.0.5-1.el5.6.z.x86_64 (which is newer than libffi-3.0.5-1.el5.i386) is already installed 

I run this command:

 sudo yum install -y libffi-devel 

And here is the complete output of the command:

 Loaded plugins: downloadonly, rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. Excluding Packages in global exclude list Finished Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - Common Finished Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - MySQL 5.1 Finished Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - PHP 5.2 Finished Excluding Packages from Red Hat Enterprise Linux (v. 5 for 64-bit x86_64) Finished Excluding Packages from Red Hat Network Tools for RHEL Server (v.5 64-bit x86_64) Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package libffi-devel.x86_64 0:3.0.5-1.el5 set to be updated --> Processing Dependency: libffi = 3.0.5-1.el5 for package: libffi-devel --> Running transaction check ---> Package libffi.i386 0:3.0.5-1.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================================================================================ Installing: libffi-devel x86_64 3.0.5-1.el5 epel 16 k Installing for dependencies: libffi i386 3.0.5-1.el5 epel 21 k Transaction Summary ================================================================================================================================================================================================================================================================================ Install 2 Package(s) Upgrade 0 Package(s) Total size: 37 k Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Check Error: package libffi-3.0.5-1.el5.6.z.x86_64 (which is newer than libffi-3.0.5-1.el5.i386) is already installed Error Summary ------------- 
+8
rhel yum
source share
2 answers

It looks like you already have the libffi-3.0.5-1.el5.6.z.x86_64 version installed on your system. Check with the command and remove rpm first.

 rpm -qa | grep libffi rpm -e <rpm from the above> 

Then try installing with:

 sudo yum install -y libffi libffi-devel 
+11
source share

you can install libffi as below -

  rpm -ivv ftp://195.220.108.108/linux/centos/6.7/os/x86_64/Packages/libffi-devel-3.0.5-3.2.el6.x86_64.rpm 
0
source share

All Articles