大网数据广告活动
服务器运维问答

How can I enable PowerTools repository in RHEL 8?

· 52CE 我爱测

This is a similar question to: How to enable PowerTools repository in CentOS 8? I am trying to to setup a headless web server on my EC2 AWS running on RHEL 8.2. As it is a headless server with no GUI, I just need to the firefox b…

问题原文

原帖链接 · Noose780 · CC BY-SA 4.0

This is a similar question to: How to enable PowerTools repository in CentOS 8?

I am trying to to setup a headless web server on my EC2 AWS running on RHEL 8.2. As it is a headless server with no GUI, I just need to the firefox browser to do some web configurations. With that said, on on the client side, I am using Putty to SSH to the server remotely and Xming to display the browser. I think PowerTools is needed in order to install xorg-x11-apps in RHEL 8.2 in my case to get the display installed in my VM so that I can run my firefox remotely via Putty SSH.

On the Side note:

(On Server Side)

  1. Installed firefox and prerequisite packages
  2. Installed xauth & xorg-x11*
  3. Configured /etc/ssh/ssh_config (FowardX11 yes, FowardX11Trusted yes)
  4. Configured /etc/ssh/sshd_config (X11Forwarding yes)
  5. export DISPLAY=ip:0.0

(On Client Side - PuTTy)

  1. Installed and configured XMing
  2. SSH with X Forwarding via Putty (With X11Forwarding enabled & X Display Location to :0.0)

I installed epel:

$ yum install dnf-plugins-core
$ dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ yum install epel-release

But when I tried to enable PowerTools, I received the following error:

$ dnf config-manager --set-enabled PowerTools
Error: Unknown repo: 'PowerTools'

When I checked the repo list, no PowerTools is installed:

$ yum repolist
repo id                        repo name
epel                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                   Extra Packages for Enterprise Linux Modular 8 - x86_64
rhel-8-appstream-rhui-rpms     Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)
rhel-8-baseos-rhui-rpms        Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)
rhui-client-config-server-8    Red Hat Update Infrastructure 3 Client Configuration Server 8

How do I go around this so that I can enable PowerTools so that I can run the dnf config-manager --set-enabled PowerTools command?

Many thanks!

社区高分解答

原帖链接 · Danila Vershinin · CC BY-SA 4.0

CentOS and RHEL are actually different, despite one being "clone" of the other.

The canonical name for the repository in question is actually CodeReady Linux Builder. However, it is trademarked, and as such, in CentOS it has a different name - PowerTools.

Since you are using RHEL, you should enable CodeReady Linux Builder repository:

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

According to this AWS doc, it can enabled with:

sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-09-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。