Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

pkg setup

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
Status
Not open for further replies.

PeterFig

Junior Member
Joined
Sep 17, 2016
Messages
20
I bought a FreeNAS Mini box through Amazon. It seems pkg is set up like this:

Code:
Repositories:
  local: {
    url             : "file:///usr/ports/packages",
    enabled         : yes,
    priority        : 0
  }


because of this:
Code:
[peter@freenas /usr/local/etc/pkg/repos]$ ls
FreeBSD.conf           local.conf             pcbsd-major.conf
[peter@freenas /usr/local/etc/pkg/repos]$ cat local.conf
local: {
    url: "file:///usr/ports/packages",
    enabled: yes
}
[peter@freenas /usr/local/etc/pkg/repos]$ cat FreeBSD.conf
FreeBSD: {
    enabled: no
}
[peter@freenas /usr/local/etc/pkg/repos]$ cat pcbsd-major.conf
pcbsd-major: {
    url: "http://pkg.cdn.pcbsd.org/10.0-RELEASE/amd64"
    signature_type: "fingerprints",
    enabled: false
}


Is there some reason (and does it matter) why this was configured this way?

Assuming I just need to add a suitable .conf file to this directory to update and install new packages, what should that .conf file look like?
 

danb35

Wizened Sage
Joined
Aug 16, 2011
Messages
11,582
You should not be using pkg on the base installation. If you want to install any additional software, that should be done in a jail.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,443
Yeah, what they said. Install additional software in a jail or use the Virtualbox template and install in a VM.
 

danb35

Wizened Sage
Joined
Aug 16, 2011
Messages
11,582
You can do just about anything in a jail that you can do on a FreeBSD 10 system.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,443
If you want to play around with Docker on 9.10 you'll have to install your favorite flavor of Linux in Virtualbox.
 
Status
Not open for further replies.
Top