FreeBSD 10 pkg update and pkg upgrade

As ports lover I’m bit confuse when my friend told me about pkg. The page list the difference between pkg vs pkg_ command. I decide to try it on my experiment vps that almost abandoned. The machine already have a few package installed. A perfect companion for the experiment.

# pkg info
apache22-2.2.26                Version 2.2.x of Apache web server with prefork MPM.
apr-1.4.8.1.5.3                Apache Portability Library
autoconf-2.69                  Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
ca_root_nss-3.15.3.1           The root certificate bundle from the Mozilla Project
curl-7.33.0_1                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
db42-4.2.52_5                  The Berkeley DB package, revision 4.2
dialog4ports-0.1.5_2           Console Interface to configure ports
expat-2.1.0                    XML 1.0 parser written in C
freetype2-2.5.0.1              Free and portable TrueType font rendering engine
gdbm-1.10                      GNU database manager
gettext-0.18.3.1               GNU gettext package
gmake-3.82_1                   GNU version of ‘make’ utility
help2man-1.43.3_1              Automatically generating simple manual pages from program output
libtool-2.4.2_2                Generic shared library support script
libxml2-2.8.0_3                XML parser library for GNOME
m4-1.4.17,1                    GNU m4
p5-Locale-gettext-1.05_3       Message handling functions
pcre-8.33                      Perl Compatible Regular Expressions library
perl5-5.16.3_4                 Practical Extraction and Report Language
pkg-1.2.4_1                    New generation package manager
pkgconf-0.9.3                  Utility to help to configure compiler and linker flags

# pkg update
Updating repository catalogue
digests.txz                                                                                                                 100% 1821KB 121.4KB/s  80.7KB/s   00:15
packagesite.txz                                                                                                             100% 4628KB 112.9KB/s  78.2KB/s   00:41
Incremental update completed, 21447 packages processed:
0 packages updated, 0 removed and 21447 added.

# pkg upgrade
Updating repository catalogue
digests.txz                                                                                                                 100% 1821KB 130.1KB/s 120.7KB/s   00:14
packagesite.txz                                                                                                             100% 4628KB 125.1KB/s 128.2KB/s   00:37
Incremental update completed, 21447 packages processed:
0 packages updated, 0 removed and 0 added.
New version of pkg detected; it needs to be installed first.
Upgrades have been requested for the following 1 packages:

Upgrading pkg: 1.2.4_1 -> 1.3.8_2

The upgrade will require 1 MB more space

2 MB to be downloaded

Proceed with upgrading packages [y/N]: y

pkg-1.3.8_2.txz                                                                                                             100% 2266KB 113.3KB/s 215.5KB/s   00:20
Checking integrity… done
[1/1] Upgrading pkg from 1.2.4_1 to 1.3.8_2… 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 for upgrades (19 candidates): 100%
The following 19 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:
pkgconf: 0.9.3 -> 0.9.7
perl5: 5.16.3_4 -> 5.16.3_11
gettext: 0.18.3.1 -> 0.18.3.1_1
gmake: 3.82_1 -> 3.82_2
gdbm: 1.10 -> 1.11_2
apr: 1.4.8.1.5.3 -> 1.5.1.1.5.4
expat: 2.1.0 -> 2.1.0_1
apache22: 2.2.26 -> 2.2.29_1
pcre: 8.33 -> 8.35
m4: 1.4.17,1 -> 1.4.17_1,1
libxml2: 2.8.0_3 -> 2.9.1_1
libtool: 2.4.2_2 -> 2.4.2_3
freetype2: 2.5.0.1 -> 2.5.3_2
curl: 7.33.0_1 -> 7.38.0_1
ca_root_nss: 3.15.3.1 -> 3.17.1

Installed packages to be REINSTALLED:
help2man-1.43.3_1 (direct dependency changed)
autoconf-2.69 (direct dependency changed)

