Unable to download files from custom repo

I have a custom repo that I want to use for downloading specific files from. I do not need the repo to be part of the Content View or Life Cycles. But I do need all hosts in my environment to be able to download files via WGET from this repo.

Right now this is what is happening:

[root@LouisTest-HOST01 ~]# wget https://gp2us1opsfm01-main02a.example.net/pulp/content/TDS-TM/Library/custom/TDS/TDS_-_Ops_-_Custom_-_noarch/tm-jdk-1.8.0.221-1.x86_64
--2024-10-07 17:37:45--  https://gp2us1opsfm01-main02a.example.net/pulp/content/TDS-TM/Library/custom/TDS/TDS_-_Ops_-_Custom_-_noarch/tm-jdk-1.8.0.221-1.x86_64
Resolving gp2us1opsfm01-main02a.example.net (gp2us1opsfm01-main02a.example.net)... 10.0.0.148
Connecting to gp2us1opsfm01-main02a.example.net (gp2us1opsfm01-main02a.example.net)|10.0.0.148|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-10-07 17:37:46 ERROR 404: Not Found.

Any idea why this is not working???

It sounds like a File repository may be what you need?

https://docs.theforeman.org/nightly/Managing_Content/index-katello.html#Managing_Custom_File_Type_Content_content-management

1 Like

Yes that is exactly what I want. Guess it got changed from my old version of Foreman.

You can also use the “republish repository metadata” option in the future if content that should exist is throwing a 404. Content view versions have this option too.

1 Like

I followed this and it worked just as I wanted.
https://docs.theforeman.org/nightly/Managing_Content/index-katello.html#Creating_a_Custom_File_Type_Repository_content-management

1 Like