Solved [Solved] pkg version -t does not work

I've checked that pkg version -t does not work. When I try the simple pkg version -t 1.0 1.0 (or any similar) it doesn't print anything and its return value is 69 ( echo $?). Maybe I did anything bad but don't know, what. Because of this portmaster works not, pkg version -Il '<' too.

I don't know if it's relevant or not but I'm using FreeBSD on laptop and I've buyed an SSD drive and I've copied FreeBSD system to SSD (replace my old ODD to SDD). When I mount the "old" FreeBSD (from HDD) and chrooting, pkg version -t 1.0 1.0 works well, print an = char and the return value is 0.
pkg version is 1.2.7, the old version is 1.2.6.

What's wrong?
 
Re: pkg version -t does not work

I have pkg-1.2.7 running. The output on my system matches your expectation which you achieve with your old setup. Therefore I guess that the issue should not be related to pkg-1.2.7.
 
Re: pkg version -t does not work

Okay, so it seems it's my fault. But where? I think pkg version -t 1.0 1.1 is a simple, almost system-independent (database, make.conf, ...) function.
 
Re: pkg version -t does not work

Another try: I've mounted the old system from HDD and without chroot ran /mnt/usr/local/sbin/pkg version -t 1.0 1.0 - that doesn't work. In a chroot environment it works well.

After I checked all libraries ( ldd /usr/local/sbin/pkg) between two systems, diff didn't find any difference.
 
Re: pkg version -t does not work

Arghhh.... this is my fault. I've created an alias in pkg.conf named version - I wanted rversion. I've renamed to rversion and works well.
 
Back
Top