Solved pkg can't find 'firefox'

I'm trying to install Firefox on my laptop with FreeBSD 10.1 installed.

However, pkg(8) couldn't find firefox package. And I installed firefox on my desktop with 10.1 earlier today. How strange.
 
Did you run pkg update first?
Code:
% pkg search firefox
firefox-38.0.6,1
firefox-esr-31.7.0_1,1
firefox-esr-i18n-31.7.0
firefox-i18n-38.0.6
linux-firefox-38.0.6,1
xpi-firefox-showcase-0.9.5.6
 
How do I take on another mirror?

Sorry, I'm a new BSD user coming from Debian, not familiar with the way FreeBSD does things.
 
Well, be sure that you have FreeBSD.conf into /etc/pkg directory.

FYI, the contents of this FreeBSD.conf file:
Code:
# $FreeBSD: releng/10.1/etc/pkg/FreeBSD.conf 263938 2014-03-30 15:29:54Z bdrewery $
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#  mkdir -p /usr/local/etc/pkg/repos
#  echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
Finally, try forcing an update of the remote repository catalog:
# pkg update -f
 
Well, be sure that you have FreeBSD.conf into /etc/pkg directory.

FYI, the contents of this FreeBSD.conf file:
Code:
# $FreeBSD: releng/10.1/etc/pkg/FreeBSD.conf 263938 2014-03-30 15:29:54Z bdrewery $
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#  mkdir -p /usr/local/etc/pkg/repos
#  echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
That's exactly what I have.
Finally, try forcing an update of the remote repository catalog:
# pkg update -f

That did it. Now Firefox shows up with pkg search firefox.

Thanks for the help!
 
Back
Top