Error no matching repo to modify powertools

error no matching repo to modify powertools How do I enable PowerTools repository? What is PowerTools repo? How do I install PowerTools? Is Remi repo safe? What is EPEL repository? How do I enable PowerTools repository? How To Enable CentOS 8 PowerTools Repo Log in to the server and switch to the root user. […]

Содержание

  1. error no matching repo to modify powertools
  2. How do I enable PowerTools repository?
  3. What is PowerTools repo?
  4. How do I install PowerTools?
  5. Is Remi repo safe?
  6. What is EPEL repository?
  7. How to enable PowerTools Repository on Rocky Linux 8
  8. Install DNF plugins package
  9. Install EPEL
  10. Enable PowerTools repository on Rocky Linux 8
  11. Update command
  12. Check the Added repository on Rocky Linux
  13. ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist
  14. Best Answer
  15. Answers
  16. ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist
  17. Best Answer
  18. Answers
  19. How to Install OpenStack on CentOS 8 with Packstack
  20. Minimum System requirements for OpenStack
  21. Step 1) Set the hostname and update /etc/hosts file
  22. Step 2) Disable Network Manager and Configure Network using network-scripts
  23. Step 3) Enable OpenStack repositories and install packstack utility
  24. Step 4) Generate answer file and install openstack using packstack
  25. Step 5) Access Horizon Dashboard
  26. Step 6) Test and verify OpenStack installation by launching an instance
  27. 31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

  1. How do I enable PowerTools repository?
  2. What is PowerTools repo?
  3. How do I install PowerTools?
  4. Is Remi repo safe?
  5. What is EPEL repository?

How To Enable CentOS 8 PowerTools Repo

  1. Log in to the server and switch to the root user.
  2. Edit the PowerTools repo file. # vim /etc/yum.repos.d/CentOS-PowerTools.repo. # vim /etc/yum.repos.d/CentOS-PowerTools.repo.
  3. Change enabled=0 to enabled=1.
  4. Save and close the file. :wq. :wq.
  5. The PowerTools repo is now enabled.

The PowerTools repository is not enabled by default on CentOS 8 / RHEL 8 Linux. This repository contains a number of packages required as dependencies when installing other applications, and mostly building applications from source code. Some of the Packages in PowerTools are: device-mapper-devel.

To get started, you need to head to PowerToys from GitHub and download and install the MSI setup file near the bottom of the page. Once you go through the basic install wizard, click the PowerToys logo in the notification area on the taskbar. That will open up the app and you can choose which ones you want to enable.

Is Remi repo safe?

The «remi-safe» repository is enabled by default, as it is really safe. Available packages in «remi» and others «remi-*» repositories override those in official repository.

What is EPEL repository?

The EPEL repository is an additional package repository that provides easy access to install packages for commonly used software. . To put it simply the goal of this repo was to provide greater ease of access to software on Enterprise Linux compatible distributions.

Источник

If you are using the EPEL repository then also enable PowerTools repo on Rocky Linux server or desktop to install developer-related software packages. The command given in this tutorial can also be used for CentOS8 and RHEL8.

What is PowerTools?

PowerTools is a repository that is available for RedHat and its derivative Linux to download and install developer-related packages, tools, and libraries. Also, many software packages available in EPEL repo sometimes require PowerTools repo to get installed properly. This repository mainly requires when you want to build some applications using their source code.

Here are some packages available to install using the PowerTools repo:

  • clucene-core-devel
  • zziplib-devel
  • xmlrpc-c-c++
  • xmltoman.noarch
  • boost -numpy
  • turbojpeg-devel
  • xz-lzma-compat
  • transfig.x86_64
  • tracker-miners
  • xcb-util-devel
  • xorg-x11-util-macros.noarch
  • xorg-x11-xkb-utils-devel
  • xmlsec1-openssl-devel
  • xmlsec1-gcrypt
  • And others…

Install DNF plugins package

Although it would already be installed on your Rocky system, however still run the below command to make sure it is there-

Install EPEL

If you are about to use PowerTools then I would recommend you to also enable EPEL because many time installing some software or building some package from its source code requires some dependencies that are available in EPEL, thus simply run-

Now, finally, get PowerTools on your Rocky Linux/CentOS/AlmaLinux/RHEL 8 using the below-given command-

