Solved [Solved] pkg search nothing after install FreeBSD-10

I'm newbie to here and FreeBSD 10.0-RELEASE(amd64).
Since last night, I tried to setting configuration and searching binary package, but it has always no results.
In the end, I could install the binary package but i found a strange something.

There is a repository on /etc/pkg/FreeBSD.conf.
Code:
root@NEXT:~ # pkg -vv
.......
Repositories:
   FreeBSD: {
        url         :"pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest"
        .......   .......
   }
root@NEXT:~ #

But no results.
Code:
root@NEXT:~ # pkg search vim
root@NEXT:~ #

After add new and rename repository like below,
Code:
root@NEXT:~ # mkdir -p /usr/local/etc/pkg/repos/
root@NEXT:~ # cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/
root@NEXT:~ # sed -i.bak "/FreeBSD:/xFreeBSD:/" /usr/local/etc/pkg/repos/FreeBSD.conf
root@NEXT:~ # pkg -vv
.......
Repositories:
   FreeBSD: {
        url         :"pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest"
        .......   .......
   }
   xFreeBSD: {
        url         :"pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest"
        .......   .......
   }
root@NEXT:~ #

then pkg search again.
Code:
root@NEXT:~ # pkg search vim
.... ....
vim-7.4.389
vim-lite-7.4.389
vimpager-1.8.9
.... ....
root@NEXT:~ #
search results are exists!

Why search results are different on same repository url? Am I missing something? Is it some configuration manual or any further information about pkg repositories?
Please let me know. Thanks.
 
Re: pkg search nothing after install FreeBSD-10

Try forcing an update of the remote repository catalog: pkg update -f.
 
Re: pkg search nothing after install FreeBSD-10

Thank you for your help.

I tested and confirmed it without pkg update -f on FreeBSD 10 which was installed in Virtualbox as DVD version and in my laptop. It is resolved. I guess the problem is the memstick (USB) version on my laptop.

Anyway, I will test it later. Thanks.
 
Re: [Solved]pkg search nothing after install FreeBSD-10

Code:
> Installed packages to be UPGRADED:
>        pkg: 1.3.3 -> 1.3.6
Problems began after the above (search was empty)
Code:
> $ /var/db # pkg update -f
> Updating repository catalogue
> Fetching meta.txz: 100% of 940 B
> Fetching digests.txz: 100% of 2 MB
> Fetching packagesite.txz: 100% of 5 MB
> 
> Adding new entries: 100%
> Incremental update completed, 23314 packages processed:
> 0 packages updated, 0 removed and 23314 added.
Problems fixed after the above.

A pkg clean all didn't do anything at all. Only the force update fixed it.

Thank you!
 
Re: [Solved]pkg search nothing after install FreeBSD-10

0perator00 said:
A pkg clean all didn't do anything at all.
It's pkg clean -a or pkg clean --all. The only thing it does is remove cached packages that have been downloaded previously (i.e. files that are in /var/cache/pkg/). It does nothing with the catalogs.
 
Back
Top