<p><br>
> > Aptitude provides for tracking sets of packages:<br>
> ><br>
> > # aptitude --add-user-tag foo-builddep build-dep foo<br>
><br>
> I had no idea, thanks for making me aware of this!  It seems like a much<br>
> better solution.  I'll definitely start using it.</p>
<p>Very useful feature but I don't think it gets a lot of exposure.</p>
<p>><br>
> > [then, after make foo]<br>
> > # aptitude --remove-user-tag foo-builddep '?user-tag(foo-builddep)'<br>
><br>
> Did you mean to add an unmarkauto to this command?</p>
<p>No, actually it should have 'remove' which I missed. The build deps are not marked auto by the first command. The second should have been:</p>
<p> # aptitude --remove-user-tag foo-builddep remove '?user-tag(foo-builddep)'</p>