Bug#145549: apt: command to upgrade already installed packages
On Thu, May 02, 2002 at 11:59:46AM -0400, Dan Christensen wrote:
> Wichert Akkerman <wichert@wiggy.net> 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 deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: