{"id":350,"date":"2025-02-05T22:33:50","date_gmt":"2025-02-06T03:33:50","guid":{"rendered":"https:\/\/dpm.darkhorselinux.org\/?page_id=350"},"modified":"2025-02-14T00:37:28","modified_gmt":"2025-02-14T05:37:28","slug":"don-repo-files","status":"publish","type":"page","link":"https:\/\/dpm.darkhorselinux.org\/?page_id=350","title":{"rendered":"DON Repo Configuration Format"},"content":{"rendered":"\n<p>DON looks for repo files to know which repositoreis to look for files in.<\/p>\n\n\n\n<p>Repo files should look familiar to most enterprise Linux users.  It&#8217;s an INI format configuration file with some expected values:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;repo_name]\nfriendly_name=Official DPM Repository\nbase_url=https:\/\/www.darkhorselinux.org\/dpm_repository\nenabled=1\nweight=0<\/code><\/pre>\n\n\n\n<p>At the top level section declaration is the name of the repository.  These must be unique, and DON will throw an error if they are not.<\/p>\n\n\n\n<p>In each repo section is <code>friendly_name<\/code>, <code>base_url<\/code>, <code>enabled<\/code>, which should all be quite familiar.<\/p>\n\n\n\n<p>Each repo section also has a <code>weight<\/code> value used to weight repos when finding packages or matching dependency rules.  Weights with a higher value are searched first and weight defaults to 0.  This allows the user to allow base system repositories or add-on repositories to take priority when matching dependencies for situations that require that.  When looking for a package to meet a depenency, DPM will find the first package from the repository with the highest weight.<\/p>\n\n\n\n<p>Any number of repositories can be configured in a .repo file.  These files are intended to be located in <code>\/etc\/don.repos.d\/<\/code>.  If a repo filename does not end with <code>.repo<\/code> it will be ignored by DON.<\/p>\n\n\n\n<p>It is highly recommended to have one repository per .repo file unless the repositories are specially related and meant to operate as one whole source, such as a collection of vendor repositories, or lumping together repositories from a common provider.<\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-page pdfprnt-bottom-right\"><a href=\"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F350&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><span class=\"pdfprnt-button-title pdfprnt-button-pdf-title\">[ EXPORT TO PDF ]<\/span><\/a><a href=\"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F350&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>DON looks for repo files to know which repositoreis to look for files in. Repo files should look familiar to most enterprise Linux users. It&#8217;s an INI format configuration file with some expected values: At the top level section declaration is the name of the repository. These must be unique, and DON will throw an &hellip; <a href=\"https:\/\/dpm.darkhorselinux.org\/?page_id=350\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">DON Repo Configuration Format<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-350","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=\/wp\/v2\/pages\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=350"}],"version-history":[{"count":13,"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=\/wp\/v2\/pages\/350\/revisions"}],"predecessor-version":[{"id":502,"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=\/wp\/v2\/pages\/350\/revisions\/502"}],"wp:attachment":[{"href":"https:\/\/dpm.darkhorselinux.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}