Patrick-Dussault

How to force rpm to install a .rpm package overlooking the dependencies ?

Blog Post created by Patrick-Dussault Employee on Apr 10, 2018

Issue

 

I run the rpm command on Linux and the install stops because it's
missing some dependencies. How can I install it without any
consideration about the dependencies ?

 

I've got 2 packages that are needed one to the other :

 

[root@localhost Packages]# rpm -i nss-softokn-freebl-3.28.3-6.el7.i686.rpm --force
warning: nss-softokn-freebl-3.28.3-6.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
libc.so.6 is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libc.so.6(GLIBC_2.0) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libc.so.6(GLIBC_2.1) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libc.so.6(GLIBC_2.1.3) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libc.so.6(GLIBC_2.3) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libc.so.6(GLIBC_2.3.4) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libc.so.6(GLIBC_2.4) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libdl.so.2 is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libdl.so.2(GLIBC_2.0) is needed by nss-softokn-freebl-3.28.3-6.el7.i686
libdl.so.2(GLIBC_2.1) is needed by nss-softokn-freebl-3.28.3-6.el7.i686

 

[root@localhost Packages]# rpm -Uvh glibc-2.17-196.el7.i686.rpm
warning: glibc-2.17-196.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
libfreebl3.so is needed by glibc-2.17-196.el7.i686
libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.17-196.el7.i686

 

Solution :

 

Run the rpm command with the switches --force --nodeps on one of the
package, and then install the second one to solve this issue.

 

[root@localhost download]# rpm -fi nss-softokn-freebl-3.28.3-6.el7.i686.rpm --force --nodeps

Outcomes