FreeNAS 9.2: install FreeBSD packages
Solution 1
You need to install/update your ports catalogue first. Run these commands first:
portsnap fetch update
portsnap extract
you can then run your:
pkg install mysql55-server
(note: it is mysql55-server and not mysql-server)
Solution 2
Install a jail and copy the necessary files from there:
cp /mnt/dataset>/jails/<jail-root>/etc/portsnap.conf /etc
cp /mnt/<dataset>/jails/jail-root>/usr/sbin/portsnap /usr/sbin
/usr/sbin/portsnap fetch
Related videos on Youtube
kirly
Updated on September 18, 2022Comments
-
kirly almost 2 years
I have installed FreeNAS 9.2amd64 (based on the same FreeBSD version) on a VirtualBox VM. I created users and pool/volume for my data.
In anticipation of installing apache/mysql-server/php5/php-myadmin FreeBSD packages, I read the following docs from the freenas.org site:
So I created a pluginjail to install packages within. I understood FreeNAS packages are managed by pkgng, which works almost the same than pkg_add/pkg_info/pkg_delete etc...
Then I launched the following command (don't mind the package version) from that jail shell:
$ pkg install mysql-server
And I get the following output:
Updating repository catalogue pkg: PACKAGESITE/digests.txz: No address record pkg: No digest falling back on legacy catalog format pkg: PACKAGESITE/repo.txz: No address record
If I go to
PACKAGESITE
, I can find bothdigests.txz
andrepo.txz
files.Does anyone have an idea?
-
kirly over 10 yearsPACKAGESITE=pkg.cdn.pcbsd.org/freenas/9.1-RELEASE/amd64 for pkgng doc: wiki.freebsd.org/pkgng
-
schaiba over 10 yearsThe link is for 9.1 while the title says 9.2 . Which one is it?
-
kirly over 10 yearsit's 9.2 version, but there is no plugin folder for that version. That's why I put 9.1 plugins link. I don't think it is the problem. I've tried a lot of repo, I always have the same issue.
-
Apache almost 9 yearsI think your only option to install things is to just unpack static compiled stuff and run them by hand. As far as I know installing custom things is just not supported on FreeNAS.
-
-
LassePoulsen about 9 yearsportsnap: Command not found.
-
Veridian almost 9 yearsSame problem as @LassePoulsen, how do I get portsnap?
-
Admin over 6 yearsthis was actually very useful as
portsnap
command looks through domain names for mirrors. thanks @kimo.