<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6441&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] How to assign apt priority to cdrom repository.]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6441</link>
		<description><![CDATA[The most recent posts in [SOLVED] How to assign apt priority to cdrom repository..]]></description>
		<lastBuildDate>Fri, 23 Feb 2024 15:49:40 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[[SOLVED] How to assign apt priority to cdrom repository.]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48397#p48397</link>
			<description><![CDATA[<p>There&#039;s plenty of results online on how to change priority of a local repository, but my searches turned up nothing for how to do it regarding packages on a &quot;cdrom&quot; (actually a DVD ISO).</p><p>In the end it was relatively simple: identify the origin by checking the policy output, e.g: <span class="bbc">apt-cache policy | egrep -C1 &#039;origin|cdrom&#039;</span></p><div class="codebox"><pre><code># apt-cache policy | egrep -C1 &#039;origin|cdrom&#039;
...
 500 cdrom://[Devuan GNU/Linux 4.0 chimaera amd64 - desktop 20211012] chimaera/main amd64 Packages
     release c=main,b=amd64
     origin Devuan GNU/Linux 4.0 chimaera amd64 - desktop 20211012
...</code></pre></div><p>Then create a file in <span class="bbc">/etc/apt/preferences.d</span> directory (or edit /etc/apt/preferences file), such as:</p><div class="codebox"><pre><code>Explanation: cdrom
Package: *
Pin: origin &quot;Devuan GNU/Linux 4.0 chimaera amd64 - desktop 20211012&quot;
Pin-Priority: 600</code></pre></div><p>The double quotes are optional, but it must be double or nothing (single quotes do not work).<br />The Explanation line is a comment, so can contain a brief description of what/why.</p><p>See <a href="https://manpages.debian.org/bookworm/apt/apt_preferences.5.en.html" rel="nofollow">man apt_preferences</a> for filename rules, then jump to &quot;How APT Interprets Priorities&quot; for an explanation of priority numbers.</p><p>Note that there&#039;s a difference between the origin of a repository, and a package&#039;s &quot;Origin&quot; value; (the latter would use <span class="bbc">Pin: release o=Debian</span> or <span class="bbc">Pin: release o=Devuan</span>).</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Fri, 23 Feb 2024 15:49:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48397#p48397</guid>
		</item>
	</channel>
</rss>
