On Thu, May 02, 2002 at 11:59:46AM -0400, Dan Christensen wrote:
> Wichert Akkerman <[EMAIL PROTECTED]> writes:
> 
> > Previously Dan Christensen wrote:
> >> I would find it quite useful to have a command (foo, say) so that
> >> if I have package1 and package3 installed, and I do:
> >> 
> >>   apt-get foo package1 package2 package3
> >> 
> >> then only package1 and package3 get installed [plus any new dependencies],
> >> but nothing happens to package2.
> >
> > Sounds like:
> >
> >     apt-get install package1 package3
> >
> > which does exactly what you describe.
> 
> I want to use the same command line on several machines which have
> different packages installed, and only cause already-installed
> packages to be affected.  I don't want to manually change the
> command line, since I cut and paste it.
seems like 
  apt-get install $(dpkg --get-selections|egrep "$(echo -e '\t')install"|awk 
'{print $1}'|tr '\n' ' ')
will do.

admar


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to