pkg setup

Status
Not open for further replies.

PeterFig

Dabbler
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

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
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,977
Yeah, what they said. Install additional software in a jail or use the Virtualbox template and install in a VM.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
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