pkgtool 使用更新

NetBSD的安装、升级、更新等日常问题请在这里讨论。

版主: lionux

回复
头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

pkgtool 使用更新

帖子 lionux » 2010-03-28 12:13

pkgsrc/pkgtool下有很多实用的pkgsrc工具。

pkgfind 查找,在后面加关键词即可

代码: 全选

[color="Sienna"]$ pkgfind firefox
www/firefox: Web browser with support for extensions
www/firefox-bin: Lightweight gecko-based web browser (binary package)
www/firefox-bin-acroread: Acrobat Reader 4 plugin for firefox-bin
www/firefox-bin-acroread5: Acrobat Reader 5 plugin for firefox-bin
www/firefox-bin-acroread7: Acrobat Reader 7 plugin for firefox-bin
www/firefox-bin-flash: Flash Player plugin for firefox-bin
www/firefox-bin-java: Java Run Time Environment (JRE) 1.5 plugin for firefox-bin
www/firefox-bin-realplayer: RealAudio and RealVideo player plugin for firefox-bin[/color]
pkg_leaves 显示不被其他依赖的packages,参数 -a 显示节点和不被其他依赖的packages

代码: 全选

[color="Sienna"]$ pkg_leaves                                                             
f2c-20090411nb4
libtool-base-2.2.6bnb4
gmake-3.81
xz-4.999.9betanb1
automake-1.11.1
intltool-0.40.6
kbproto-1.0.4
xproto-7.0.16
recordproto-1.13.2
xextproto-7.0.5
inputproto-1.5.1
bison-2.4.1nb1
fixesproto-4.0
renderproto-0.11
randrproto-1.3.1
xineramaproto-1.1.2
xcb-proto-1.6
gawk-3.1.7
gnome-doc-utils-0.18.1nb1
gtk-doc-1.13nb2
flex-2.5.35nb1
zip-3.0nb2
autoconf213-2.13nb1
gperf-3.0.4
compositeproto-0.4.1
damageproto-1.2.0
yasm-0.8.0
videoproto-2.3.0
xf86dgaproto-2.1
xf86vidmodeproto-2.3
dri2proto-2.1
glproto-1.4.10
xf86driproto-2.1.0[/color]

代码: 全选

[color="Sienna"]$ pkg_leaves -a
f2c-20090411nb4
libtool-base-2.2.6bnb4
gmake-3.81
xz-4.999.9betanb1
automake-1.11.1
intltool-0.40.6
kbproto-1.0.4
xproto-7.0.16
recordproto-1.13.2
xextproto-7.0.5
inputproto-1.5.1
bison-2.4.1nb1
fixesproto-4.0
renderproto-0.11
randrproto-1.3.1
xineramaproto-1.1.2
xcb-proto-1.6
xf86-input-keyboard-1.3.2nb2
xf86-input-mouse-1.4.0nb1
xf86-video-nv-2.1.14
pkg_leaves-1.2
pkg_chk-2.0
pkgclean-20051116
pkgfind-20050804
modular-xorg-libs-1.0nb1
modular-xorg-apps-1.5
gawk-3.1.7
modular-xorg-fonts-1.1
pkg_comp-1.31
pkg_select-20090308nb2
pkg_tarup-1.8
gnome-doc-utils-0.18.1nb1
gtk-doc-1.13nb2
flex-2.5.35nb1
zip-3.0nb2
autoconf213-2.13nb1
vim-gtk2-7.2.411nb2
scim-bridge-0.4.16nb1
scim-pinyin-0.5.91
gperf-3.0.4
compositeproto-0.4.1
damageproto-1.2.0
xfce4-4.6.1nb2
gst-plugins0.10-good-0.10.21
yasm-0.8.0
videoproto-2.3.0
xf86dgaproto-2.1
xf86vidmodeproto-2.3
dri2proto-2.1
glproto-1.4.10
xf86driproto-2.1.0
mplayer-1.0rc20091017nb1
samba-3.3.12
lintpkgsrc-4.82
pkg_distinst-0.02
pkgdep-1.0
pkgdepgraph-2.8
firefox-3.6.2nb1
[/color]

pkgclean 清除work目录,编译后会留下大量工作目录,有时make install 忘了 make clean-depends 就会占用空间,这个自动清除所有 work 目录,没有其他参数。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客