Do you mean to use conflicts_with? This way it cannot be coinstalled with thrift.