パッケージのアップデートですが、
Debian/Ubuntuならapt-get upgrade
Redhat/Cent/SLならyum upgrade
とか、コマンド一つで出来ますが、
FreeBSDでやる方法がいまいちよく分からなかったのでメモ
いつもどおり
# portsnap fetch # portsnap update
で、どのパッケージが古いのか探してみる
# pkg_version | grep -v " =" libtool < ruby < tiff <
今回は3つありました。
で、本題。
一括でやってくれる「portmaster」を入れる。
# pkg_add -r portmaster Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/portmaster.tbz... Done.
これだけw
一気に3つやってしまう。
# portmaster -a ===>>> Gathering distinfo list for installed ports ===>>> Starting check of installed ports for available updates Install them as occasion demands. ==== ===>>> Done displaying pkg-message files ===>>> The following actions were performed: Upgrade of libtool-2.4_1 to libtool-2.4.2 Installation of devel/p5-Locale-gettext (p5-Locale-gettext-1.05_3) Installation of misc/help2man (help2man-1.40.5) Installation of devel/autoconf-wrapper (autoconf-wrapper-20101119) Installation of devel/autoconf (autoconf-2.68) Installation of devel/automake-wrapper (automake-wrapper-20101119) Installation of devel/automake (automake-1.11.1) Upgrade of ruby-1.8.7.352_2,1 to ruby-1.8.7.357,1 Upgrade of tiff-4.0.0_2 to tiff-4.0.0_3 # # pkg_version | grep -v " =" #
これだけで、簡単にパッケージアップデート出来ます。
また、
# portmaster /usr/ports/shells/bash
などportsからインストールすることが出来ます。
[tegaki]いろんな方法あるね[/tegaki]