You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在RHEL8上安装iptables-legacy?Fedora仓库配置求助

在RHEL 8上安装iptables-legacy的解决方案

RHEL 8默认软件仓库不包含iptables-legacy包,你提到的Fedora Rawhide是Fedora的开发分支,与RHEL 8存在依赖版本差异,直接添加整个仓库存在系统稳定性风险,推荐优先采用以下两种方法:

方法一:直接下载并安装RPM包

这是最安全的方式,避免引入仓库依赖冲突:

  • 下载目标RPM包:
    wget https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/i/iptables-legacy-1.8.8-3.fc37.aarch64.rpm
    
  • 使用本地安装命令处理依赖并安装:
    dnf localinstall iptables-legacy-1.8.8-3.fc37.aarch64.rpm
    
    若出现依赖缺失,需从同一Rawhide源下载对应依赖包,再一起执行dnf localinstall。

方法二:临时启用Fedora Rawhide仓库(不推荐)

仅在无法通过本地安装解决依赖时使用,安装后需立即禁用仓库:

  1. 创建Rawhide仓库配置文件:
    vi /etc/yum.repos.d/fedora-rawhide.repo
    
  2. 写入以下配置内容:
    [fedora-rawhide]
    name=Fedora Rawhide - aarch64
    baseurl=https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/aarch64/os/
    enabled=0
    gpgcheck=1
    gpgkey=https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/aarch64/os/RPM-GPG-KEY-fedora-rawhide-aarch64
    
  3. 临时启用仓库并安装包:
    dnf install --enablerepo=fedora-rawhide iptables-legacy
    
  4. 安装完成后立即禁用仓库,防止后续更新引入冲突:
    dnf config-manager --set-disabled fedora-rawhide
    

注意:Fedora Rawhide为开发版本,包依赖与RHEL 8差异较大,可能导致系统功能异常,谨慎使用。

内容的提问来源于stack exchange,提问作者JamesWillett

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 17:55:32