CONTENTS

Lastmodified 2015-08-05 (水) 15:19:53


pkgng への移行 2014/04/12

参考URL http://blog.goo.ne.jp/koyusoma5102/e/1b5379e2f290398de4698a5f1acb203a

FreeBSD 9.1-RELEASE-p11 (GENERIC)

blackhole# /usr/sbin/pkg

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.2.7_1... done
If you are upgrading from the old package format, first run:
 # pkg2ng

blackhole# pkg2ng

pkg2ng: Command not found.
blackhole# rehash
blackhole# pkg2ng
pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file
Converting packages from /var/db/pkg
Converting p5-Module-Metadata-1.000019...
Installing p5-Module-Metadata-1.000019... done
Converting munin-node-2.0.17...
        :            :
        :            :
Converting p5-TimeDate-2.30_1,1...
Installing p5-TimeDate-2.30_1,1... done
Analysing shared libraries, this will take a while... pkg: PACKAGESITE in pkg.conf is deprecated. Please create
a repository configuration file
done
blackhole#

blackhole# echo 'WITH_PKGNG=yes' >> /etc/make.conf

blackhole# pkgdb -fu

--->  Updating the pkgdb
[Reading data from pkg(8) ... pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file
- 83 packages found - done]
blackhole#

/usr/local/etc/pkg.conf を pkg.conf.sampleと置き換える。

blackhole# cd /usr/local/etc
blackhole# mv pkg.conf pkg.conf_prepkgng
blackhole# cp pkg.conf.sample pkg.conf

これの対処方がわからない・・・(^^ゞ


blackhole# pkg check -Bdsr

devel/autoconf has a missing dependency: lang/perl5.12
devel/automake has a missing dependency: lang/perl5.12
sysutils/fastest_cvsup has a missing dependency: lang/perl5.12
misc/help2man has a missing dependency: lang/perl5.12
devel/p5-CPAN-Meta has a missing dependency: converters/p5-JSON-PP
devel/p5-Locale-gettext has a missing dependency: lang/perl5.12
devel/p5-Module-Build has a missing dependency: converters/p5-JSON-PP
devel/p5-Parse-CPAN-Meta has a missing dependency: converters/p5-JSON-PP

>>> Missing package dependencies were detected.
>>> Found 2 issue(s) in the package database.

pkg: No activated remote repositories configured

pkgng 2014-02-16 (日) 05:59:45

今朝は、こんなコメントが出てからのアップグレードとなりますた。

/!\ 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

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

# 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

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

Counter: 4319, today: 2, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS