Bug#145549: apt: command to upgrade already installed packages
On Thu, May 09, 2002 at 02:18:32PM -0400, Dan Christensen wrote:
> > seems like
> > apt-get install $(dpkg --get-selections|egrep "$(echo -e '\t')install"|awk '{print $1}'|tr '\n' ' ')
> > will do.
>
> Hmm, that doesn't look quite right. That looks like it will do
> something similar to "apt-get upgrade".
Uhm... That is, uhm, correct.
next little script is better?
#!/bin/sh
apt-get install $(dpkg -s $@|egrep "install ok installed$" -B 2|egrep "^Package: "|cut -d ' ' -f 2-|tr '\n' ' ')
> I only want to upgrade
> certain packages.
That wasn't clear to me first.
> Of course, something like what you wrote could be made to work. But
> it seems like this feature would naturally fit into apt-get, and would
> be pretty easy to implement in that context (for someone who knows the
> apt-get code :-).
I doubt that. But than again, I'm no debian-developer.
Cheers.
Admar
--
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: