Notebook

これは日々の作業を通して学んだことや毎日の生活で気づいたことをを記録しておく備忘録である。

HTML ファイル生成日時: 2024/11/24 14:07:03.493 (台灣標準時)

pkgin を使ってバイナリーパッケージをインストールする際の注意点

NetBSD では、 pkgsrc を使ってソフトウェアを簡便にコンパイルし、インス トールする仕組みがあるでござる。なれど、演算性能が低めのハードウェアの 場合、ソースコードをコンパイルしてインストールするという作業は長い時間 がかかってしまう場合があるでござる。そのようなときは、 pkgin を使って コンパイル済みのバイナリーパッケージをダウンロードし、インストールする と便利でござる。

pkgin を使ったバイナリーパッケージのインストール方法は、以下に記録して あるでござる。

しかし、実際に、 pkgin を使ってみると、 pkgin を使ったバイナリーパッケー ジのインストールには非常に長い時間がかかるでござる。「何かこの状況を改 善する方法があるはずでござる」と思い、 man pkgin として、 pkgin のマニュ アルを読んでみたでござる。すると、 -4 というオプションがあることに気づ いたでござる。おそらく、デフォルトの設定だと、まず IPv6 での通信を試み、 それに失敗すると、 IPv4 を試す、ということになっていて、それで時間がか かっていたのでござろう、と推測したでござる。また、 -y というオプション もあり、これを使うと、対話的に y キーを押す手間が省けるようでござる。

fig_202301/man_pkgin_0.png
fig_202301/man_pkgin_1.png
fig_202301/man_pkgin_2.png

試しに、 pkgin -4y firefox102-102.4.0 というコマンドを実行してみたとこ ろ、不満を感じないほどに高速化したでござる。


# pkgin -4y install firefox102-102.4.0
calculating dependencies...done.
/usr/lib/libterminfo.so.1, needed by ffmpeg5-5.1.1nb1 is not present in this system.
/usr/lib/libterminfo.so.1, needed by lame-3.100nb4 is not present in this system.
/usr/lib/libcurses.so.8, needed by lame-3.100nb4 is not present in this system.

66 packages to install:
  firefox102-102.4.0 pciutils-3.8.0 nss-3.83 nspr-4.35 libwebp-1.2.4
  libv4l-1.22.1 libffi-3.4.2nb3 libIDL-0.8.14nb6 icu-71.1
  hicolor-icon-theme-0.17nb1 gtk3+-3.24.34nb2 dbus-glib-0.112nb1 dbus-1.14.0nb3
  xvidcore-1.3.7 x265-3.5 x264-devel-20191217nb3 speex-1.2.1 libxml2-2.9.14
  libvpx-1.12.0 libvorbis-1.3.7 libva-2.15.0 libtheora-1.1.1nb2 libopus-1.3.1
  libbluray-1.3.2 libass-0.16.0 libaom-3.4.0 gnutls-3.7.7 dav1d-1.0.0
  wayland-protocols-1.26nb1 wayland-1.21.0 shared-mime-info-1.10nb6
  pango-1.50.8 libxkbcommon-1.4.1 libcups-2.4.2nb1 gdk-pixbuf2-2.42.9
  fribidi-1.0.11 cairo-gobject-1.16.0nb6 cairo-1.16.0nb6 atk-2.36.0nb1
  at-spi2-atk-2.38.0nb1 glib2-2.72.3 tiff-4.4.0 png-1.6.37nb1 jpeg-9e
  giflib-5.2.1nb4 jbigkit-2.1nb1 pcre-8.45 at-spi2-core-2.40.3nb2 lzo-2.10
  libpaper-1.1.28 graphite2-1.3.14 libxslt-1.1.34nb10
  libepoll-shim-0.0.20210418nb2 p11-kit-0.24.1 nettle-3.8.1
  mozilla-rootcerts-1.0.20220614 libunistring-1.0 libtasn1-4.19.0 libcfg+-0.7.0
  gmp-6.2.1nb3 harfbuzz-5.1.0 enca-1.15 xmlcatmgr-2.2nb1 libogg-1.3.5nb1
  libgcrypt-1.10.1 libgpg-error-1.45

