綾小路龍之介の素人思考

[wget] 新めの wget をインストール

wget 1.13.4 で起きているメモリリーク。治ったのは 1.14 らしいので新しいバージョンをコンパイルしてみた。とりあえず、メモリリークの問題は解決されている様子。

必要な物のダウンロード。

$ wget 'http://ftp.gnu.org/gnu/wget/wget-1.16.1.tar.xz'
$ wget 'http://ftp.gnu.org/gnu/wget/wget-1.16.1.tar.xz.sig'

ダウンロード済みファイルの署名を検証。"Good signature from..."とあるので署名はOK."WARNING: This key is not certified with a trusted signature!"とあるのは自分が公開鍵を信用していないから。

$ echo keyserver-options auto-key-retrieve >> ~/.gnupg/gpg.conf
$ gpg --verify wget-1.16.1.tar.xz.sig
gpg: Signature made Mon 08 Dec 2014 07:38:27 PM JST using RSA key ID E163E1EA
gpg: requesting key E163E1EA from hkp server keys.gnupg.net
gpg: key E163E1EA: public key "Giuseppe Scrivano <gscrivan@redhat.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
gpg: Good signature from "Giuseppe Scrivano <gscrivan@redhat.com>"
gpg:                 aka "Giuseppe Scrivano <gscrivano@gnu.org>"
gpg:                 aka "Giuseppe Scrivano <gscrivano@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: AC40 4C1C 0BF7 35C6 3FF4  D562 263D 6DF2 E163 E1EA
$ gpg --verify wget-1.16.1.tar.xz.sig
gpg: Signature made Mon 08 Dec 2014 07:38:27 PM JST using RSA key ID E163E1EA
gpg: Good signature from "Giuseppe Scrivano <gscrivan@redhat.com>"
gpg:                 aka "Giuseppe Scrivano <gscrivano@gnu.org>"
gpg:                 aka "Giuseppe Scrivano <gscrivano@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: AC40 4C1C 0BF7 35C6 3FF4  D562 263D 6DF2 E163 E1EA

コンパイルして起動するまで。

$ tar Jxf wget-1.16.1.tar.xz
$ cd wget-1.16.1/
$ ./configure --prefix=$(echo ~/opt/)
$ make
$ make check
$ make install
$ ~/opt/bin/wget --version
GNU Wget 1.16.1 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls -ntlm +opie -psl +ssl/gnutls

Wgetrc:
    /home/******/opt/etc/wgetrc (system)
Locale:
    /home/******/opt/share/locale
Compile:
    gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/home/******/opt/etc/wgetrc"
    -DLOCALEDIR="/home/******/opt/share/locale" -I. -I../lib -I../lib
    -I/usr/include/p11-kit-1 -DHAVE_LIBGNUTLS -DNDEBUG
Link:
    gcc -I/usr/include/p11-kit-1 -DHAVE_LIBGNUTLS -DNDEBUG -lpcre
    -lgnutls -lz -lidn -lrt ftp-opie.o gnutls.o ../lib/libgnu.a

Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.

リファレンス

  1. GNU Project Archives
  2. GNU Wget
  3. 仕事で使える魔法のLAMP(10):ダウンロードファイルが真正なものであるかを確認 - @IT
  4. GnuPGの署名を確認する [[GnuPGのチュートリアル]]

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2008-08-26T01:08:53+09:00
  2. Modified: 2008-08-26T01:08:53+09:00
  3. Generated: 2017-02-01T23:09:19+09:00