CONTENTS
Lastmodified 2015-08-05 (水) 15:19:53
今朝は、こんなコメントが出てからのアップグレードとなりますた。
/!\ 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で練習
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 #
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
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 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.
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 4319:本日 2:昨日 0