简体   繁体   English

如何更新 EC2 服务器上的 RPM?

[英]How to update RPM on an EC2 server?

I'm trying to set up an application on an EC2 server, specifically an Amazon Linux 2 server.我正在尝试在 EC2 服务器上设置应用程序,特别是 Amazon Linux 2 服务器。 I'm trying to install MySQL, because the local version of the app uses it, and when I do I get an error saying the RPM version is incorrect.我正在尝试安装 MySQL,因为应用程序的本地版本使用它,当我这样做时,我收到一条错误消息,指出 RPM 版本不正确。 Specifically, it's rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by mysql80-community-release-el9-1.noarch .具体来说, rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by mysql80-community-release-el9-1.noarch

It's easy enough to find resources on how to update a package installed with RPM, but not so much changing the version of RPM itself.很容易找到有关如何更新安装了 RPM 的 package 的资源,但无需更改 RPM 本身的版本。 How do I do this?我该怎么做呢? Is there a better way to solve this issue and get MySQL installed and running?有没有更好的方法来解决这个问题并安装并运行 MySQL?

Solved - the proper solution was using an older version of MySQL, not getting a newer version of RPM.已解决 - 正确的解决方案是使用旧版本的 MySQL,而不是使用更新版本的 RPM。 I thought I might have made an error during installation.我以为我可能在安装过程中出错了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM