差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
freebsd:using_portmaster [2013-11-14 20:08] Decomo 作成 |
freebsd:using_portmaster [2013-11-27 11:47] Decomo |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== portmasterを使う ====== | + | ====== portmasterとpkgngを使う ====== |
最近はportmasterが流行らしいので、portupgradeから乗り換えてみる。 | 最近はportmasterが流行らしいので、portupgradeから乗り換えてみる。 | ||
行 10: | 行 10: | ||
</ | </ | ||
- | どうせなのでpkgngで運用してみる。 | + | < |
+ | If you want to switch to the new pkg(8) format, and have not already done so, | ||
+ | there are some extra 1-time steps to take: | ||
+ | |||
+ | Enable PKGNG as your package format: | ||
+ | |||
+ | # echo ' | ||
+ | |||
+ | Then convert your /var/db/pkg database to the new pkg format: | ||
+ | |||
+ | # pkg2ng | ||
+ | </ | ||
+ | とのことなので、いい機会だしpkgngで運用してみる。 | ||
+ | |||
+ | まずはpkgngをインストール。 | ||
< | < | ||
# pkg | # pkg | ||
行 70: | 行 84: | ||
For more information on the different commands see 'pkg help < | For more information on the different commands see 'pkg help < | ||
+ | </ | ||
+ | pkgngの使用を明示 | ||
+ | < | ||
# echo ' | # echo ' | ||
+ | </ | ||
+ | |||
+ | 既存のpkgデータベースをpkgng方式に変換 | ||
+ | < | ||
# pkg2ng | # pkg2ng | ||
+ | </ | ||
+ | |||
+ | 早速pkgngでportupgradeを消してみる | ||
+ | < | ||
+ | sudo pkg delete portupgrade | ||
+ | パスワード: | ||
+ | Deinstallation has been requested for the following 1 packages: | ||
+ | |||
+ | portupgrade-2.4.9.3, | ||
+ | |||
+ | The deinstallation will free 411 kB | ||
+ | |||
+ | Proceed with deinstalling packages [y/N]: y | ||
+ | [1/1] Deleting portupgrade-2.4.9.3, | ||
</ | </ | ||