root@ykla:~# pkg info -d screenscreen-4.9.0_6:indexinfo-0.3.1
未安装:
root@ykla:/usr/ports/sysutils/htop# make all-depends-list/usr/ports/ports-mgmt/pkg/usr/ports/devel/pkgconf/usr/ports/devel/kyua/usr/ports/devel/lutok/usr/ports/lang/lua54/usr/ports/devel/libedit/usr/ports/databases/sqlite3/usr/ports/lang/tcl86/usr/ports/lang/python311/usr/ports/devel/gettext-runtime/usr/ports/print/indexinfo/usr/ports/devel/gettext-tools/usr/ports/devel/libtextstyle/usr/ports/devel/libffi/usr/ports/misc/dejagnu/usr/ports/devel/gmake/usr/ports/lang/expect/usr/ports/devel/autoconf/usr/ports/devel/m4/usr/ports/print/texinfo/usr/ports/misc/help2man/usr/ports/devel/p5-Locale-gettext/usr/ports/lang/perl5.34/usr/ports/devel/p5-Locale-libintl/usr/ports/converters/libiconv/usr/ports/converters/p5-Text-Unidecode/usr/ports/textproc/p5-Unicode-EastAsianWidth/usr/ports/devel/autoconf-switch/usr/ports/devel/automake/usr/ports/math/mpdecimal/usr/ports/devel/readline/usr/ports/devel/libtool
杂项
如果不选择 BATCH=yes 的方法手动配置:
看看 python 的 ports 在哪:
# whereis python# python: /usr/ports/lang/python
安装 python3:
# cd /usr/ports/lang/python
如何设置全部所需的依赖:
# make config-recursive
如何删除当前 port 及其依赖的配置文件:
# make rmconfig-recursive
如何一次性下载所有需要的软件包:
# make BATCH=yes fetch-recursive
ports 编译的软件也可以转换为 pkg 包
# pkg create nginx
更新 FreeBSD 软件包/Port
先同步更新 Ports Git。
然后列出过时 Port 软件:
root@ykla:/usr/ports# pkg version -l '<'aom-3.10.0<chromium-127.0.6533.99<curl-8.9.1_1<expat-2.6.2<ffmpeg-6.1.2,1<firefox-esr-115.15.0,1<gdal-3.9.2<geos-3.12.2<imlib2-1.12.3,2<kf5-kimageformats-5.116.0<libjxl-0.10.3<libphonenumber-8.13.45<librsvg2-rust-2.58.3_2<libxml2-2.11.8<liveMedia-2022.06.16,2<llvm18-18.1.8_1<marble-23.08.5_2<mosh-1.4.0_3<protobuf-27.3_1,1<py311-build-1.2.1<py311-libxml2-2.11.8_1<py311-mdit-py-plugins-0.4.1<py311-pbr-6.0.0<ruby-3.2.4,1<rust-bindgen-cli-0.70.1_1<sdl2_image-2.8.2_1<texlive-texmf-20240312<vlc-3.0.21_4,4<w3m-0.5.3.20230718_1<
下边分别列出 2 种 FreeBSD 手册中提及的升级工具:
①、portupgrade
# cd /usr/ports/ports-mgmt/portupgrade && make install clean# portupgrade -ai #自动升级所有软件,i 会挨个确认# portupgrade -R screen #升级单个软件# portupgrade -a --batch #不要问,只做,等同于 BATCH=yes
②、portmaster (推荐)
更新:
# cd /usr/ports/ports-mgmt/portmaster && make install clean# portmaster -a #自动升级所有软件# portmaster screen #升级单个软件
如果不想回答问题解决依赖,可使用类似 BATCH=yes 的选项 -a -G --no-confirm: