如何在 Docker Ubuntu 映像中手动安装和检查 Libksba8 的版本

如何在 Docker Ubuntu 映像中手动安装和检查 Libksba8 的版本

我拉取 UBUNTU docker 镜像,运行下载的 ubuntu 镜像,然后运行以下命令 dpkg -s libksba8来检查 docker ubuntu 系统内 libksba8 的当前版本。

当我运行上述命令时,输出如下所示

dpkg-query: package 'libksba8' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.

因此,我从源存档文件中下载 libksba8 库,然后像下面这样手动安装它

  • 下载文件wget https://www.gnupg.org/ftp/gcrypt/libksba/libksba-1.6.3.tar.bz2
  • 提取下载的文件tar xjf libksba-1.6.3.tar.bz2
  • 进入解压的文件夹cd libksba-1.6.3
  • 配置包./configure
  • 构建包make
  • 安装库make install

安装后,我再次检查 libksba8 版本,然后得到下面这样的信息,但我想问的是,我安装了版本 libksba-1.6.3,为什么下面的命令显示版本 1.6.0-2ubuntu0.2。

root@93a9456ee052:/app/libksba-1.6.3# dpkg -s libksba8
Package: libksba8
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 302
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Multi-Arch: same
Source: libksba
Version: 1.6.0-2ubuntu0.2
Depends: libc6 (>= 2.14), libgpg-error0 (>= 1.14)
Description: X.509 and CMS support library
 KSBA (pronounced Kasbah) is a library to make X.509 certificates as
 well as the CMS easily accessible by other applications.  Both
 specifications are building blocks of S/MIME and TLS.
 .
 KSBA provides these subsystems: ASN.1 Parser, BER Decoder, BER
 Encoder, Certificate Handling and CMS Handling.
 .
 This package contains the runtime library files.
Homepage: https://www.gnupg.org/related_software/libksba/
Original-Maintainer: Debian GnuTLS Maintainers <[email protected]>

相关内容