0 to refresh, 0 to upgrade, 66 to install
214M to download, 661M to install
the following packages have unmet requirements:   ffmpeg5-5.1.1nb1 lame-3.100nb4


libgpg-error-1.45.tgz                         100%  454KB 454.2KB/s   00:01    
libgcrypt-1.10.1.tgz                          100% 1221KB   1.2MB/s   00:01    
jbigkit-2.1nb1.tgz                            100%  106KB 106.2KB/s   00:00    
pcre-8.45.tgz                                 100% 1213KB   1.2MB/s   00:01    
at-spi2-core-2.40.3nb2.tgz                    100%  297KB 296.9KB/s   00:01    
lzo-2.10.tgz                                  100%  157KB 157.0KB/s   00:00    
libpaper-1.1.28.tgz                           100%   27KB  26.9KB/s   00:00    
graphite2-1.3.14.tgz                          100%  103KB 103.0KB/s   00:00    
libxslt-1.1.34nb10.tgz                        100%  722KB 721.9KB/s   00:00    
libepoll-shim-0.0.20210418nb2.tgz             100%   31KB  30.5KB/s   00:00    
p11-kit-0.24.1.tgz                            100% 8412KB   2.7MB/s   00:03    
nettle-3.8.1.tgz                              100%   11MB   2.2MB/s   00:05    
mozilla-rootcerts-1.0.20220614.tgz            100%  622KB 622.2KB/s   00:00    
libunistring-1.0.tgz                          100% 1646KB   1.6MB/s   00:01    
libtasn1-4.19.0.tgz                           100%  152KB 151.6KB/s   00:00    
libcfg+-0.7.0.tgz                             100%  165KB 165.4KB/s   00:01    
gmp-6.2.1nb3.tgz                              100%  788KB 787.7KB/s   00:00    
harfbuzz-5.1.0.tgz                            100% 1759KB   1.7MB/s   00:01    
enca-1.15.tgz                                 100%  197KB 196.9KB/s   00:00    
xmlcatmgr-2.2nb1.tgz                          100%   31KB  30.8KB/s   00:00    
libogg-1.3.5nb1.tgz                           100%  229KB 228.9KB/s   00:00    
dbus-1.14.0nb3.tgz                            100%  823KB 822.6KB/s   00:00    
xvidcore-1.3.7.tgz                            100%  474KB 474.1KB/s   00:01    
x265-3.5.tgz                                  100% 1147KB   1.1MB/s   00:01    
x264-devel-20191217nb3.tgz                    100% 2212KB   2.2MB/s   00:01    
speex-1.2.1.tgz                               100%  553KB 552.8KB/s   00:00    
libxml2-2.9.14.tgz                            100% 2405KB   1.2MB/s   00:02    
libvpx-1.12.0.tgz                             100% 2656KB   1.3MB/s   00:02    
libvorbis-1.3.7.tgz                           100%  636KB 635.5KB/s   00:00    
libva-2.15.0.tgz                              100%  312KB 311.5KB/s   00:00    
libtheora-1.1.1nb2.tgz                        100%  814KB 814.2KB/s   00:01    
libopus-1.3.1.tgz                             100%  502KB 502.2KB/s   00:00    
libbluray-1.3.2.tgz                           100%  384KB 384.3KB/s   00:00    
libass-0.16.0.tgz                             100%  239KB 239.2KB/s   00:00    
libaom-3.4.0.tgz                              100% 3967KB   1.9MB/s   00:02    
lame-3.100nb4.tgz                             100%  609KB 609.2KB/s   00:01    
gnutls-3.7.7.tgz                              100% 4197KB   1.0MB/s   00:04    
dav1d-1.0.0.tgz                               100%  431KB 430.9KB/s   00:01    
wayland-protocols-1.26nb1.tgz                 100%   98KB  97.9KB/s   00:00    
wayland-1.21.0.tgz                            100%  222KB 222.3KB/s   00:01    
shared-mime-info-1.10nb6.tgz                  100% 1099KB   1.1MB/s   00:01    
pango-1.50.8.tgz                              100%  562KB 561.8KB/s   00:00    
libxkbcommon-1.4.1.tgz                        100%  266KB 266.5KB/s   00:00    
libcups-2.4.2nb1.tgz                          100%  997KB 996.5KB/s   00:01    
gdk-pixbuf2-2.42.9.tgz                        100%  786KB 786.2KB/s   00:01    
fribidi-1.0.11.tgz                            100%   91KB  91.1KB/s   00:00    
cairo-gobject-1.16.0nb6.tgz                   100%   27KB  26.6KB/s   00:00    
cairo-1.16.0nb6.tgz                           100% 1901KB   1.9MB/s   00:01    
atk-2.36.0nb1.tgz                             100%  453KB 453.5KB/s   00:01    
at-spi2-atk-2.38.0nb1.tgz                     100%   85KB  85.5KB/s   00:00    
glib2-2.72.3.tgz                              100% 4866KB   1.6MB/s   00:03    
tiff-4.4.0.tgz                                100% 1206KB   1.2MB/s   00:01    
png-1.6.37nb1.tgz                             100%  402KB 402.0KB/s   00:00    
jpeg-9e.tgz                                   100%  479KB 479.1KB/s   00:01    
giflib-5.2.1nb4.tgz                           100%   45KB  45.2KB/s   00:00    
pciutils-3.8.0.tgz                            100%  408KB 407.5KB/s   00:01    
nss-3.83.tgz                                  100% 3660KB   1.8MB/s   00:02    
nspr-4.35.tgz                                 100%  409KB 409.2KB/s   00:00    
libwebp-1.2.4.tgz                             100%  853KB 853.3KB/s   00:01    
libv4l-1.22.1.tgz                             100%  276KB 275.8KB/s   00:00    
libffi-3.4.2nb3.tgz                           100%   38KB  37.7KB/s   00:00    
libIDL-0.8.14nb6.tgz                          100%  185KB 185.5KB/s   00:00    
icu-71.1.tgz                                  100%   30MB   2.3MB/s   00:13    
hicolor-icon-theme-0.17nb1.tgz                100%   14KB  14.4KB/s   00:00    
gtk3+-3.24.34nb2.tgz                          100%   25MB   2.3MB/s   00:11    
ffmpeg5-5.1.1nb1.tgz                          100%   21MB   2.6MB/s   00:08    
dbus-glib-0.112nb1.tgz                        100%  265KB 265.3KB/s   00:00    
firefox102-102.4.0.tgz                        100%   68MB   3.2MB/s   00:21    
installing firefox102-102.4.0...
No schema files found: doing nothing.
p11-kit-0.24.1: copying /usr/pkg/share/examples/p11-kit/pkcs11.conf.example to /usr/pkg/etc/pkcs11/pkcs11.conf
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.etc.sgml to /usr/pkg/etc/sgml/catalog
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.etc.xml to /usr/pkg/etc/xml/catalog
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.share.sgml to /usr/pkg/share/sgml/catalog
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.share.xml to /usr/pkg/share/xml/catalog
dbus-1.14.0nb3: setting permissions on /usr/pkg/libexec/dbus-daemon-launch-helper (o=root, g=dbus, m=4511)
===========================================================================
The following files should be created for dbus-1.14.0nb3:

        /etc/rc.d/dbus (m=0755)
            [/usr/pkg/share/examples/rc.d/dbus]

===========================================================================
===========================================================================
$NetBSD: MESSAGE.rcd,v 1.2 2021/11/07 19:14:15 khorben Exp $

You should enable the dbus system-wide daemon for correct operation. Use:

$ cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/dbus

Edit /etc/rc.conf to set dbus=YES.

===========================================================================
===========================================================================
$NetBSD: MESSAGE.rcd,v 1.2 2021/11/07 19:14:15 khorben Exp $

You should enable the dbus system-wide daemon for correct operation. Use:

$ cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/dbus

Edit /etc/rc.conf to set dbus=YES.

===========================================================================
libpaper-1.1.28: copying /usr/pkg/share/examples/libpaper/papersize to /usr/pkg/etc/papersize
at-spi2-core-2.40.3nb2: copying /usr/pkg/share/examples/at-spi2-core/at-spi2/accessibility.conf to /usr/pkg/etc/at-spi2/accessibility.conf
at-spi2-core-2.40.3nb2: copying /usr/pkg/share/examples/at-spi2-core/xdg/autostart/at-spi-dbus-bus.desktop to /usr/pkg/etc/xdg/autostart/at-spi-dbus-bus.desktop
installing pciutils-3.8.0...
installing nss-3.83...
installing nspr-4.35...
installing libwebp-1.2.4...
installing libv4l-1.22.1...
installing libffi-3.4.2nb3...
installing libIDL-0.8.14nb6...
installing icu-71.1...
installing hicolor-icon-theme-0.17nb1...
installing gtk3+-3.24.34nb2...
No schema files found: removed existing output file.
installing dbus-glib-0.112nb1...
installing dbus-1.14.0nb3...
===========================================================================
The following users are no longer being used by dbus-1.14.0nb3,
and they can be removed if no other software is using them:

        dbus

