Installing Plex in a jail?

Status
Not open for further replies.

TAC

Contributor
Joined
Feb 16, 2014
Messages
152

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
type "pkg upgrade"
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
The problem is pkg 1.3.7 is in the repo so pkg upgrade fails. You have to build 1.3.8. We seem to be in limbo until they fix that. Here is the work around:

We need to get and update ports in our jail. These can take a while.

Code:
[root@openvpn /]# portsnap fetch
[root@openvpn /]# portsnap extract


First gotcha: We need to update pkg, force the delete, make clean pkg-1.3.8 . Be patient there is lots of work going on here.

Code:
[root@openvpn /]# pkg delete -f pkg
[root@openvpn /]# cd /usr/ports/ports-mgmt/pkg
[root@openvpn /]# make clean install


Good luck. Everything should compile after that.
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
Awesome. Thanks for the link. There's always a quicker way. ;)
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
The above commands as per that link only update to 1.3.7. See attached. If this is possible to do without ports I'd love to know.

Code:
root@freenas.local.'s password:
Last login: Tue Sep 23 16:53:22 2014 from 192.168.1.100
FreeBSD 9.2-RELEASE-p10 (FREENAS.amd64) #0 r262572+4fb5adc: Wed Aug  6 17:07:16 PDT 2014

    FreeNAS (c) 2009-2014, The FreeNAS Development Team
    All rights reserved.
    FreeNAS is released under the modified BSD license.

    For more information, documentation, help or support, go here:
     http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# jls
   JID  IP Address      Hostname                      Path
     6  -               test                          /mnt/tank/openvpn/test
[root@freenas] ~# jexec 6 tsch
jexec: execvp(): tsch: No such file or directory
[root@freenas] ~# jexec 6 tcsh
root@test:/ # pkg install ports-mgmt/pkg
Updating repository catalogue
digests.txz                         100% 1980KB   1.9MB/s   1.6MB/s   00:01   
packagesite.txz                     100% 5127KB   1.3MB/s   1.7MB/s   00:04   
Incremental update completed, 23325 packages processed:
22639 packages updated, 883 removed and 686 added.
New version of pkg detected; it needs to be installed first.
The following 1 packages will be installed:

    Upgrading pkg: 1.2.7_2 -> 1.3.7

The installation will require 1 MB more space

2 MB to be downloaded

Proceed with installing packages [y/N]: y
pkg-1.3.7.txz                       100% 1988KB 662.7KB/s 908.0KB/s   00:03   
Checking integrity... done
[1/1] Upgrading pkg from 1.2.7_2 to 1.3.7... done
If you are upgrading from the old package format, first run:

  # pkg2ng
Updating FreeBSD repository catalogue...
pkg: Repo "FreeBSD" upgrade schema 2006 to 2007: Add conflicts and provides
pkg: Repo "FreeBSD" upgrade schema 2007 to 2008: Add FTS index
pkg: Repo "FreeBSD" upgrade schema 2008 to 2009: Optimize indicies
pkg: Repo "FreeBSD" upgrade schema 2009 to 2010: Add legacy digest field
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
root@test:/ # pkg update -f
Updating FreeBSD repository catalogue...
[test] Fetching meta.txz: 100%   968 B   1.0k/s    00:01   
[test] Fetching digests.txz: 100%    2 MB   1.0M/s    00:02   
[test] Fetching packagesite.txz: 100%    5 MB   1.3M/s    00:04   
Processing new repository entries: 100%
FreeBSD repository update completed. 23325 packages processed:
  0 updated, 0 removed and 23325 added.
root@test:/ # pkg check -Ba
Checking all packages: 100%
root@test:/ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (28 candidates): 100%
The following 25 packages will be affected (of 0 checked):

New packages to be INSTALLED:
    indexinfo: 0.2
    db5: 5.3.28_2

Installed packages to be UPGRADED:
    wget: 1.15 -> 1.15_2
    libidn: 1.28_1 -> 1.28_2
    libiconv: 1.14_3 -> 1.14_4
    apr: 1.5.1.1.5.3 -> 1.5.1.1.5.3_4
    expat: 2.1.0 -> 2.1.0_1
    subversion: 1.8.9 -> 1.8.10_2
    serf: 1.3.6 -> 1.3.7_1
    gdbm: 1.11 -> 1.11_2
    sqlite3: 3.8.4.3 -> 3.8.6
    aria2: 1.18.5_1 -> 1.18.8
    gcc: 4.7.3_1 -> 4.8.3_1
    mpc: 1.0.2 -> 1.0.2_1
    binutils: 2.24 -> 2.24_1
    ca_root_nss: 3.16 -> 3.17
    db48: 4.8.30.0_1 -> 4.8.30.0_2
    python27: 2.7.6_4 -> 2.7.8_5
    pkgconf: 0.9.6 -> 0.9.6_1
    pcre: 8.34_1 -> 8.35
    lzo2: 2.06_3 -> 2.08

Installed packages to be REINSTALLED:
    gettext-0.18.3.1_1 (direct dependency changed)
    mpfr-3.1.2_2 (direct dependency changed)
    gmp-5.1.3_2 (direct dependency changed)
    libtool-2.4.2_3 (direct dependency changed)

The process will require 19 MB more space.
106 MB to be downloaded.

