Use conflicts instead of replace for rpm package to make sure to update  the previous version