Chuck Zmudzinski <frchu...@gmail.com> wrote: > On 6/5/2025 4:30 AM, Ramiro Aceves wrote: > > > > El 4/6/25 a las 21:23, Chuck Zmudzinski escribi?: > >> > >> I have two packages I built and installed from the pkgsrc source tree, > >> xenkernel418-20250521 and xentools418-20250521. I configured pkgin to read > >> my repository of locally built packages first in the list of repositories > >> /usr/pkg/etc/pkg/repositories.conf. > >> > >> In the remote repository, the version of the packages is about two months > >> older: xenkernel418-20241221 xentools418-20241221 > >> > >> With the newer versions from my local repository already installed, I run > >> (after running pkgin update): > >> > >> ave$ sudo pkgin upgrade > >> Password: > >> calculating dependencies...done. > >> > >> 2 packages to upgrade: > >> xenkernel418-20241221 xentools418-20241221 > >> > >> 0 to remove, 0 to refresh, 2 to upgrade, 0 to install > >> 0B to download, 2387K of disk space will be freed up > >> > >> proceed ? [Y/n] > >> > >> So I say n because I don't want to downgrade the packages. > >> > >> This is very annoying if there are other packages I want to upgrade. I > >> spent a few hours figuring out how to tell pkgin not to upgrade the > >> xenkernel and xentools packages because it always wants to downgrade them, > >> but so far no joy. > >> > >> Please help. > >> > >> Thanks. > > > > Hi, perhaps this thread helps. I asked a similar question. > > > > https://mail-index.netbsd.org/pkgsrc-users/2025/05/18/msg041575.html > > > > Just if it helps. > > Yes that thread might help. So far I discovered the only way to upgrade > the packages back to the version in my local repository that pkgin > downgraded to the version in the official repositories is by using > pkg_add instead of pkgin. > > I see the aforementioned thread mentions a PKGPATH value, I have > not yet investigated trying to tweak that. So maybe I can use pkgin > instead of pkg_add for my local packages by adjusting PKGPATH. I > will post here again with the fix if I succeed in finding a fix.
You might try setting the "keep" packages to specific versions in /usr/pkg/etc/pkgin/preferred.conf [1]. It seems to work for simple packages with few dependencies but might not for your xen kernel stuff, or you may have to additionally add in the dependent packages, not ideal. -B -- [1] https://github.com/NetBSDfr/pkgin#files