This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3651|Reply: 6

[linux] Rocky Linux 9 package not found: No match for argument: xxx

[Copy link]
Posted on 7/9/2024 9:16:43 PM | | | |
The reason for the error "No match for argument: ninja-build" is that when you use the dnf command to install the package, it is not found in the repository.

Base repository

Each major release has a set of repositories that are provided by default with the release. Below is a list of commonly used repositories for each major release, including their repository IDs.

Repository
repoid
Rocky 8
Rocky 9
Enabled
BaseOSbaseosYesYesYes
AppStreamappstreamYesYesYes
PowerToolspowertoolsYesNoNo
CRBcrbNoYesNo
HighAvailabilityha (8) / highavailibilityYesYesNo
ResilientStoragers (8) / resilientstorageYesYesNo


CRB is "Code Ready Builder" - PowerTools was a carryover from CentOS, which is still the equivalent of CRB in RHEL. crb will be the repository name going forward in Rocky Linux and other derivatives starting with version 9. Rocky Linux 8 matches CentOS's use of PowerTools in order to be as compatible as possible with what users expect from a rebuild of version 8.

List all repositories with the following command:




The CRB repository is not enabled by default, and the enabling command is as follows:


Try reinstalling the ninja-build package again and it succeeds as shown below:



Reference:The hyperlink login is visible.




Previous:Introduction to GCC, CMake, CMakelist, Make, Makefile, and Ninja
Next:Nginx enables the HTTP/3 protocol based on QUIC
 Landlord| Posted on 7/9/2024 9:54:01 PM |
Extra Packages for Enterprise Linux (EPEL)

Add-on packages (or EPELs) for Linux for Enterprise are Fedora Special Interest Groups that create, maintain, and manage a high-quality suite of add-on packages for Linux for Enterprise Edition, including, but not limited to, Red Hat Linux for Enterprise (RHEL), CentOS, Scientific Linux (SL), Oracle Linux (OL), AlmaLinux (AL), and Rocky Linux (RL).

EPEL packages are typically based on Fedora packages and do not conflict with or replace packages found in the underlying enterprise Linux distribution. EPEL uses many of the same infrastructure as Fedora, including build systems, Bugzilla instances, update managers, image managers, and more.

The Add Repository (Source) command is as follows:


Reference:The hyperlink login is visible.

 Landlord| Posted on 7/10/2025 9:37:19 AM |
Little slag Posted on 2024-7-9 21:54
Extra Packages for Enterprise Linux (EPEL)

Additional software packages (or EPELs) for Enterprise Linux are of particular interest to Fedora ...

For Rocky Linux 8, use the following command:
 Landlord| Posted on 9/5/2025 2:15:41 PM |
Little slag Posted on 2024-7-9 21:54
Extra Packages for Enterprise Linux (EPEL)

Additional software packages (or EPELs) for Enterprise Linux are of particular interest to Fedora ...

The installation package error is as follows:
Errors during downloading metadata for repository 'epel':
  - Curl error (7): Couldn't connect to server forhttps://mirrors.fedoraproject.or ... h=x86_64&infra=$infra&content=pub/rocky [Failed to connect to mirrors.fedoraproject.org port 443: Connection refused]
Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.or ... h=x86_64&infra=$infra&content=pub/rocky [Failed to connect to mirrors.fedoraproject.org port 443: Connection refused]

solution

Edit the /etc/yum.repos.d/epel.repo file as follows:

--View enabled repositories
--dnf repolist all

Reference:The hyperlink login is visible.
 Landlord| Posted on 9/5/2025 2:29:32 PM |
Xiao Zhazha Posted on 2025-9-5 14:15
The installation package error is as follows:

solution

Or:The hyperlink login is visible.
RHEL 8
 Landlord| Posted on 10/16/2025 10:43:13 AM |
Xiao Zhazha Posted on 2025-9-5 14:15
The installation package error is as follows:

solution

Rocky Linux 9

Replace command

Reference:The hyperlink login is visible.
 Landlord| Posted on 10/16/2025 11:55:59 AM |
Zhejiang University EPEL Mirror:The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com