如何升级AWS EC2上安装的GPG版本

发布于 2025-01-28 09:14:53 字数 603 浏览 4 评论 0 原文

我需要升级AWS EC2实例上安装的GNU隐私保护罩(GPG)软件包。安装在EC2上的操作系统是Linux(不是Ubuntu)。 当前安装的版本是 2.0.22-5.AMZN2.0.4 ,该版本被编写为GPG网站。 https://gnupg.org/download/index.html

因此,我希望升级它对于2.3版,

我为此目的尝试了以下命令。

  1. $ sudo yum yum更新gnupg
  2. $ sudo yum yum重新安装gnupg
  3. $ sudo yum yum yum每次更新gpg gpg gpg gpg

,我收到一条消息,说

在尝试使用命令编号2重新安装时,标记为更新的包装,同一版本 2.0.22-5.AMZN2.0.4 再次重新固定,实际上不是最新版本。

谁能建议升级到最新版本的过程?

I have a requirement to upgrade the GNU Privacy Guard(GPG) package installed on AWS EC2 instance. The OS installed on EC2 is Linux(Not Ubuntu).
The current version installed is 2.0.22-5.amzn2.0.4,which is depricated as per GPG website. https://gnupg.org/download/index.html

Hence, I wish to upgrade it to version 2.3

I tried the below commands for the purpose.

  1. $ sudo yum update-minimal gnupg
  2. $ sudo yum reinstall gnupg
  3. $ sudo yum update gpg

Everytime, I get a message saying NO PACKAGEs MARKED FOR UPDATE

When tried to reinstall using command number 2, the same version 2.0.22-5.amzn2.0.4 is reinstaled again, which actually isn't the latest version.

Can anyone suggest the process to upgrade to latest version?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

叫思念不要吵 2025-02-04 09:14:53

更新的注释:

Amazon Linux 2上的软件包名称应为GNUPG2。


您应该使用Amazon Linux 2,使用Amazon Linux 2提供的最新软件包版本。
当我写这个答案时,大多数分布仍在使用gnupg 2.2,唯一提供GNUPG 2.3的共同分布是Fedora,您可以在

Updated remark:

The package name on Amazon Linux 2 should be gnupg2.


You should be using Amazon Linux 2, you are using the latest package version provided by Amazon Linux 2.
By the time I write this answer, most distribution are still using gnupg 2.2, the only common distribution providing gnupg 2.3 is Fedora, you can find it at https://fedora.pkgs.org/35/fedora-x86_64/gnupg2-2.3.2-2.fc35.x86_64.rpm.html

In case you really need it now, you may either:

  1. Build it by yourself
  2. Install the rpm package from Fedora via dnf install <rpm-url>
甜尕妞 2025-02-04 09:14:53

在Amazon Linux 2023中,它具有新的安装GPG,但是对于Amazon Linux 2,Repos除GPG 2.0.22旁边没有其他版本。我已经为服务器使用了编译和构建方法,而且工作正常。

  1. 操作系统信息: amzon-linux-2
  2. gpg版本后gpg版本: gpg-version reved

1。步骤:

我忽略了签名验证,您应该牢记它们。

sudo yum -y install bzip2 wget gcc make tar && sudo yum -y groupinstall "Development Tools"

2。安装依赖项
#npth

wget https://gnupg.org/ftp/gcrypt/npth/npth-1.6.tar.bz2
tar jxvf npth-1.6.tar.bz2
./npth-1.6/configure && make && sudo make install

#libgpg-error
wget

tar jxvf libgpg-error-1.46.tar.bz2
./libgpg-error-1.46/configure && make && sudo make install

#libgcrypt

wget https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.1.tar.bz2
tar jxvf libgcrypt-1.10.1.tar.bz2
./libgcrypt-1.10.1/configure && make && sudo make install

#libassuan

wget https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2
tar jxvf libassuan-2.5.5.tar.bz2

#libksba

wget https://gnupg.org/ftp/gcrypt/libksba/libksba-1.6.2.tar.bz2
tar jxvf libksba-1.6.2.tar.bz2
./libksba-1.6.2/configure && make && sudo make install

#installing gpg

wget https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-2.3.8.tar.bz2
tar jxvf gnupg-2.3.8.tar.bz2
./gnupg-2.3.8/configure && make && sudo make install

3。将二进制放置在正确的位置

sudo mv /usr/local/bin/gpg /usr/bin/gpg

In Amazon linux 2023, it comes with new installed gpg, but for Amazon Linux 2 the repos doesn't have other version beside gpg 2.0.22. I have used compile and build method for my servers, and it is working fine.

  1. OS INFO: amzon-linux-2
  2. GPG version after update: gpg-version-updated

1. Steps:

I am ignoring the signature verification, you should keep them in mind.

sudo yum -y install bzip2 wget gcc make tar && sudo yum -y groupinstall "Development Tools"

2. Installing Dependencies
#npth

wget https://gnupg.org/ftp/gcrypt/npth/npth-1.6.tar.bz2
tar jxvf npth-1.6.tar.bz2
./npth-1.6/configure && make && sudo make install

#libgpg-error
wget https://gnupg.org/ftp/gcrypt/gpgrt/libgpg-error-1.46.tar.bz2

tar jxvf libgpg-error-1.46.tar.bz2
./libgpg-error-1.46/configure && make && sudo make install

#libgcrypt

wget https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.1.tar.bz2
tar jxvf libgcrypt-1.10.1.tar.bz2
./libgcrypt-1.10.1/configure && make && sudo make install

#libassuan

wget https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2
tar jxvf libassuan-2.5.5.tar.bz2

#libksba

wget https://gnupg.org/ftp/gcrypt/libksba/libksba-1.6.2.tar.bz2
tar jxvf libksba-1.6.2.tar.bz2
./libksba-1.6.2/configure && make && sudo make install

#Installing gpg

wget https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-2.3.8.tar.bz2
tar jxvf gnupg-2.3.8.tar.bz2
./gnupg-2.3.8/configure && make && sudo make install

3. Placing the binary in correct place

sudo mv /usr/local/bin/gpg /usr/bin/gpg
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文