Update command

To flush the system cache and let it recognize the newly added repo of PowerTools, run once the update command before installing any package.

Check the Added repository on Rocky Linux

Let’s check what are the Repos are on our Linux system to download various packages using the command line package manager Yum or DNF.

In the below screenshot you can see we have four key repositories on our Rocky Linux that are –

Источник

ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist

Hello,
I’m trying to setup my RHEL 8.5 VM machine.

NAME=»Red Hat Enterprise Linux VERSION=»8.5 (Ootpa)

When I run
./ready-for.sh —fix-missing —install LFD201

I’m getting error
No matching repo to modify: powertools.

I have checked several posts related to this issue, till I find post in Red Hat forum stating that «PowerTools is a CentOS repository. On RHEL 8 we have the CodeReady Builder repository».

This was the first error, the second error as well is

Some packages didn’t install: collectl

I’m not sure if it is related to the powertools or it is another error.

Appreciate your suggestion to resolve.

Best Answer

It’s a warning you can ignore. It was something from RHEL 7 that should have been fixed. Yes you should use the CodeReady Builder repo. I’ll tell the ready-for.sh maintainer this has not been fixed. «collectl» is in the EPEL repo which you should make sure to install as a bunch of stuff is in there. The ready-for.sh script should have installed that I believe but you can always get it manually

Answers

Seems also I’m having trouble with «collectl» in RHEL 8.5

when I run
yum —disablerepo=»*» —enablerepo=»epel» list available | grep collectl
It displays nothing

I have checked this link and seems doesn’t exist for version 8 while this link shows it exists in version 7

hmm. I just checked on my system which is a true RHEL 8 (not CentOS) and I found that I have installed the el7 package — it seems to work just fine. I did not bother to check the version before, just that dnf info showed it as EPEL. I don’t think you even need collectl for this course, it is in the list for other courses so it is being a little over ambitious. In other words you can install it but you are fine anyway

Thanks Dr. Jerry for instant & continuous help.

I have tried multiple things till it worked, just sharing my experience that might be useful to ready-for.sh maintainer.

This Linux family is important for me as it is used by my corporate and is most commonly used in my region.

I installed «Fedora 35 Workstation»: Script worked fine without an issue.

I installed «CentOS Stream 8 20220414»: As CentOS 8 got removed from all repositories by end of year 2021, It issued two errors for these packages:

I had Red Hat Enterprise Linux 8.5: I got the following two error:

texinfo is also a «Powertools» package on centos-8-stream; however in the LF VM it is turned off because red hat has done a sloppy job and when it is turned on it sometimes causes dependency screw ups. If you turn it on and just install texinfo it should work.

As far as RHEL 8 in general, RHEL 8 is hit or miss for ready-for.sh because we have almost no students using it in introductory courses at least, as it is not free (although you can get free subscriptions for personal use) and there are tools such as pkgs.org which we use which do not support it. So rather than turn off support, we just don’t maintain it well. This is the first case I can remember over a number of years of people raising issues about ready-for.sh and RHEL 8, so I’m sorry if it is a little frustrating.

You are actually very unlikely to need texinfo, and why it is a required dependency is something frankly I cannot remember. These package lists grow with time, and as distros change sometimes they get somewhat stale. Usually having more packages installed that you need doesn’t screw things up, but occasionally you get these kinds of irritations.

Источник

ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist

Hello,
I’m trying to setup my RHEL 8.5 VM machine.

NAME=»Red Hat Enterprise Linux VERSION=»8.5 (Ootpa)

When I run
./ready-for.sh —fix-missing —install LFD201

I’m getting error
No matching repo to modify: powertools.

I have checked several posts related to this issue, till I find post in Red Hat forum stating that «PowerTools is a CentOS repository. On RHEL 8 we have the CodeReady Builder repository».

This was the first error, the second error as well is

Some packages didn’t install: collectl

I’m not sure if it is related to the powertools or it is another error.

Appreciate your suggestion to resolve.

Best Answer

It’s a warning you can ignore. It was something from RHEL 7 that should have been fixed. Yes you should use the CodeReady Builder repo. I’ll tell the ready-for.sh maintainer this has not been fixed. «collectl» is in the EPEL repo which you should make sure to install as a bunch of stuff is in there. The ready-for.sh script should have installed that I believe but you can always get it manually

Answers

Seems also I’m having trouble with «collectl» in RHEL 8.5

when I run
yum —disablerepo=»*» —enablerepo=»epel» list available | grep collectl
It displays nothing

I have checked this link and seems doesn’t exist for version 8 while this link shows it exists in version 7

hmm. I just checked on my system which is a true RHEL 8 (not CentOS) and I found that I have installed the el7 package — it seems to work just fine. I did not bother to check the version before, just that dnf info showed it as EPEL. I don’t think you even need collectl for this course, it is in the list for other courses so it is being a little over ambitious. In other words you can install it but you are fine anyway

Thanks Dr. Jerry for instant & continuous help.

I have tried multiple things till it worked, just sharing my experience that might be useful to ready-for.sh maintainer.

This Linux family is important for me as it is used by my corporate and is most commonly used in my region.

I installed «Fedora 35 Workstation»: Script worked fine without an issue.

I installed «CentOS Stream 8 20220414»: As CentOS 8 got removed from all repositories by end of year 2021, It issued two errors for these packages:

I had Red Hat Enterprise Linux 8.5: I got the following two error:

texinfo is also a «Powertools» package on centos-8-stream; however in the LF VM it is turned off because red hat has done a sloppy job and when it is turned on it sometimes causes dependency screw ups. If you turn it on and just install texinfo it should work.

As far as RHEL 8 in general, RHEL 8 is hit or miss for ready-for.sh because we have almost no students using it in introductory courses at least, as it is not free (although you can get free subscriptions for personal use) and there are tools such as pkgs.org which we use which do not support it. So rather than turn off support, we just don’t maintain it well. This is the first case I can remember over a number of years of people raising issues about ready-for.sh and RHEL 8, so I’m sorry if it is a little frustrating.

You are actually very unlikely to need texinfo, and why it is a required dependency is something frankly I cannot remember. These package lists grow with time, and as distros change sometimes they get somewhat stale. Usually having more packages installed that you need doesn’t screw things up, but occasionally you get these kinds of irritations.

Источник

How to Install OpenStack on CentOS 8 with Packstack

Openstack is a free and open-source private cloud software through which we can manage compute, network and storage resources of our data center with an ease using a single dashboard and via openstack cli commands. In this article we will demonstrate on how to install Openstack on a CentOS 8 system with packstack. Packstack is a command line utility which deploy different components of openstack using puppet modules.

Openstack deployment with packstack is generally used for POC (proof of concept) purpose, so it is not recommended to use packstack for production deployment. Use TripleO method to deploy openstack in production environment.

Minimum System requirements for OpenStack

  • Minimal CentOS 8
  • Dual core Processor
  • 8 GB RAM
  • 40 GB free disk space
  • Stable Internet Connection
  • At least one nic card

My Lab setup details:

  • Hostname – openstack.example.com
  • IP – 192.168.1.8
  • Flat Network – 192.168.1.0/24

Let’s deep dive into the openstack installation steps,

Step 1) Set the hostname and update /etc/hosts file

Open the terminal and set the hostname using the following hostnamectl command,

Run below echo command to append hostname entry in /etc/hosts file.

Step 2) Disable Network Manager and Configure Network using network-scripts

Network-Manager is the default tool in CentOS 8 to manager networks but for Openstack we must disable it because openstack networking will not work properly with network-manager. In place of network manager, we must install native network-scripts.

To disable network-manager run the following commands,

Run following dnf command to install native network-scripts

Once the network-scripts package is installed then we can manage networking (ifcfg-* files) using native network.service

Now let’s configure IP address in ifcfg-enp0s3 file and start network service

Save and exit the file and then start network service using following command,

Now verify whether IP is assigned to NIC (enp0s3) using ip command,

Step 3) Enable OpenStack repositories and install packstack utility

At time of writing this article, ussuri openstack was available, so run the following command to configure its repositories

Now installed all the available updates and reboot your system,

Once the system is available after the reboot, execute following dnf command to install packstack utility

Step 4) Generate answer file and install openstack using packstack

Use packstack command to generate the answer file,

Once the answer file is generated, edit the following parameters using vi editor,

Save and exit the file.

Replace the interface name (enp0s3) as per your setup.

Note: Default Tenant network type drive is set as “geneve” and default neutron type driver is set as “geneve and flat”. If wish to change these default parameters, then update following lines in answer file. In this demonstration i am not going to update these parameters.

Run the following command to initiate the openstack deployment using answer file.

Deployment will take around 20 to 30 minutes depending on your system’s hardware and internet speed. Once it is installed successfully, we will get the following:

Now verify whether IP from enp03 interface is assigned to bridge br-ex and also confirm whether interface enp0s3 is added as a port in ovs-bridge.

Run the following commands:

Perfect, above output confirms that installation was successful, and networking is also configured as per the answer file.

Step 5) Access Horizon Dashboard

Now try to login to Horizon dashboard. URL is already specified in the above output, in my case url is http://192.168.1.8/dashboard , Use the user name as admin and password that we specify in answer file.

We also refer the file “ keystonerc_admin ” for credentials

Now, let’s test this openstack deployment by launching an instance.

Step 6) Test and verify OpenStack installation by launching an instance

Before launching an instance in openstack, first we must create networks and router and glance image. So, let’s first create external network in admin tenant using following neutron commands,

Now add a subnet of your flat network to external network by running following neutron command.

Create a router by executing the following neutron command and set its gateway using external network

Create private network and attach a subnet to it. Run the following neutron command,

Add pvt_net interface to router “ dev_router ” using beneath neutron command,

Now Download Cirros image and then upload it to glance

Now head back to horizon dashboard and verify the network topology

Perfect, above confirms that private and external network have been setup correctly along with the router.

One final step before creating a vm, update the default security group, add icmp and ssh ingress rules, click on “Security Groups” under the network Tab, Click on Manage Rules and then click on “Add rule

Similarly add rule for ssh

Now all the requirements for launching an openstack instance are fullfilled. Click on Compute Tab and then Choose Instances option and click on “Launch Instance

Once VM is launched successfully then we will get something like below,

Now Associate floating IP to instance (demo_vm), Under the “Actions” Tab, Choose “Associate Floating IP

Now Choose IP or Click on + sign to get floating IP from external network and then associate it

Once IP is associated to the VM then floating IP will be displayed for under ‘ IP Address ‘ option, example is shown below

Now try to access this demo_vm using the floating ip, use cirros as a user and ‘ gocubsgo ’ as password

Great, above output confirms that we can access our instance via floating ip. This concludes the article; I hope this tutorial helps to deploy openstack on CentOS 8 system. Please don’t hesitate to share your feedback and comments.

31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

when issuing command “dnf config-manager –enable PowerTools” it throws an error “No such command: config-manager. Please use /usr/bin/dnf –help

]# dnf config-manager –enable PowerTools
No such command: config-manager. Please use /usr/bin/dnf –help
It could be a DNF plugin command, try: “dnf install ‘dnf-command(config-manager)’”
[[email protected]

Run the following dnf command to fix the above said issue:

$ sudo dnf install ‘dnf-command(config-manager)’

try with powertools instead of “PowerTools”

[[email protected] network-scripts]# dnf config-manager –enable PowerTools
Error: No matching repo to modify: PowerTools.
[[email protected] network-scripts]# dnf config-manager –enable powertools
[[email protected] network-scripts]# dnf install -y centos-release-openstack-victoria
CentOS Linux 8 – PowerTools 5.8 MB/s | 2.0 MB 00:00
Dependencies resolved.

In case you have latest and updated CentOS stream then use below command

# dnf config-manager –set-enabled powertools

Hi Sir,
I get an issue below :

ERROR : Failed to run remote script, stdout: skipping creation of hiera.yaml symlink

stderr: Warning: Permanently added ‘10.10.69.100’ (ECDSA) to the list of known hosts.
+ trap t ERR
+ [[ -f /etc/hiera.yaml ]]
+ echo ‘skipping creation of hiera.yaml symlink’
++ puppet config print hiera_config
+ sed -i ‘s;:datadir:.*;:datadir: /var/tmp/packstack/d7eabbcf57df47b6b283fc89caeb47be/hieradata;g’ /etc/puppet/hiera.yaml
sed: can’t read /etc/puppet/hiera.yaml: No such file or directory
++ t
++ exit 2

How to solve it?

Hi Sir,
I was able to access this demo_vm using cirros as user with floating IP.
But from demo_vm, the following fails.
$ ping 8.8.8.8
How to solve it?

Add the DNS Sever IP while creating the external network subnet.

Thank you
I added a DNS server to the external network subnet, but it doesn’t work.
Other conditions are as follows.
Ping from demo_vm
to: FloatingIP -> Success
to: GestOS IP -> Success
(Use VirtualBox and bridge connection)
to: Host Default GW IP -> Failure
How to solve it?

I’m sorry.
In another VirtualBox environment, ping 8.8.8.8 was successful.

@Manusia:
I had the same error and now i found the issue
There is a problem with epel and the hiera package (hiera-3.6.0-2.el8)
The centos-openstack-ussuri repo provides hiera-3.6.0-1.el8

A look at the filelist in rpm shows that hiera-3.6.0-2.el8 didn’t include:
/etc/puppet
/etc/puppet/hiera.yaml

So remove hiera, disable epel and reinstall openstack-packstack:
dnf remove hiera -y
dnf config-manager –disable epel
dnf install -y openstack-packstack

when i uninstall hiera, i cannot reinstall packtack. I’m on the openstack-victoria. Can you help me with this problem?

First of all, this is a great reference document for Openstack installation on CentOS. I followed every step in the document and was successful. However, ran into some issue during last few steps.

Can you please help me with some trigger or suggestion to solve this issue? Thanks a lot in advance.

Copying Puppet modules and manifests [ DONE ]
Applying 192.168.0.3_controller.pp
192.168.0.3_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.0.3_controller.pp
Error: Facter: error while resolving custom fact “rabbitmq_nodename”: undefined method `[]’ for nil:NilClass
You will find full trace in log /var/tmp/packstack/20200723-225316-7yvkznxa/manifests/192.168.0.3_controller.pp.log
Please check log file /var/tmp/packstack/20200723-225316-7yvkznxa/openstack-setup.log for more information
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.0.3. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.3/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
[[email protected]

Please check controller.pp.log and openstack-setup.log, You might get the clue there. I would suggest give a try one more time.

Thanks a lot for helping me for previous query. Earlier problem fixed, now I am able to create VM instance successfully, but I can’t connect from Virtual box machine (CentOS machine) and outside network.

Furthermore, there are no route 172.24.1.0/24 on my Virtual box machine (CentOS machine).

Is Virtual box IP address and External Network should be on same subnet? I tried that and that still not worked.

It seems Neutron not properly configured.

Please suggest me how to fix this (Using same commands provided in the document).

Virtual box IP address: 192.168.0.104 (Subnet = 192.168.0.0/24)
Private Network: 10.20.1.0/24
External Network: 172.24.1.0/24

================
CLI Commands:
================
source keystonerc_admin
neutron net-create external_network –provider:network_type flat –provider:physical_network extnet –router:external
neutron subnet-create –name public_subnet –enable_dhcp=True –allocation-pool=start=172.24.1.210,end=172.24.1.230 –gateway=172.24.1.1 external_network 172.24.1.0/24
neutron router-create dev-router
neutron router-gateway-set dev-router external_network
neutron net-create pvt_net
neutron subnet-create –name pvt_subnet pvt_net 10.20.1.0/24
neutron router-interface-add dev-router pvt_subnet

(keystone_admin)]# ifconfig -a
br-ex: flags=4163 mtu 1500
inet 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 33024 bytes 27440713 (26.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29794 bytes 17763062 (16.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

br-int: flags=4098 mtu 1500
ether 86:09:c0:60:00:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099 mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:49:2d:fa:d2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s3: flags=4163 mtu 1500
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 38913 bytes 28292425 (26.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38573 bytes 21086877 (20.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2708229 bytes 2168061258 (2.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2708229 bytes 2168061258 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ovs-system: flags=4098 mtu 1500
ether 22:df:63:8b:31:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

(keystone_admin)]# ip route show
default via 192.168.0.1 dev br-ex
169.254.0.0/16 dev enp0s3 scope link metric 1002
169.254.0.0/16 dev br-ex scope link metric 1004
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.104
[[email protected]

Источник

Background

Playing around with installing applications on our Linux box running CentOS.

It is a recently rebuilt Linux box and it is running CentOS version 8.

Ran into a little error in the middle of the consequent application installs.

We will talk about the error in this post.

Error Image

Error Text

Error: No matching repo to modify: PowerTools.

Scenario

DNF

Config-Manager

Set-Enabled
PowerTools
Image
Text
sudo dnf -y config-manager --set-enabled PowerTools

TroubleShooting

Outline

  1. DNF
    • DNF repolist
  2. CentOS
    • Version

DNF

DNF repolist

Syntax

dnf repolist

Sample

dnf repolist

Output

Output – Image

Output – Text
>dnf repolist
repo id                                                   repo name
appstream                                                 CentOS Linux 8 - AppStream
baseos                                                    CentOS Linux 8 - BaseOS
epel                                                      Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                              Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                                    CentOS Linux 8 - Extras
google-chrome                                             google-chrome
>

CentOS

Version

Let us confirm the major and minor version numbers of the CentOS install.

Syntax

hostnamectl

Sample

hostnamectl

Output

Output – Image

Output – Text
>hostnamectl
Static hostname: labLinux
Icon name: computer-desktop
Chassis: desktop
Machine ID: 89bc2e35a31440b893fc1a04ba918e49
Boot ID: fcce2f3eaef74154ba4c22e3f6875bd6
Operating System: CentOS Linux 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-305.7.1.el8_4.x86_64
Architecture: x86-64
>

Explanation

  1. Operating System
    • CentOS Linux 8
  2.  Kernel
    • Kernel: Linux 4.18.0-305.7.1.el8_4.x86_64
      • el8_4.x86_64
      • Marketing Version Major:- 8
      • Marketing Version Minor:- 4

Remediation

Outline

  1. CentOS.Org
    • Naming Change
  2. DNF
    • DNF Config-Manager > Set-Enabled > PowerTools

CentOS.Org

Naming Change

Thankfully, the CentOS.org organization has post confirming and detailing the naming change.

It is available at link.

Image

Text

Recently we’ve done work so that CentOS Stream operates as a distribution independently of CentOS Linux ( Link )

Continuing this work, we made some changes in CentOS Linux 8.3.2011 that make the process of migrating from CentOS Linux to CentOS Stream easier. This meant that we needed to change the name of some files in /etc/yum.repos.d and update repoids to match.

As a good practice with any update, if you have made any local customizations to files in /etc (including the .repo files), you will want to compare with any .rpmnew files that are created for you.

You may also want to update any scripts that you have that specify repoids using the —enablerepo= or —disablerepo= flags

Repoid (8.2.2004 and before) Repoid (8.3.2011 and later)
BaseOS baseos
AppStream appstream
PowerTools powertools
centosplus plus
HighAvailability ha
base-debuginfo debuginfo
Devel devel
BaseOS-source baseos-source
AppStream-source appstream-source
centosplus-source plus-source
base-debuginfo debuginfo

DNF

Config-Manager

Set-Enabled
PowerTools
Image

Text
sudo dnf -y config-manager --set-enabled powertools

Validation

DNF

repolist

dnf repolist

Syntax
dnf repolist

Sample
dnf repolist

Image
Text
> dnf repolist
repo id             repo name
appstream           CentOS Linux 8 - AppStream
baseos              CentOS Linux 8 - BaseOS
epel                Extra Packages for Enterprise Linux 8 - x86_64
epel-modular        Extra Packages for Enterprise Linux Modular 8 - x86_64
extras              CentOS Linux 8 - Extras
google-chrome       google-chrome
powertools          CentOS Linux 8 - PowerTools
>
Explanation
  1. Running “dnf repolist” reveals we now have
    • repo id
      • powertools
    • repo name
      • CentOS Linux 8 – PowerTools

References

  1. CentOS.Org
    • CentOS-8 (2011) Release Notes
      • Manuals / ReleaseNotes / CentOS8.2011
        Link
  2. FedoraProject.Org
    • System Administrators Guide
      • Adding, Enabling, and Disabling a DNF Repository
        Link
  3. 2DayGeek
    • Prakash Subramanian
      • How to list the Enabled/Active Repositories in Linux
        Link

Hi community, I’m trying to enable PowerTools on my RHEL 8 workstation. So I typed dnf config-manager --set-enabled PowerTools, but got this error message:

[root@rhel ~]# dnf config-manager --set-enabled PowerTools
Updating Subscription Management repositories.
Error: No matching repo to modify: PowerTools.

I’ve searched on Google about RHEL 8/CentOS 8, all posts I found are mentioning this method. But unfortunately this did not work in my case. Can I have your help please?


Here are all available groups:

[root@rhel ~]# dnf grouplist
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                                                                         255  B/s | 4.1 kB     00:16    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                                                                       31 kB/s | 3.7 MB     02:00    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                                                                      276  B/s | 4.5 kB     00:16    
Available Environment Groups:
   Server with GUI
   Server
   Minimal Install
   KDE Plasma Workspaces
   Custom Operating System
   Virtualization Host
Installed Environment Groups:
   Workstation
Installed Groups:
   Development Tools
   GNOME Desktop Environment
   Hardware Support
Available Groups:
   Legacy UNIX Compatibility
   Smart Card Support
   RPM Development Tools
   Headless Management
   Container Management
   .NET Core Development
   System Tools
   Scientific Support
   Security Tools
   Graphical Administration Tools
   Network Servers
   Fedora Packager
   Xfce
   Games and Entertainment
   Graphical Internet
   KDE (K Desktop Environment)
   Sound and Video

And what I’ve enabled:

[root@rhel ~]# dnf repolist
Updating Subscription Management repositories.
repo id                                                                             repo name
code                                                                                 Visual Studio Code
codeready-builder-for-rhel-8-x86_64-rpms      Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel                                                                                  Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                                                 Extra Packages for Enterprise Linux Modular 8 - x86_64
google-chrome                                                             google-chrome
raven                                                                                Raven's RPM repo for el8-x86_64 - base
rhel-8-for-x86_64-appstream-rpms                      Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                             Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
rpmfusion-free-updates                                             RPM Fusion for EL 8 - Free - Updates

Skip to content

Как включить репозиторий PowerTools на компьютере с ОС CentOS 8 / RHEL 8 Linux? Репозиторий PowerTools не включен по умолчанию в CentOS 8 / RHEL 8 Linux. Этот репозиторий содержит ряд пакетов, необходимых в качестве зависимостей при установке других приложений и в основном сборке приложений из исходного кода.

Вот некоторые из пакетов в PowerTools:

  • device-mapper-devel
  • kmod-devel
  • lame-devel
  • maven-common
  • mariadb-common
  • mingw64 and mesa packages
  • opencv
  • perl-*
  • parted-devel
  • xorg-x11-server-devel
  • and many others

Чтобы иметь возможность включить PowerTools Repository на CentOS 8 / RHEL 8 из интерфейса командной строки. Сначала установите пакет плагинов DNF:

sudo dnf -y install dnf-plugins-core

Установите EPEL-репозиторий — PowerTools-репозиторий и EPEL-репозиторий являются лучшими друзьями. Так что включите репозиторий EPEL.

sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Включить репозиторий PowerTools в CentOS 8 / RHEL 8:

sudo dnf config-manager --set-enabled powertools

Подтвердите, что он включен:

$ sudo dnf repolist
Last metadata expiration check: 0:00:44 ago on Fri 24 Apr 2020 09:00:56 PM CEST.
repo id                                                 repo name                                                                                 status
AppStream                                               CentOS-8 - AppStream                                                                      4,830
BaseOS                                                  CentOS-8 - Base                                                                           1,661
PowerTools                                              CentOS-8 - PowerTools                                                                     1,456
ceph-nautilus                                           Ceph=Nautilus                                                                               119
*epel                                                   Extra Packages for Enterprise Linux 8 - x86_64                                            5,335
extras                                                  CentOS-8 - Extras                                                                            15

Теперь вы можете устанавливать пакеты из репозитория PowerTools в системе CentOS 8 / RHEL 8 Linux.


Мы используем файлы cookie на нашем веб-сайте, чтобы предоставить вам наиболее релевантный опыт, запоминая ваши предпочтения и повторные посещения. Нажимая «Принять все», вы соглашаетесь на использование ВСЕХ файлов cookie. Однако вы можете посетить «Настройки файлов cookie», чтобы предоставить контролируемое согласие.

Понравилась статья? Поделить с друзьями:
  • Error no matching distribution found for torch
  • Error not supported between instances of nonetype and int
  • Error no matching distribution found for tensorflow
  • Error not support wireless lan in system
  • Error not set start date generation please call перевод