SOLVED enable pkg on 11.3

spacecabbie

Explorer
Joined
Aug 20, 2017
Messages
99
Hi and Hello,

Could someone point me to a guide how to enable pkg install on freenas 11.3
The editing of local.conf and freebsd.conf are not working anymore so not sure how its been disabled this time. error:

Code:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
Error updating repositories!


I know its not supported and not advised etc. Still want to and need to do it.

Thanks.

SOLVED:
In directory: /usr/local/etc/pkg/repos/
you have 2 files local.conf and FreeBSD.conf you need to edit both. I forgot local one
 
Last edited:

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,175
FreeNAS is an appliance. You must install additional software in a jail.
Don't expect anyone to tell you how to hack it, then answer umpteen questions about why it does not work anymore.
I suggest you use FreeBSD.
 

spacecabbie

Explorer
Joined
Aug 20, 2017
Messages
99
FreeNAS is an appliance. You must install additional software in a jail.
Don't expect anyone to tell you how to hack it, then answer umpteen questions about why it does not work anymore.
I suggest you use FreeBSD.
Read my post please there is realy no but no reason to post what you said apart from making you feel good about yourself.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,976

vesper

Cadet
Joined
May 22, 2023
Messages
3
i see that this was solved, can you explain how.. still cant install anything inside jail.

Trying to follow. https://www.samueldowling.com/2020/01/18/nginx-reverse-proxy-freenas-ssl-tls/
and about step 5 where it say pkg update
.
You should replace content in /usr/local/etc/pkg/repos/FreeBSD.conf to
Code:
# $FreeBSD$
#
# 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}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}


and remove /usr/local/etc/pkg/repos/local.conf or set enabled: no. That it.
But really better use Jails, because most changes to the host TrueNAS system wil be wiped during updates or reboot. As of me, that I was looking how enable pkg for LinuxJail (https://iocage.readthedocs.io/en/latest/debian.html?highlight=debian) because embedded iocage doesn't support fdescfs param for jails and it develop abandoned.
 

vesper

Cadet
Joined
May 22, 2023
Messages
3
Sorry for necroposting. I think this thread should have an answer for guys whose looking for it, like me was.
 
Top