I compiled the scroll application from source and created a package (scroll-1.12.4.pkg) using pkg create. I then installed it with:
Recently, a new version of scroll was released, so I built the new version and packaged it as scroll-1.12.5.pkg. I tried to install it using the same method:
However, instead of performing an upgrade, pkg treated it as a fresh install. As a result, my configuration files were overwritten with the package defaults.
I was expecting pkg to recognise that scroll-1.12.5.pkg is a newer version of the already installed package and perform an upgrade, similar to what happens when you run pkg upgrade from a repository. But apparently installing a local package always seems to do a fresh install.
Is there a way to install a local package file (.pkg) in "upgrade mode" so that it respects existing configuration files and only updates the binaries? Perhaps some flag or alternative command?
Any help would be greatly appreciated. Thanks in advance!
pkg install ./scroll-1.12.4.pkg and everything worked fine.Recently, a new version of scroll was released, so I built the new version and packaged it as scroll-1.12.5.pkg. I tried to install it using the same method:
pkg install ./scroll-1.12.5.pkgHowever, instead of performing an upgrade, pkg treated it as a fresh install. As a result, my configuration files were overwritten with the package defaults.
I was expecting pkg to recognise that scroll-1.12.5.pkg is a newer version of the already installed package and perform an upgrade, similar to what happens when you run pkg upgrade from a repository. But apparently installing a local package always seems to do a fresh install.
Is there a way to install a local package file (.pkg) in "upgrade mode" so that it respects existing configuration files and only updates the binaries? Perhaps some flag or alternative command?
Any help would be greatly appreciated. Thanks in advance!