pkg2ng
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*The package management tool is not yet installed on your...
root@hotshot:/root # pkg audit
The package management tool is not yet installed on your...
The mechanism for doing this is not secure on FreeBSD 9....
pkg(8), use ports from a portsnap checkout:
# portsnap fetch extract
# make -C /usr/ports/ports-mgmt/pkg install clean
Do you still want to fetch and install it now? [y/N]: y
Bootstrapping pkg please wait
Installing pkg-1.5.5...
Extracting pkg-1.5.5: 100%
Message for pkg-1.5.5:
If you are upgrading from the old package format, first ...
# pkg2ng
pkg: vulnxml file /var/db/pkg/vuln.xml does not exist. T...
root@hotshot:/root # pkg audit -F
Fetching vuln.xml.bz2: 100% 515 iB 264.0kB/s 00:02
0 problem(s) in the installed packages found.
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root # pkg2ng
Converting packages from /var/db/pkg
Converting perl-5.12.4_5...
Installing perl-5.12.4_5...
:
:
:
Installing ja-nkf-2.1.2,1...
Analysing shared libraries, this will take a while...
Checking all packages: 100%
root@hotshot:/root #
*no pkg(8) available; Manually upgrade/reinstall ports-mg...
http://freebsd.fkimura.com/pkg-a0.html
root@ns:/var/named/etc # portupgrade ports-mgmt/pkg
root@ns:/var/named/etc # cd /usr/ports/ports-mgmt/pkg
root@ns:/usr/ports/ports-mgmt/pkg # make install clean
You are about to convert your system to pkg while you ha...
installed with the old pkg_install tools.
To switch to pkg:
1) Install ports-mgmt/pkg
cd ports-mgmt/pkg && make UPGRADEPKG=1 install cl...
2) Convert your package database by running pkg2ng
*** [pre-everything] Error code 1
Stop in /usr/ports/ports-mgmt/pkg.
root@ns:/usr/ports/ports-mgmt/pkg #
root@ns:/usr/ports/ports-mgmt/pkg # make UPGRADEPKG=1 in...
:
:
:
/bin/mkdir -p '/usr/ports/ports-mgmt/pkg/work/stage/usr...
install -m 0644 libpkg/pkg.pc '/usr/ports/ports-mgmt/p...
====> Compressing man pages (compress-man)
===> Installing for pkg-1.5.5
===> Checking if pkg already installed
===> Registering installation for pkg-1.5.5
Installing pkg-1.5.5...
If you are upgrading from the old package format, first ...
# pkg2ng
===> SECURITY REPORT:
This port has installed the following files which ...
servers and may therefore pose a remote security r...
/usr/local/lib/libpkg.so.3.0.0
If there are vulnerabilities in these programs the...
risk to the system. FreeBSD makes no guarantee abo...
ports included in the Ports Collection. Please typ...
to deinstall the port if this is a concern.
For more information, and contact details about th...
status of this software, see the following webpage:
http://wiki.freebsd.org/pkgng
===> Cleaning for pkg-1.5.5
root@ns:/usr/ports/ports-mgmt/pkg #
root@ns:/usr/ports/ports-mgmt/pkg # pkg2ng
Converting packages from /var/db/pkg
Converting screen-4.0.3_14...
Installing screen-4.0.3_14...
Converting perl-5.14.2_3...
Installing perl-5.14.2_3...
Converting m4-1.4.16_1,1...
Installing m4-1.4.16_1,1...
Converting libtool-2.4.2...
Installing libtool-2.4.2...
Converting libiconv-1.14...
Installing libiconv-1.14...
Converting gettext-0.18.1.1...
:
:
:
Converting apache22-2.2.25...
pkg: duplicate directory listing: /usr/local/share/doc/a...
Installing apache22-2.2.25...
Analysing shared libraries, this will take a while...
Checking all packages: 100%
root@ns:/usr/ports/ports-mgmt/pkg #
root@ns:/usr/ports/ports-mgmt/pkg # pkg audit -F
Fetching vuln.xml.bz2: 100% 515 iB 264.0kB/s 00:02
libxml2-2.8.0_1 is vulnerable:
libxml2 -- entity substitution DoS
CVE: CVE-2014-0191
WWW: https://vuxml.FreeBSD.org/freebsd/efdd0edc-da3d-11e...
libxml2-2.8.0_1 is vulnerable:
libxml2 -- lack of end-of-document check DoS
CVE: CVE-2013-2877
WWW: https://vuxml.FreeBSD.org/freebsd/e7bb3885-da40-11e...
:
:
:
ruby-1.8.7.371,1 is vulnerable:
Ruby -- OpenSSL Hostname Verification Vulnerability
CVE: CVE-2015-1855
WWW: https://vuxml.FreeBSD.org/freebsd/d4379f59-3e9b-49e...
8 problem(s) in the installed packages found.
root@ns:/usr/ports/ports-mgmt/pkg # portupgrade bash-4.2...
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ...
- 139 packages found (-0 +139) ............................
.....................................100...................
USING PKGNG
[Updating the portsdb <format:bdb_btree> in /usr/ports ....
....3000.........4000.........5000.........6000............
14000.........15000.........16000.........17000............
...21000.........22000.........23000.........24000.........
---> Upgrading 'bash-4.2.42' to 'bash-4.3.39_3' (shells...
---> Building '/usr/ports/shells/bash'
* pkgngへの移行 P5K 2014/04/26 [#udd27d2f]
【参考URL】http://www.uconst.org/blog/archives/305
FreeBSD 9.1-RELEASE-p11
981 3:26 /usr/sbin/pkg
982 3:27 pkg2ng
983 3:29 echo 'WITH_PKGNG=yes' >> /etc/make.conf
984 3:30 pkgdb -fu
985 3:30 cd /usr/local/etc
986 3:31 mv pkg.conf pkg.conf_prepkgng
987 3:32 cp pkg.conf.sample pkg.conf
988 3:32 pkg check -Bdsr
990 3:33 pkg upgrade
と、ここで、
pkg No valid repository found.
を頂く。
991 3:34 mkdir -p /usr/local/etc/pkg/repos
993 3:34 touch /usr/local/etc/pkg/repos/FreeBSD.conf
/usr/local/etc/pkg/repos/FreeBSD.conf の内容は以下の通り...
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: true
}
994 3:36 pkg upgrade
ここで、Perlの環境のコンフリクトがあるとのことで、以下を...
995 3:42 pkg set -o lang/perl5.14:lang/perl5.16
996 3:42 pkg upgrade
997 3:45 pkg upgrade
Updating repository catalogue
Nothing to do
を頂く。
999 3:46 pkg audit -F
Vulnxml file up-to-date.
0 problem(s) in the installed packages found.
OK!
1000 3:47 reboot
1001 3:49 top
1002 3:49 pkg audit -F
1003 3:50 history
ここで、試しに、
# portaudit -Fda
New pkg tools detected: found 283 installed packages.
The portaudit tool is now obsolete, please remove portau...
command 'pkg audit' instead. See man pkg-audit(8) for m...
Running /usr/local/sbin/pkg-static audit -F:
Vulnxml file up-to-date.
0 problem(s) in the installed packages found.
とのこと。(^^ゞ
----
root@k222:/etc/defaults # pkg upgrade
Updating repository catalogue
Upgrades have been requested for the following 198 packa...
Installing perl5: 5.16.3_9
Installing db48: 4.8.30.0
Upgrading autoconf-wrapper: 20130530 -> 20131203
: :
Reinstalling bdftopcf-1.0.4 (direct dependency ch...
Reinstalling t1lib-5.1.2_2,1 (direct dependency c...
Upgrading php5-gd: 5.4.25 -> 5.4.27
The upgrade will require 42 MB more space
0 B to be downloaded
Proceed with upgrading packages [y/N]: y
Checking integrity...
Conflict found on path /usr/local/bin/a2p between perl5....
Conflict found on path /usr/local/bin/c2ph between perl5...
root@k222:/etc/defaults # pkg set -o lang/perl5.14:lang/...
Change origin from lang/perl5.14 to lang/perl5.16 for pe...
pkg: WARNING: locally installed freetds-msdblib-0.64_9,1...
- freetds-0.64_9,1
root@k222:/ # pkg set -o databases/freetds-msdblib:datab...
Change origin from databases/freetds-msdblib to database...
などとするも、やはり同じコンフリクト・・・がでる。で、
pkg delete freetds-0.64_9,1
pkg: Error while trying to delete packages, dependencies...
databases/freetds: databases/php5-mssql, databases/php5-...
とあったので、
portupgrade -r databases/freetds
してから、
pkg upgrade
したら、OKだった(?_?)
http://www.freebsd.org/doc/ja/books/handbook/pkgng-intro....
----
430 18:10 portupgrade freetype2-2.5.2
431 18:11 pkg audit
432 18:11 pkg audit
433 18:11 portupgrade libyaml-0.1.4_3
434 18:12 pkg audit
435 18:12 portupgrade -r python27-2.7.6_2
436 18:15 top
437 18:15 reboot
438 4:41 screen -r
439 6:36 top
440 6:36 portaudit -Fda
441 6:37 pkg check
442 6:37 pkg check -F
443 6:37 pkg check -Bdsr
444 6:39 pkgdb -fu
445 6:41 pkg upgrade
446 6:51 pkg upgrade
447 6:53 pkg update
448 6:53 pkg upgrade
449 6:56 pkg autoremove
450 6:56 pkg upgrade
451 6:57 pkg autoremove
452 6:57 pkg upgrade
453 6:58 pkg autoremove
454 6:58 pkg update
455 6:58 pkg upgrade
456 6:58 pkg update
457 6:58 pkg autoremove
458 7:13 history
*pkg No valid repository found. 2014/04/16 [#m4632c0d]
【参考URL】 http://www.uconst.org/blog/archives/305
***# mkdir -p /usr/local/etc/pkg/repos [#i54064bb]
ディレクトリ /usr/local/etc/pkg/repos を作成
***vi /usr/local/etc/pkg/repos/FreeBSD.conf [#edda376b]
設定ファイル /usr/local/etc/pkg/repos/FreeBSD.conf を作成
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: true
}
----
http://april.fool.jp/blogs/2013/03/freebsd-%E6%97%A5%E5%B...
----
*pkgng への移行 2014/04/12 [#wff15a49]
参考URL http://blog.goo.ne.jp/koyusoma5102/e/1b5379e2f29...
FreeBSD 9.1-RELEASE-p11 (GENERIC)
*** blackhole# /usr/sbin/pkg [#o6a55f47]
The package management tool is not yet installed on your...
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 ...
# pkg2ng
*** blackhole# pkg2ng [#q05a5a00]
pkg2ng: Command not found.
blackhole# rehash
blackhole# pkg2ng
pkg: PACKAGESITE in pkg.conf is deprecated. Please creat...
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... pk...
a repository configuration file
done
blackhole#
*** blackhole# echo 'WITH_PKGNG=yes' >> /etc/make.conf [#...
*** blackhole# pkgdb -fu [#i044f440]
---> Updating the pkgdb
[Reading data from pkg(8) ... pkg: PACKAGESITE in pkg.co...
- 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 [#u8a73d62]
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/pe...
misc/help2man has a missing dependency: lang/perl5.12
devel/p5-CPAN-Meta has a missing dependency: converters/...
devel/p5-Locale-gettext has a missing dependency: lang/p...
devel/p5-Module-Build has a missing dependency: converte...
devel/p5-Parse-CPAN-Meta has a missing dependency: conve...
>>> 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 [#q3dcce30]
今朝は、こんなコメントが出てからのアップグレードとなりま...
/!\ WARNING /!\
pkg_install EOL is scheduled for 2014-09-01. Please cons...
http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-b...
If you do not want to see this message again set NO_WARN...
およよ・・・
Blackcube2で練習
【参考URL】http://april.fool.jp/blogs/2013/03/freebsd-...
http://www.freebsd.org/doc/ja/books/handbook/pkgng-intro....
http://silversack.my.coocan.jp/bsd/pkgsforpkg.htm
# pkg help install
The package management tool is not yet installed on your...
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 ...
# pkg2ng
root@blackcube2:/root # pkg2ng
:
Converting tiff-4.0.3...
Installing tiff-4.0.3... done
pkg: PACKAGESITE in pkg.conf is deprecated. Please creat...
root@blackcube2:/root #
http://www.nabe.bne.jp/wiki/pkg%E3%82%B3%E3%83%9E%E3%83%B...
root@blackcube2:/usr/local/etc # cp pkg.conf.sample pkg....
次のページによると、pkg.confの削除と、パッケージリポジト...
# 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 ...
packagesite.txz ...
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 poss...
Reference: http://portaudit.FreeBSD.org/111f1f84-1d14-4f...
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected pack...
portupgrade 出来てない?
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q...
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 ...
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 poss...
Reference: http://portaudit.FreeBSD.org/111f1f84-1d14-4f...
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected pack...
**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 / ...
- www/suphp (port deleted)
! security/amavisd-new (amavisd-new-2.8.0_2,1) ...
* databases/phpmyadmin (phpMyAdmin-suphp-4.0.8)
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*The package management tool is not yet installed on your...
root@hotshot:/root # pkg audit
The package management tool is not yet installed on your...
The mechanism for doing this is not secure on FreeBSD 9....
pkg(8), use ports from a portsnap checkout:
# portsnap fetch extract
# make -C /usr/ports/ports-mgmt/pkg install clean
Do you still want to fetch and install it now? [y/N]: y
Bootstrapping pkg please wait
Installing pkg-1.5.5...
Extracting pkg-1.5.5: 100%
Message for pkg-1.5.5:
If you are upgrading from the old package format, first ...
# pkg2ng
pkg: vulnxml file /var/db/pkg/vuln.xml does not exist. T...
root@hotshot:/root # pkg audit -F
Fetching vuln.xml.bz2: 100% 515 iB 264.0kB/s 00:02
0 problem(s) in the installed packages found.
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root #
root@hotshot:/root # pkg2ng
Converting packages from /var/db/pkg
Converting perl-5.12.4_5...
Installing perl-5.12.4_5...
:
:
:
Installing ja-nkf-2.1.2,1...
Analysing shared libraries, this will take a while...
Checking all packages: 100%
root@hotshot:/root #
*no pkg(8) available; Manually upgrade/reinstall ports-mg...
http://freebsd.fkimura.com/pkg-a0.html
root@ns:/var/named/etc # portupgrade ports-mgmt/pkg
root@ns:/var/named/etc # cd /usr/ports/ports-mgmt/pkg
root@ns:/usr/ports/ports-mgmt/pkg # make install clean
You are about to convert your system to pkg while you ha...
installed with the old pkg_install tools.
To switch to pkg:
1) Install ports-mgmt/pkg
cd ports-mgmt/pkg && make UPGRADEPKG=1 install cl...
2) Convert your package database by running pkg2ng
*** [pre-everything] Error code 1
Stop in /usr/ports/ports-mgmt/pkg.
root@ns:/usr/ports/ports-mgmt/pkg #
root@ns:/usr/ports/ports-mgmt/pkg # make UPGRADEPKG=1 in...
:
:
:
/bin/mkdir -p '/usr/ports/ports-mgmt/pkg/work/stage/usr...
install -m 0644 libpkg/pkg.pc '/usr/ports/ports-mgmt/p...
====> Compressing man pages (compress-man)
===> Installing for pkg-1.5.5
===> Checking if pkg already installed
===> Registering installation for pkg-1.5.5
Installing pkg-1.5.5...
If you are upgrading from the old package format, first ...
# pkg2ng
===> SECURITY REPORT:
This port has installed the following files which ...
servers and may therefore pose a remote security r...
/usr/local/lib/libpkg.so.3.0.0
If there are vulnerabilities in these programs the...
risk to the system. FreeBSD makes no guarantee abo...
ports included in the Ports Collection. Please typ...
to deinstall the port if this is a concern.
For more information, and contact details about th...
status of this software, see the following webpage:
http://wiki.freebsd.org/pkgng
===> Cleaning for pkg-1.5.5
root@ns:/usr/ports/ports-mgmt/pkg #
root@ns:/usr/ports/ports-mgmt/pkg # pkg2ng
Converting packages from /var/db/pkg
Converting screen-4.0.3_14...
Installing screen-4.0.3_14...
Converting perl-5.14.2_3...
Installing perl-5.14.2_3...
Converting m4-1.4.16_1,1...
Installing m4-1.4.16_1,1...
Converting libtool-2.4.2...
Installing libtool-2.4.2...
Converting libiconv-1.14...
Installing libiconv-1.14...
Converting gettext-0.18.1.1...
:
:
:
Converting apache22-2.2.25...
pkg: duplicate directory listing: /usr/local/share/doc/a...
Installing apache22-2.2.25...
Analysing shared libraries, this will take a while...
Checking all packages: 100%
root@ns:/usr/ports/ports-mgmt/pkg #
root@ns:/usr/ports/ports-mgmt/pkg # pkg audit -F
Fetching vuln.xml.bz2: 100% 515 iB 264.0kB/s 00:02
libxml2-2.8.0_1 is vulnerable:
libxml2 -- entity substitution DoS
CVE: CVE-2014-0191
WWW: https://vuxml.FreeBSD.org/freebsd/efdd0edc-da3d-11e...
libxml2-2.8.0_1 is vulnerable:
libxml2 -- lack of end-of-document check DoS
CVE: CVE-2013-2877
WWW: https://vuxml.FreeBSD.org/freebsd/e7bb3885-da40-11e...
:
:
:
ruby-1.8.7.371,1 is vulnerable:
Ruby -- OpenSSL Hostname Verification Vulnerability
CVE: CVE-2015-1855
WWW: https://vuxml.FreeBSD.org/freebsd/d4379f59-3e9b-49e...
8 problem(s) in the installed packages found.
root@ns:/usr/ports/ports-mgmt/pkg # portupgrade bash-4.2...
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ...
- 139 packages found (-0 +139) ............................
.....................................100...................
USING PKGNG
[Updating the portsdb <format:bdb_btree> in /usr/ports ....
....3000.........4000.........5000.........6000............
14000.........15000.........16000.........17000............
...21000.........22000.........23000.........24000.........
---> Upgrading 'bash-4.2.42' to 'bash-4.3.39_3' (shells...
---> Building '/usr/ports/shells/bash'
* pkgngへの移行 P5K 2014/04/26 [#udd27d2f]
【参考URL】http://www.uconst.org/blog/archives/305
FreeBSD 9.1-RELEASE-p11
981 3:26 /usr/sbin/pkg
982 3:27 pkg2ng
983 3:29 echo 'WITH_PKGNG=yes' >> /etc/make.conf
984 3:30 pkgdb -fu
985 3:30 cd /usr/local/etc
986 3:31 mv pkg.conf pkg.conf_prepkgng
987 3:32 cp pkg.conf.sample pkg.conf
988 3:32 pkg check -Bdsr
990 3:33 pkg upgrade
と、ここで、
pkg No valid repository found.
を頂く。
991 3:34 mkdir -p /usr/local/etc/pkg/repos
993 3:34 touch /usr/local/etc/pkg/repos/FreeBSD.conf
/usr/local/etc/pkg/repos/FreeBSD.conf の内容は以下の通り...
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: true
}
994 3:36 pkg upgrade
ここで、Perlの環境のコンフリクトがあるとのことで、以下を...
995 3:42 pkg set -o lang/perl5.14:lang/perl5.16
996 3:42 pkg upgrade
997 3:45 pkg upgrade
Updating repository catalogue
Nothing to do
を頂く。
999 3:46 pkg audit -F
Vulnxml file up-to-date.
0 problem(s) in the installed packages found.
OK!
1000 3:47 reboot
1001 3:49 top
1002 3:49 pkg audit -F
1003 3:50 history
ここで、試しに、
# portaudit -Fda
New pkg tools detected: found 283 installed packages.
The portaudit tool is now obsolete, please remove portau...
command 'pkg audit' instead. See man pkg-audit(8) for m...
Running /usr/local/sbin/pkg-static audit -F:
Vulnxml file up-to-date.
0 problem(s) in the installed packages found.
とのこと。(^^ゞ
----
root@k222:/etc/defaults # pkg upgrade
Updating repository catalogue
Upgrades have been requested for the following 198 packa...
Installing perl5: 5.16.3_9
Installing db48: 4.8.30.0
Upgrading autoconf-wrapper: 20130530 -> 20131203
: :
Reinstalling bdftopcf-1.0.4 (direct dependency ch...
Reinstalling t1lib-5.1.2_2,1 (direct dependency c...
Upgrading php5-gd: 5.4.25 -> 5.4.27
The upgrade will require 42 MB more space
0 B to be downloaded
Proceed with upgrading packages [y/N]: y
Checking integrity...
Conflict found on path /usr/local/bin/a2p between perl5....
Conflict found on path /usr/local/bin/c2ph between perl5...
root@k222:/etc/defaults # pkg set -o lang/perl5.14:lang/...
Change origin from lang/perl5.14 to lang/perl5.16 for pe...
pkg: WARNING: locally installed freetds-msdblib-0.64_9,1...
- freetds-0.64_9,1
root@k222:/ # pkg set -o databases/freetds-msdblib:datab...
Change origin from databases/freetds-msdblib to database...
などとするも、やはり同じコンフリクト・・・がでる。で、
pkg delete freetds-0.64_9,1
pkg: Error while trying to delete packages, dependencies...
databases/freetds: databases/php5-mssql, databases/php5-...
とあったので、
portupgrade -r databases/freetds
してから、
pkg upgrade
したら、OKだった(?_?)
http://www.freebsd.org/doc/ja/books/handbook/pkgng-intro....
----
430 18:10 portupgrade freetype2-2.5.2
431 18:11 pkg audit
432 18:11 pkg audit
433 18:11 portupgrade libyaml-0.1.4_3
434 18:12 pkg audit
435 18:12 portupgrade -r python27-2.7.6_2
436 18:15 top
437 18:15 reboot
438 4:41 screen -r
439 6:36 top
440 6:36 portaudit -Fda
441 6:37 pkg check
442 6:37 pkg check -F
443 6:37 pkg check -Bdsr
444 6:39 pkgdb -fu
445 6:41 pkg upgrade
446 6:51 pkg upgrade
447 6:53 pkg update
448 6:53 pkg upgrade
449 6:56 pkg autoremove
450 6:56 pkg upgrade
451 6:57 pkg autoremove
452 6:57 pkg upgrade
453 6:58 pkg autoremove
454 6:58 pkg update
455 6:58 pkg upgrade
456 6:58 pkg update
457 6:58 pkg autoremove
458 7:13 history
*pkg No valid repository found. 2014/04/16 [#m4632c0d]
【参考URL】 http://www.uconst.org/blog/archives/305
***# mkdir -p /usr/local/etc/pkg/repos [#i54064bb]
ディレクトリ /usr/local/etc/pkg/repos を作成
***vi /usr/local/etc/pkg/repos/FreeBSD.conf [#edda376b]
設定ファイル /usr/local/etc/pkg/repos/FreeBSD.conf を作成
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: true
}
----
http://april.fool.jp/blogs/2013/03/freebsd-%E6%97%A5%E5%B...
----
*pkgng への移行 2014/04/12 [#wff15a49]
参考URL http://blog.goo.ne.jp/koyusoma5102/e/1b5379e2f29...
FreeBSD 9.1-RELEASE-p11 (GENERIC)
*** blackhole# /usr/sbin/pkg [#o6a55f47]
The package management tool is not yet installed on your...
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 ...
# pkg2ng
*** blackhole# pkg2ng [#q05a5a00]
pkg2ng: Command not found.
blackhole# rehash
blackhole# pkg2ng
pkg: PACKAGESITE in pkg.conf is deprecated. Please creat...
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... pk...
a repository configuration file
done
blackhole#
*** blackhole# echo 'WITH_PKGNG=yes' >> /etc/make.conf [#...
*** blackhole# pkgdb -fu [#i044f440]
---> Updating the pkgdb
[Reading data from pkg(8) ... pkg: PACKAGESITE in pkg.co...
- 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 [#u8a73d62]
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/pe...
misc/help2man has a missing dependency: lang/perl5.12
devel/p5-CPAN-Meta has a missing dependency: converters/...
devel/p5-Locale-gettext has a missing dependency: lang/p...
devel/p5-Module-Build has a missing dependency: converte...
devel/p5-Parse-CPAN-Meta has a missing dependency: conve...
>>> 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 [#q3dcce30]
今朝は、こんなコメントが出てからのアップグレードとなりま...
/!\ WARNING /!\
pkg_install EOL is scheduled for 2014-09-01. Please cons...
http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-b...
If you do not want to see this message again set NO_WARN...
およよ・・・
Blackcube2で練習
【参考URL】http://april.fool.jp/blogs/2013/03/freebsd-...
http://www.freebsd.org/doc/ja/books/handbook/pkgng-intro....
http://silversack.my.coocan.jp/bsd/pkgsforpkg.htm
# pkg help install
The package management tool is not yet installed on your...
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 ...
# pkg2ng
root@blackcube2:/root # pkg2ng
:
Converting tiff-4.0.3...
Installing tiff-4.0.3... done
pkg: PACKAGESITE in pkg.conf is deprecated. Please creat...
root@blackcube2:/root #
http://www.nabe.bne.jp/wiki/pkg%E3%82%B3%E3%83%9E%E3%83%B...
root@blackcube2:/usr/local/etc # cp pkg.conf.sample pkg....
次のページによると、pkg.confの削除と、パッケージリポジト...
# 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 ...
packagesite.txz ...
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 poss...
Reference: http://portaudit.FreeBSD.org/111f1f84-1d14-4f...
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected pack...
portupgrade 出来てない?
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q...
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 ...
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 poss...
Reference: http://portaudit.FreeBSD.org/111f1f84-1d14-4f...
1 problem(s) in your installed packages found.
You are advised to update or deinstall the affected pack...
**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 / ...
- www/suphp (port deleted)
! security/amavisd-new (amavisd-new-2.8.0_2,1) ...
* databases/phpmyadmin (phpMyAdmin-suphp-4.0.8)
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: