https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182012-11-16T12:52:06ZIssue TrackerRudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=130052012-11-16T12:52:06ZMatthieu CERDAmatthieu.cerda@normation.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Discussion</i></li></ul><p>I am a little blocked on this, by default CFE3 uses aptitude if present on the system with a fallback on apt-get, however the only options I found only impact apt-get:</p>
<pre>
// auto-remove breaks on meta packages
APT::Get::AutomaticRemove "0";
APT::Get::HideAutoRemove "1";
</pre>
<p>Cf.: <a class="external" href="http://www.linuxquestions.org/questions/debian-26/how-do-i-get-rid-of-autoremove-717521/">http://www.linuxquestions.org/questions/debian-26/how-do-i-get-rid-of-autoremove-717521/</a></p>
<p>What should we do ? either force apt-get or try to find a workaround ?</p> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=130302012-11-19T10:55:39ZMatthieu CERDAmatthieu.cerda@normation.com
<ul><li><strong>Assignee</strong> set to <i>Jonathan CLARKE</i></li></ul><p>Jon, maybe you could bring some insight here ?</p> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=131512012-11-22T13:03:10ZNicolas PERRONnicolas.perron@normation.com
<ul><li><strong>Target version</strong> changed from <i>2.3.9</i> to <i>2.3.10</i></li></ul> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=135712012-12-09T11:03:36ZJonathan CLARKEjonathan.clarke@normation.com
<ul><li><strong>Assignee</strong> changed from <i>Jonathan CLARKE</i> to <i>Matthieu CERDA</i></li></ul><p>Matthieu CERDA wrote:</p>
<blockquote>
<p>I am a little blocked on this, by default CFE3 uses aptitude if present on the system with a fallback on apt-get, however the only options I found only impact apt-get:</p>
<p>[...]</p>
<p>Cf.: <a class="external" href="http://www.linuxquestions.org/questions/debian-26/how-do-i-get-rid-of-autoremove-717521/">http://www.linuxquestions.org/questions/debian-26/how-do-i-get-rid-of-autoremove-717521/</a></p>
<p>What should we do ? either force apt-get or try to find a workaround ?</p>
</blockquote>
<p>The equivalent option for aptitude is Aptitude::Delete-Unused, see <a class="external" href="http://media.fossclub.de/aptitude/html/en/ch02s05s05.html#configDelete-Unused">http://media.fossclub.de/aptitude/html/en/ch02s05s05.html#configDelete-Unused</a>.</p>
<p>I have tested adding -o "Aptitude::Delete-Unused=false" to aptitude's command line options, and it does indeed not remove any packages other than those explicitly requested (ie, aptitude remove bla will remove bla, but not any automatically installed dependencies).</p>
<p>I agree that this is a good way to avoid this bug, and it is much safer for Rudder not to use this automatic mechanism. As the aptitude manual itself states "As with any automatic process, there is a potential for things to go haywire." (see <a class="external" href="http://media.fossclub.de/aptitude/html/en/ch02s02s06.html">http://media.fossclub.de/aptitude/html/en/ch02s02s06.html</a>). Please implement.</p> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=136532012-12-11T15:28:26ZMatthieu CERDAmatthieu.cerda@normation.com
<ul><li><strong>Status</strong> changed from <i>Discussion</i> to <i>Pending technical review</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset commit:1396b5247e32a5209ae4b241b9f11a0edbc996f9.</p> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=137322012-12-13T14:24:00ZJonathan CLARKEjonathan.clarke@normation.com
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li></ul><p>Looks good to me!</p> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=137572012-12-14T11:16:55ZJonathan CLARKEjonathan.clarke@normation.com
<ul></ul><p>Released in Rudder 2.4.0.</p> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=150562013-02-05T14:17:37ZJonathan CLARKEjonathan.clarke@normation.com
<ul><li><strong>Project</strong> changed from <i>Rudder</i> to <i>24</i></li><li><strong>Category</strong> deleted (<del><i>Techniques</i></del>)</li></ul> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=157082013-03-14T18:50:23ZNicolas PERRONnicolas.perron@normation.com
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li></ul> Rudder - Bug #2949: Rudder might try to remove essential packages on outdated systemshttps://issues.rudder.io/issues/2949?journal_id=386812015-03-11T11:20:17ZBenoƮt PECCATTEbenoit.peccatte@rudder.io
<ul><li><strong>Project</strong> changed from <i>24</i> to <i>Rudder</i></li><li><strong>Category</strong> set to <i>Techniques</i></li></ul>