If I want to install a new vesrion of a package, which conflicts with a previous one, the installation fails with something like:
[lben@lxplus0095 go]$ bin/lbpkr install LbConfig
lbpkr INFO installing RPMs [LbConfig]
lbpkr INFO installing LbConfig-0.0.2-1 and dependencies
lbpkr INFO found 1 RPMs to install:
lbpkr INFO [001/001] LbConfig-0.0.2-1
lbpkr INFO [001/001] downloaded http://cern.ch/lhcbproject/dist/rpm/incubator/LbConfig-0.0.2-1.noarch.rpm
lbpkr INFO installing [1] RPMs...
Preparing... ##################################################
file /tmp/lben/siteroot/etc/alternatives/x86_64/config/alternatives.json from install of LbConfig-0.0.2-1.noarch conflicts with file from package LbConfig-0.0.1-1.noarch
lbpkr ERROR rpm install command failed: exit status 1
Preparing... ##################################################
file /tmp/lben/siteroot/etc/alternatives/x86_64/config/alternatives.json from install of LbConfig-0.0.2-1.noarch conflicts with file from package LbConfig-0.0.1-1.noarch
error exit status 1
This not a case of updating, as the major version changes, but rpm -U needs to be called instead of -i.
Not sure how to best do that in the code.
Cheers
Ben
Hi,
If I want to install a new vesrion of a package, which conflicts with a previous one, the installation fails with something like:
[lben@lxplus0095 go]$ bin/lbpkr install LbConfig lbpkr INFO installing RPMs [LbConfig] lbpkr INFO installing LbConfig-0.0.2-1 and dependencies lbpkr INFO found 1 RPMs to install: lbpkr INFO [001/001] LbConfig-0.0.2-1 lbpkr INFO [001/001] downloaded http://cern.ch/lhcbproject/dist/rpm/incubator/LbConfig-0.0.2-1.noarch.rpm lbpkr INFO installing [1] RPMs... Preparing... ################################################## file /tmp/lben/siteroot/etc/alternatives/x86_64/config/alternatives.json from install of LbConfig-0.0.2-1.noarch conflicts with file from package LbConfig-0.0.1-1.noarch lbpkr ERROR rpm install command failed: exit status 1 Preparing... ################################################## file /tmp/lben/siteroot/etc/alternatives/x86_64/config/alternatives.json from install of LbConfig-0.0.2-1.noarch conflicts with file from package LbConfig-0.0.1-1.noarch
error exit status 1
This not a case of updating, as the major version changes, but rpm -U needs to be called instead of -i. Not sure how to best do that in the code. Cheers Ben