===========================================================================
===========================================================================
The following groups are no longer being used by dbus-1.14.0nb3,
and they can be removed if no other software is using them:

        dbus

===========================================================================
===========================================================================
The following directories are no longer being used by dbus-1.14.0nb3,
and they can be removed if no other packages are using them:

        /var/lib/dbus

===========================================================================
dbus-1.14.0nb3: setting permissions on /usr/pkg/libexec/dbus-daemon-launch-helper (o=root, g=dbus, m=4511)
===========================================================================
The following files should be created for dbus-1.14.0nb3:

        /etc/rc.d/dbus (m=0755)
            [/usr/pkg/share/examples/rc.d/dbus]

===========================================================================
===========================================================================
$NetBSD: MESSAGE.rcd,v 1.2 2021/11/07 19:14:15 khorben Exp $

You should enable the dbus system-wide daemon for correct operation. Use:

$ cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/dbus

Edit /etc/rc.conf to set dbus=YES.

===========================================================================
===========================================================================
$NetBSD: MESSAGE.rcd,v 1.2 2021/11/07 19:14:15 khorben Exp $

You should enable the dbus system-wide daemon for correct operation. Use:

$ cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/dbus

Edit /etc/rc.conf to set dbus=YES.

===========================================================================
installing xvidcore-1.3.7...
installing x265-3.5...
installing x264-devel-20191217nb3...
installing speex-1.2.1...
installing libxml2-2.9.14...
installing libvpx-1.12.0...
installing libvorbis-1.3.7...
installing libva-2.15.0...
installing libtheora-1.1.1nb2...
installing libopus-1.3.1...
installing libbluray-1.3.2...
installing libass-0.16.0...
installing libaom-3.4.0...
installing gnutls-3.7.7...
installing dav1d-1.0.0...
installing wayland-protocols-1.26nb1...
installing wayland-1.21.0...
installing shared-mime-info-1.10nb6...
installing pango-1.50.8...
installing libxkbcommon-1.4.1...
installing libcups-2.4.2nb1...
installing gdk-pixbuf2-2.42.9...
installing fribidi-1.0.11...
installing cairo-gobject-1.16.0nb6...
installing cairo-1.16.0nb6...
installing atk-2.36.0nb1...
installing at-spi2-atk-2.38.0nb1...
installing glib2-2.72.3...
installing tiff-4.4.0...
installing png-1.6.37nb1...
installing jpeg-9e...
installing giflib-5.2.1nb4...
installing jbigkit-2.1nb1...
installing pcre-8.45...
installing at-spi2-core-2.40.3nb2...
at-spi2-core-2.40.3nb2: copying /usr/pkg/share/examples/at-spi2-core/at-spi2/accessibility.conf to /usr/pkg/etc/at-spi2/accessibility.conf
at-spi2-core-2.40.3nb2: copying /usr/pkg/share/examples/at-spi2-core/xdg/autostart/at-spi-dbus-bus.desktop to /usr/pkg/etc/xdg/autostart/at-spi-dbus-bus.desktop
installing lzo-2.10...
installing libpaper-1.1.28...
libpaper-1.1.28: copying /usr/pkg/share/examples/libpaper/papersize to /usr/pkg/etc/papersize
installing graphite2-1.3.14...
installing libxslt-1.1.34nb10...
installing libepoll-shim-0.0.20210418nb2...
installing p11-kit-0.24.1...
p11-kit-0.24.1: copying /usr/pkg/share/examples/p11-kit/pkcs11.conf.example to /usr/pkg/etc/pkcs11/pkcs11.conf
installing nettle-3.8.1...
installing mozilla-rootcerts-1.0.20220614...
installing libunistring-1.0...
installing libtasn1-4.19.0...
installing libcfg+-0.7.0...
installing gmp-6.2.1nb3...
installing harfbuzz-5.1.0...
installing enca-1.15...
installing xmlcatmgr-2.2nb1...
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.etc.sgml to /usr/pkg/etc/sgml/catalog
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.etc.xml to /usr/pkg/etc/xml/catalog
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.share.sgml to /usr/pkg/share/sgml/catalog
xmlcatmgr-2.2nb1: copying /usr/pkg/share/examples/xmlcatmgr/catalog.share.xml to /usr/pkg/share/xml/catalog
installing libogg-1.3.5nb1...
installing libgcrypt-1.10.1...
installing libgpg-error-1.45...
pkg_install warnings: 135, errors: 0
pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log
reading local summary...
processing local summary...
marking firefox102-102.4.0 as non auto-removable