Proceed with this action? [y/N]: y
[test] Fetching wget-1.15_2.txz: 100%  530 kB 543.1k/s    00:01   
[test] Fetching libidn-1.28_2.txz: 100%  199 kB 203.8k/s    00:01   
[test] Fetching gettext-0.18.3.1_1.txz: 100%    2 MB   1.1M/s    00:02   
[test] Fetching libiconv-1.14_4.txz: 100%  590 kB 604.7k/s    00:01   
[test] Fetching apr-1.5.1.1.5.3_4.txz: 100%  390 kB 399.9k/s    00:01   
[test] Fetching expat-2.1.0_1.txz: 100%  101 kB 103.6k/s    00:01   
[test] Fetching subversion-1.8.10_2.txz: 100%    2 MB 845.1k/s    00:03   
[test] Fetching serf-1.3.7_1.txz: 100%   77 kB  79.3k/s    00:01   
[test] Fetching gdbm-1.11_2.txz: 100%  143 kB 146.8k/s    00:01   
[test] Fetching indexinfo-0.2.txz: 100%    6 kB   6.4k/s    00:01   
[test] Fetching db5-5.3.28_2.txz: 100%   12 MB   1.3M/s    00:10   
[test] Fetching sqlite3-3.8.6.txz: 100%  556 kB 570.1k/s    00:01   
[test] Fetching aria2-1.18.8.txz: 100%    2 MB   1.3M/s    00:02   
[test] Fetching gcc-4.8.3_1.txz: 100%   67 MB   1.3M/s    00:56   
[test] Fetching mpfr-3.1.2_2.txz: 100%  342 kB 350.7k/s    00:01   
[test] Fetching gmp-5.1.3_2.txz: 100%  431 kB 441.8k/s    00:01   
[test] Fetching mpc-1.0.2_1.txz: 100%   82 kB  83.9k/s    00:01   
[test] Fetching binutils-2.24_1.txz: 100%    4 MB 902.4k/s    00:05   
[test] Fetching ca_root_nss-3.17.txz: 100%  316 kB 323.8k/s    00:01   
[test] Fetching db48-4.8.30.0_2.txz: 100%    1 MB   1.0M/s    00:01   
[test] Fetching python27-2.7.8_5.txz: 100%    8 MB   1.1M/s    00:08   
[test] Fetching pkgconf-0.9.6_1.txz: 100%   23 kB  24.2k/s    00:01   
[test] Fetching pcre-8.35.txz: 100%    1 MB   1.1M/s    00:01   
[test] Fetching lzo2-2.08.txz: 100%   91 kB  93.5k/s    00:01   
[test] Fetching libtool-2.4.2_3.txz: 100%  342 kB 350.7k/s    00:01   
Checking integrity... done (0 conflicting)
[test] [1/25] Upgrading libiconv from 1.14_3 to 1.14_4: 100%
[test] [2/25] Installing indexinfo-0.2: 100%
[test] [3/25] Reinstalling gettext-0.18.3.1_1: 100%
[test] [4/25] Reinstalling gmp-5.1.3_2: 100%
[test] [5/25] Upgrading expat from 2.1.0 to 2.1.0_1: 100%
[test] [6/25] Upgrading gdbm from 1.11 to 1.11_2: 100%
[test] [7/25] Installing db5-5.3.28_2: 100%
[test] [8/25] Reinstalling mpfr-3.1.2_2: 100%
[test] [9/25] Upgrading db48 from 4.8.30.0_1 to 4.8.30.0_2: 100%
[test] [10/25] Upgrading apr from 1.5.1.1.5.3 to 1.5.1.1.5.3_4: 100%
[test] [11/25] Upgrading mpc from 1.0.2 to 1.0.2_1: 100%
[test] [12/25] Upgrading binutils from 2.24 to 2.24_1: 100%
[test] [13/25] Upgrading libidn from 1.28_1 to 1.28_2: 100%
[test] [14/25] Upgrading serf from 1.3.6 to 1.3.7_1: 100%
[test] [15/25] Upgrading sqlite3 from 3.8.4.3 to 3.8.6: 100%
[test] [16/25] Upgrading gcc from 4.7.3_1 to 4.8.3_1: 100%
[test] [17/25] Upgrading wget from 1.15 to 1.15_2: 100%
[test] [18/25] Upgrading subversion from 1.8.9 to 1.8.10_2: 100%
[test] [19/25] Upgrading aria2 from 1.18.5_1 to 1.18.8: 100%
[test] [20/25] Upgrading ca_root_nss from 3.16 to 3.17: 100%
[test] [21/25] Upgrading python27 from 2.7.6_4 to 2.7.8_5: 100%
[test] [22/25] Upgrading pkgconf from 0.9.6 to 0.9.6_1: 100%
[test] [23/25] Upgrading pcre from 8.34_1 to 8.35: 100%
[test] [24/25] Upgrading lzo2 from 2.06_3 to 2.08: 100%
[test] [25/25] Reinstalling libtool-2.4.2_3: 100%
root@test:/ # pkg info pkg
pkg-1.3.7
Name           : pkg
Version        : 1.3.7
Installed on   : Wed Sep 24 06:38:58 PDT 2014
Origin         : ports-mgmt/pkg
Architecture   : freebsd:9:x86:64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : portmgr@FreeBSD.org
WWW            : http://wiki.freebsd.org/pkgng
Comment        : Package manager
Shared Libs provided:
    libpkg.so.3
Flat size      : 8.14MiB
Description    :
Package management tool

WWW: http://wiki.freebsd.org/pkgng
root@test:/ #
 
D

dlavigne

Guest
Looks good. Don't forget to run the other 3 commands listed at that link.
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
Ah. Was hoping that got us a binary 1.3.8. It doesn't.

#make -C /usr/ports/ports-mgmt/pkg build deinstall install clean

is the clever version, but still requires a build.

Thanks.
 
Status
Not open for further replies.
Top