How do I upgrade a package I've just rebuilt from source?
Hi. I've just rebuilt the .rpm of Vim from source on F29. I followed the usual scheme:
rpmdev-setuptree
sudo dnf builddep vim
dnf download --source vim
rpm -ivh vim-8.1.897-1.fc29.src.rpm
rpmbuild -bb ~/rpmbuild/SPECS/vim.spec
sudo rpm -Uvh ~/rpmbuild/RPMS/x86_64/vim-8.1.897-1.fc29.rpm --force
However, when I run dnf upgrade
it asks me to replace my newly compiled package with the one from the repo (which is the same version of course). How can I keep my package installed without dnf trying to replace it?