Frequently accessed files

  1. Computer___Python/20220518_0.html
  2. Computer___Network/20230726_00.html
  3. Misc___Taiwan/20240207_00.html
  4. Computer___Network/20230516_00.html
  5. Computer___FreeBSD/20220621_0.html
  6. Computer___Python/20220715_0.html
  7. Computer___Network/20230508_00.html
  8. Food___Taiwan/20220429_0.html
  9. Computer___NetBSD/20220817_3.html
  10. Computer___Python/20220410_0.html
  11. Computer___Network/20240416_00.html
  12. Computer___Network/20240130_00.html
  13. Computer___Debian/20210223_1.html
  14. Computer___NetBSD/20230119_00.html
  15. Computer___Python/20210124_0.html
  16. Computer___Python/20221013_0.html
  17. Computer___NetBSD/20220818_1.html
  18. Computer___NetBSD/20220428_0.html
  19. Science___Math/20220420_0.html
  20. Computer___NetBSD/20240101_02.html
  21. Computer___NetBSD/20220808_0.html
  22. Computer___TeX/20230503_00.html
  23. Computer___NetBSD/20230515_00.html
  24. Science___Astronomy/20220503_0.html
  25. Computer___NetBSD/20210127_0.html
  26. Computer___Python/20240101_00.html
  27. Computer___Network/20220413_1.html
  28. Computer___Python/20220816_1.html
  29. Computer___NetBSD/20210204_0.html
  30. Travel___Taiwan/20220809_2.html


HTML file generated by Kinoshita Daisuke.