freebsd:using_portmaster

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
freebsd:using_portmaster [2013-11-14 20:08]
Decomo 作成
freebsd:using_portmaster [2015-01-06 11:51] (現在)
行 1: 行 1:
-====== portmasterを使う ======+====== portmasterとpkgngを使う ======
  
 最近はportmasterが流行らしいので、portupgradeから乗り換えてみる。 最近はportmasterが流行らしいので、portupgradeから乗り換えてみる。
行 10: 行 10:
 </code> </code>
  
-どうせなのでpkgngで運用してみる。+<pre> 
 +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 'WITH_PKGNG=yes' >> /etc/make.conf 
 + 
 +    Then convert your /var/db/pkg database to the new pkg format: 
 + 
 +        # pkg2ng 
 +</pre> 
 +とのことなので、いい機会だしpkgngで運用してみる。 
 + 
 +まずはpkgngをインストール
 <code> <code>
 # pkg # pkg
行 70: 行 84:
  
 For more information on the different commands see 'pkg help <command>'. For more information on the different commands see 'pkg help <command>'.
 +</code>
  
 +pkgngの使用を明示
 +<code>
 # echo 'WITH_PKGNG=yes' >> /etc/make.conf # echo 'WITH_PKGNG=yes' >> /etc/make.conf
 +</code>
 +
 +既存のpkgデータベースをpkgng方式に変換
 +<code>
 # pkg2ng # pkg2ng
 +</code>
 +
 +早速pkgngでportupgradeを消してみる
 +<code>
 +sudo pkg delete portupgrade
 +パスワード:
 +Deinstallation has been requested for the following 1 packages:
 +
 + portupgrade-2.4.9.3,2
 +
 +The deinstallation will free 411 kB
 +
 +Proceed with deinstalling packages [y/N]: y
 +[1/1] Deleting portupgrade-2.4.9.3,2... done
 </code> </code>
  
  
  • freebsd/using_portmaster.1384427295.txt.gz
  • 最終更新: 2013-11-14 20:08
  • by Decomo