I created a rpm based on the following spec
Name : MyProg
Summary : A program I wrote
Version : 4.3.6.6797
Release : 1
rpmbuild creates a file called MyProg-4.3.6.6797-1.x86_64 and I installed it on my machine using rpm -i
However after making some changes to the spec I went to bump up the release as
Name : MyProg
Summary : A program I wrote
Version : 4.3.6.6797
Release : 2
and getting a file called MyProg-4.3.6.6797-2.x86_64
I noticed that rpm -i still installed the latest version even though the was already a version of the rpm installed.
Shouldn't rpm detect that the program is already installed and ask me to use -U --upgrade ?
rpm -qa | grep MyProg shows
rpm -qa | grep MyProg
MyProg-4.3.6.6797-1.x86_64
MyProg-4.3.6.6797-2.x86_64
If I use rpm -U then the rpmdb gets updated properly, but I am confused as to why rpm -i is treating the package as a fresh install and not recognizing the already installed package and treating the new package as an upgrade
thanks