- 追加された行はこの色です。
- 削除された行はこの色です。
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*pkgng [#f666b1fa]
今朝は、こんなコメントが出てからのアップグレードとなりますた。
/!\ WARNING /!\
pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng
http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/
If you do not want to see this message again set NO_WARNING_PKG_INSTALL_EOL=yes in your make.conf
およよ・・・
Blackcube2で練習
【参考URL】http://april.fool.jp/blogs/2013/03/freebsd-pkg%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E6%8D%A8%E3%81%A6%E3%82%8B%E3%81%AE%E3%81%AF%E3%81%84%E3%81%A4%EF%BC%9F%E4%BB%8A%E3%81%A7%E3%81%97%E3%82%87%EF%BC%81/
http://www.freebsd.org/doc/ja/books/handbook/pkgng-intro.html
http://silversack.my.coocan.jp/bsd/pkgsforpkg.htm
# pkg help install
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg please wait
Installing pkg-1.0.2... done
If you are upgrading from the old package format, first run:
# pkg2ng
root@blackcube2:/root # pkg2ng
:
Converting tiff-4.0.3...
Installing tiff-4.0.3... done
pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file
root@blackcube2:/root #
http://www.nabe.bne.jp/wiki/pkg%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AB%E3%82%88%E3%82%8B%E3%83%90%E3%82%A4%E3%83%8A%E3%83%AA%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB
root@blackcube2:/usr/local/etc # cp pkg.conf.sample pkg.conf
次のページによると、pkg.confの削除と、パッケージリポジトリの設定が必要であるようです。 https://wiki.freebsd.org/pkgng
# cd /usr/loca/etc
# mv pkg.conf pkg.conf.old
# mkdir pkg
# mkdir repos
以下の内容で、 /usr/loca/etc/pkg/repos/FreeBSD.conf を作成します。
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: yes
}
で、もういっぺん
# pkg2ng
Installing fontconfig-2.10.95,1... done
Converting tiff-4.0.3...
Installing tiff-4.0.3... done
root@blackcube2:/usr/local/etc #
make.confに追加
FreeBSD 10.0より前のシステムであれば、handbookの通りに。
WITH_PKGNG= yes
**pkg update -f [#x4f9d7c7]
root@blackcube2:/usr/local/etc # pkg update -f
Updating repository catalogue
digests.txz 100% 1115KB 371.6KB/s 674.9KB/s 00:03
packagesite.txz 100% 5074KB 634.3KB/s 894.5KB/s 00:08
Incremental update completed, 23316 packages processed:
0 packages updated, 0 removed and 23316 added.
root@blackcube2:/usr/local/etc #
# portupgrade libyaml-0.1.4_2
[Reading data from pkg(8) ... - 269 packages found - done]
# portupgrade -f libyaml-0.1.4_2
[Reading data from pkg(8) ... - 269 packages found - done]
# portaudit -Fda
New database installed.
Database created: Sun Feb 16 05:25:00 JST 2014
Affected package: libyaml-0.1.4_2
Type of problem: libyaml heap overflow resulting in possible code execution.
Reference: http://portaudit.FreeBSD.org/111f1f84-1d14-4ff2-a9ea-cf07119c0d3b.html
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected package(s) immediately.
portupgrade 出来てない?
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q12104318732
ports-mgmt/portupgradeは、pkgngに対応してなくて、
ports-mgmt/portupgrade-develは、対応しているみたいです。
http://gihyo.jp/admin/clip/01/fdt/201209/05
1058 5:37 locate portupgrade
1059 5:38 cd /usr/ports/ports-mgmt/portupgrade
1060 5:38 make deinstall
1061 5:38 portinstall portupgrade-devel
1062 5:38 cd /usr/ports/ports-mgmt/portupgrade-devel
1063 5:38 make install
うーん、状況変わらず。
**portaudit -Fda [#u4e64311]
# portaudit -Fda
auditfile.tbz 100% of 92 kB 44 kBps
New database installed.
Database created: Sun Feb 16 05:25:00 JST 2014
Affected package: libyaml-0.1.4_2
Type of problem: libyaml heap overflow resulting in possible code execution.
Reference: http://portaudit.FreeBSD.org/111f1f84-1d14-4ff2-a9ea-cf07119c0d3b.html
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected package(s) immediately.
**portupgrade -rf perl [#q1dd64ee]
Installing php5-xsl-5.4.25... done
===> Cleaning for php5-xsl-5.4.25
---> Cleaning out obsolete shared libraries
** Listing the failed packages (-:ignored / *:skipped / !:failed)
- www/suphp (port deleted)
! security/amavisd-new (amavisd-new-2.8.0_2,1) (install error)
* databases/phpmyadmin (phpMyAdmin-suphp-4.0.8)
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);