Bug#145549: apt: command to upgrade already installed packages
Admar Schoonen <a.m.j.m.schoonen@student.tue.nl> writes:
> 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.
Hmm, that doesn't look quite right. That looks like it will do
something similar to "apt-get upgrade". I only want to upgrade
certain packages.
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 :-).
Best,
Dan
--
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: