<p dir="auto">At <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2506501651" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5157" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5157/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5157">#5157</a>, this <code class="notranslate">apt-get clean</code> was removed. The man page describes this command as follows:</p>
<blockquote>
<p dir="auto">clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.</p>
</blockquote>
<p dir="auto">Normally I wouldn't have thought much about it, but what tickled me was that the comment at the top still says "then clean up to minimize image size". So this left me wondering whether I should update the comment or re-introduce the command. I couldn't see in the PR conversation anything about why it was removed, so I thought I'd start by proposing the re-introduction.</p>
<p dir="auto">I didn't go as far as adding the <code class="notranslate">rm -rf /var/lib/apt/lists/*</code> line as I don't feel comfortable messing up with APT internals.</p>
<p dir="auto">Thoughts? Perhaps <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kcne/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kcne">@kcne</a> remembers?</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6464'>https://github.com/openstreetmap/openstreetmap-website/pull/6464</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6464/commits/0e558d5ee718b7725e6f2ea0edfce3dc08b2dac1" class="commit-link">0e558d5</a> Clear out apt repo after installing packages</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6464/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6464/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557">Dockerfile</a>
(49)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6464.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6464.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6464.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6464.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6464">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKJFPO3CN6MNTBN6F33Y5KADAVCNFSM6AAAAACJ4D2B56VHI2DSMVQWIX3LMV43ASLTON2WKOZTGU2DAMJWHA4TKMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJ2ZVRJPREXUDAK33T3Y5KADA5CNFSM6AAAAACJ4D2B56WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHNGAVQ6Y.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6464</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6464",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6464",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>