Package self-conflict when using “rpm” command to install a package.
This document (000019640) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15 SP2 (and later)
Situation
For example SLES12 SP4 re-install :
// // SLES12 SP4 re-install // # rpm -i driver-kmp-default-1.0.0_k4.12.14_94.41-2.x86_64.rpm package driver-kmp-default-1.0.0_k4.12.14_94.41-2.x86_64 is already installed
For example SLES12 SP5 re-install :
/ // SLES12 SP5 re-install // # rpm -i driver-kmp-default-1.0.0_k4.12.14_120-2.x86_64.rpm error: Failed dependencies: driver-kmp-default-k4.12.14_120 conflicts with driver-kmp-default-1.0.0_k4.12.14_120-2.x86_64 driver-kmp-default-k4.12.14_120 conflicts with (installed) driver-kmp-default-1.0.0_k4.12.14_120-2x86_64
Resolution
Use rpm --force –nodeps to replace the package if already installed or use rpm -e to remove previously installed package(s)
Cause
These conflicts are added so that zypper can automatically resolve conflict between different KMP versions built against the same kernel version.
Additional Information
install_rpm() { local rpmfile=$1 local nvra=$(rpm -qp $rpmfile) [ $? = 0 ] || return $? if rpm -q --all | grep -qF $nvra ; then echo $nvra already installed >&2 return 1 else rpm -i $rpmfile fi }
Sample use:
# install_rpm driver-kmp-default-1.0.0_k4.12.14_120-2.x86_64.rpm
driver-kmp-default-1.0.0_k4.12.14_94.41-2.x86_64 already installed
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019640
- Creation Date: 04-Jun-2020
- Modified Date:23-Jun-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com