Re: Bug#106566: ITP: apt-howto -- a detailed manual for apt features
Joost Kooij wrote:
> On Thu, Jul 26, 2001 at 11:24:16AM -0400, Peter S Galbraith wrote:
> > That sucks a bit. Means I need to write a script to store my
> > `holds' and run that afterwards.
>
> Have you tried:
>
> dpkg --get-selections | sed 's/[^e]install$/hold/' | dpkg --set-selections
>
> It puts all installed packages on hold. You can then re-mark specific
> packages for installation in the dselect package selections management
> screen.
What I meant was that I mostly track testing, except for the
occasional big package that I have installed but don't use often
enough to warrant upgrading it. So I put those on hold. Once in
a while, I do `apt-get install somepackage` that I need, or one I
want to upgrade. Sometimes I do `apt-get -u dist-upgrade` to
upgrade everything except the stuff on hold mentionned earlier.
But before I say yes to the upgrade, I scan the list for other
big package I might want to add to my `hold' list.
So... I don't want to run a one-liner like above to put
everything on hold, because then I'd lose my list. I need a few
three-liners script to save those holds elsewhere and then
restore them. So it should be a dselect option, since I can't be
the only person who would use this.
Peter
Reply to: