Repository downloand issue on redhat 9.5 restricted VM

You are using the wrong URL, the server has no such file.
See: HTTP 404 - Wikipedia

You are confusing RPM packages and repofiles.
The install command can only apply to RPM packages.
See the above examples for managing the repofiles.

Enable the proxy for that repo as explained above.

That repofile includes multiple reponames, see:

dnf repolist

in dnf list this is what i have "

[root@centreon yum.repos.d]# dnf repolist
Updating Subscription Management repositories.
repo id repo name
centreon-24.10-stable Centreon open source software repository.
centreon-24.10-stable-noarch Centreon open source software repository.
centreon-plugins-24.10-stable Centreon plugins repository.
centreon-plugins-24.10-stable-noarch Centreon plugins repository.
codeready-builder-for-rhel-9-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
rhel-9-for-x86_64-appstream-rpms Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
[root@centreon yum.repos.d]#
"

and I just enabled the proxy for the repo and tried again but I got this :

[root@centreon yum.repos.d]# sudo dnf config-manager --save --setopt=*.proxy=http://host:port/ centreon*
Updating Subscription Management repositories.
[root@centreon yum.repos.d]# dnf install centreon-pack-*
Updating Subscription Management repositories.
Centreon open source software repository. 8.7 kB/s | 1.5 kB 00:00
Centreon open source software repository. 7.9 kB/s | 1.5 kB 00:00
Centreon plugins repository. 11 kB/s | 1.5 kB 00:00
Centreon plugins repository. 6.1 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 63 kB/s | 4.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 41 kB/s | 4.1 kB 00:00
No match for argument: centreon-pack-*
Error: Unable to find a match: centreon-pack-*
[root@centreon yum.repos.d]#

appearenlty i need to install evetything seperately, never mind i found the solution

1 Like

Can you pls give a feedback on your solution? Would be nice for users with same/similar issues.

1 Like

This time, I’m trying to download some GitHub repos, but I can’t seem to access them. I’m wondering if there’s some workaround like you mentioned earlier for the RPM packages and repo files.

Here’s what I typed:

git clone GitHub - centreon/centreon-plugins: Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure. /opt/centreon-plugins

And this is what I got:

fatal: unable to access ‘GitHub - centreon/centreon-plugins: Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.’: Received HTTP code 403 from proxy after CONNECT

I also tried with curl like this:

curl -x http://host:port https://github.com

And got this error:

curl: (56) Received HTTP code 403 from proxy after CONNECT

Anyone know how I can get around this and download the repo?

It looks like the proxy server is blocking access to that domain/page.
Your best option is to contact the network administrator to allow access, otherwise requires utilizing tools that may violate the corporate security policy.

1 Like