The process will require 47 MB more space.
35 MB to be downloaded.

Proceed with this action? [y/N]: y
Fetching pkgconf-0.9.7.txz: 100%   20 KB  20.4k/s    00:01
Fetching perl5-5.16.3_11.txz: 100%   12 MB 102.7k/s    02:05
Fetching gettext-0.18.3.1_1.txz: 100%    2 MB 130.7k/s    00:16
Fetching gmake-3.82_2.txz: 100%  321 KB 109.7k/s    00:03
Fetching indexinfo-0.2.txz: 100%    5 KB   4.8k/s    00:01
Fetching help2man-1.43.3_1.txz: 100%   90 KB  92.0k/s    00:01
Fetching gdbm-1.11_2.txz: 100%  136 KB  69.8k/s    00:02
Fetching apr-1.5.1.1.5.4.txz: 100%  392 KB 100.5k/s    00:04
Fetching expat-2.1.0_1.txz: 100%  109 KB 111.2k/s    00:01
Fetching apache22-2.2.29_1.txz: 100%    2 MB 126.2k/s    00:20
Fetching pcre-8.35.txz: 100%    1 MB 121.9k/s    00:09
Fetching db5-5.3.28_2.txz: 100%   12 MB  97.3k/s    02:12
Fetching autoconf-2.69.txz: 100%  528 KB 135.1k/s    00:04
Fetching m4-1.4.17_1,1.txz: 100%  180 KB  92.1k/s    00:02
Fetching libxml2-2.9.1_1.txz: 100%  722 KB 123.2k/s    00:06
Fetching libtool-2.4.2_3.txz: 100%  341 KB 174.6k/s    00:02
Fetching freetype2-2.5.3_2.txz: 100%  497 KB  84.9k/s    00:06
Fetching curl-7.38.0_1.txz: 100%    1 MB 123.4k/s    00:11
Fetching ca_root_nss-3.17.1.txz: 100%  315 KB 161.2k/s    00:02
Checking integrity… done (0 conflicting)
[1/19] Installing indexinfo-0.2: 100%
[2/19] Upgrading gettext from 0.18.3.1 to 0.18.3.1_1: 100%
[3/19] Upgrading perl5 from 5.16.3_4 to 5.16.3_11: 100%
[4/19] Upgrading gdbm from 1.10 to 1.11_2: 100%
[5/19] Upgrading expat from 2.1.0 to 2.1.0_1: 100%
[6/19] Installing db5-5.3.28_2: 100%
[7/19] Upgrading apr from 1.4.8.1.5.3 to 1.5.1.1.5.4: 100%
[8/19] Upgrading pcre from 8.33 to 8.35: 100%
[9/19] Upgrading m4 from 1.4.17,1 to 1.4.17_1,1: 100%
[10/19] Upgrading ca_root_nss from 3.15.3.1 to 3.17.1: 100%
[11/19] Upgrading pkgconf from 0.9.3 to 0.9.7: 100%
[12/19] Upgrading gmake from 3.82_1 to 3.82_2: 100%
[13/19] Reinstalling help2man-1.43.3_1: 100%
/usr/local/etc/apache22/httpd.conf
===> Creating users and/or groups.
Using existing group ‘www’.
Using existing user ‘www’.
[14/19] Upgrading apache22 from 2.2.26 to 2.2.29_1: 100%
/usr/local/share/examples/apache22/httpd.conf -> /usr/local/etc/apache22/httpd.conf
[15/19] Reinstalling autoconf-2.69: 100%
[16/19] Upgrading libxml2 from 2.8.0_3 to 2.9.1_1: 100%
[17/19] Upgrading libtool from 2.4.2_2 to 2.4.2_3: 100%
[18/19] Upgrading freetype2 from 2.5.0.1 to 2.5.3_2: 100%
[19/19] Upgrading curl from 7.33.0_1 to 7.38.0_1: 100%

Wow. Its cool bro 🙂