blfs wget项目地址:http://www.linuxfromscratch.org/blfs/view/stable-systemd/basicnet/wget.html

推荐依赖:make-ca-0.8(必须安装,用于运行时校验秘钥)

1.用主机下载wget和make-ca包,并移动到/sources/blfs-sources,例如:

sudo mv '/home/renren/下载/make-ca-0.8.tar.gz' '/home/renren/下载/wget-1.19.5.tar.gz'  /mnt/lfs/sources/blfs-sources/

2.校验md5

md5sum  -c md5sums

3.解压wget包并进入包目录

tar -xvf wget-1.19.5.tar.gz

cd wget-1.19.5

4.使用书中的说明编译安装

./configure --prefix=/usr      \
--sysconfdir=/etc \
--with-ssl=openssl &&
make make -j8 check make install

5.返回blfs-sources目录并删除包目录

cd $LFS/sources/blfs-sources

rm -rf wget-1.19.5

6.解压make-ca包并进入包目录

tar -xvf make-ca-0.8.tar.gz

cd make-ca-0.8

7.参照书中说明编译安装

install -vdm755 /etc/ssl/local &&
wget http://www.cacert.org/certs/root.crt &&
wget http://www.cacert.org/certs/class3.crt &&
openssl x509 -in root.crt -text -fingerprint -setalias "CAcert Class 1 root" \
-addtrust serverAuth -addtrust emailProtection -addtrust codeSigning \
> /etc/ssl/local/CAcert_Class_1_root.pem &&
openssl x509 -in class3.crt -text -fingerprint -setalias "CAcert Class 3 root" \
-addtrust serverAuth -addtrust emailProtection -addtrust codeSigning \
> /etc/ssl/local/CAcert_Class_3_root.pem
make install

8.返回blfs-sources目录并删除包目录

cd $LFS/sources/blfs-sources

rm -rf make-ca-0.8

9.更新证书命令

/usr/sbin/make-ca -g
05-11 09:37