linux - yum 找不到我要安装的包

标签 linux redhat yum

我正在尝试一个简单的命令 sudo yum install SDL2。我知道这个包根据 SDL 网站存在:

Red Hat-based systems (including Fedora) can simply do "sudo yum install SDL2" to get the library installed system-wide, or "sudo yum install SDL2-devel" to get headers and other build requirements ready for compiling your own SDL programs.

但是,当我尝试执行我的命令时,我得到以下信息:

Setting up Install Process
No package SDL2 available.
Error: Nothing to do

我使用的是 Red Hat Enterprise Linux Server 5.3 (Tikanga)。我怎样才能让 yum 找到这个包?

最佳答案

只有 SDL 在 redhat 5.3 上可用

uname -r
2.6.32-573.12.1.el6.centos.plus.x86_64

yum search sdl-devel --verbose
SDL-devel.x86_64 : Files needed to develop Simple DirectMedia Layer   applications
Repo        : base

对于 Fedora 26,SDL2 在 repo fedora 中可用

uname -r
4.11.0-2.fc26.x86_64
dnf --disablerepo="*" --enablerepo="fedora" search sdl2-devel --verbose

SDL2-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo        : fedora

关于linux - yum 找不到我要安装的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45202649/

相关文章:

c++ - 二进制读/写运行时失败

linux - Killall -u 和 RedHat 3

lisp - CentOS 7 上的 Common Lisp

centos - 如何在 CentOS 5.8 上安装 bind 9.9.8 或更高版本

centos - elrepo 存档元数据未列出截至 2018 年 10 月 1 日 0600 UTC 的 kernel-lt

build - 即使是降级,我如何强制 yum 安装?

linux - 如何在Linux上的matlab中检查最大的连续空闲 block ?

Linux while 读循环

linux - 为 arm 编译 oprofile 时出错

linux - 使用 grep 从横幅中获取 IP 和端口