我需要升级AWS EC2实例上安装的GNU隐私保护罩(GPG)软件包。安装在EC2上的操作系统是Linux(不是Ubuntu)。
当前安装的版本是 2.0.22-5.AMZN2.0.4 ,该版本被编写为GPG网站。 https://gnupg.org/download/index.html
因此,我希望升级它对于2.3版,
我为此目的尝试了以下命令。
- $ sudo yum yum更新gnupg
- $ sudo yum yum重新安装gnupg
- $ 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.
- $ sudo yum update-minimal gnupg
- $ sudo yum reinstall gnupg
- $ 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?
发布评论
评论(2)
更新的注释:
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:
dnf install <rpm-url>
在Amazon Linux 2023中,它具有新的安装GPG,但是对于Amazon Linux 2,Repos除GPG 2.0.22旁边没有其他版本。我已经为服务器使用了编译和构建方法,而且工作正常。
1。步骤:
2。安装依赖项
#npth
#libgpg-error
wget
#libgcrypt
#libassuan
#libksba
#installing gpg
3。将二进制放置在正确的位置
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. Steps:
2. Installing Dependencies
#npth
#libgpg-error
wget https://gnupg.org/ftp/gcrypt/gpgrt/libgpg-error-1.46.tar.bz2
#libgcrypt
#libassuan
#libksba
#Installing gpg
3. Placing the binary in correct place