Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274003

Re: Why does "apt-get upgrade {package}" upgrade all packages instead of error?

From Felix Miata <mrmazda@stanis.net>
Newsgroups linux.debian.user
Subject Re: Why does "apt-get upgrade {package}" upgrade all packages instead of error?
Date 2024-10-24 20:50 +0200
Message-ID <JBb4d-3XsT-3@gated-at.bofh.it> (permalink)
References <JB9Yt-3WQW-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Daniel Roberts composed on 2024-10-24 13:19 (UTC-0400):

> I've run into this a few times over the years and it can be a headache to
> resolve.

> Passing a package name to "apt-get update" results in the response "E: The
> update command takes no arguments". However, passing a package name to
> "apt-get upgrade" results in the argument being ignored and all packages
> upgraded.

> Is there some reason that this is the case? Is it a bug that has
> always existed and never fixed?

It's not like dnf or zypper or urpmi. If you wish to upgrade a package, you
apt-get install it, to replace the existing version with the current version.
Upgrading is a distro process, not a package process, as is updating. Updating is
for the mirror information that upgrade and install processes need, not already
installed packages.
-- 
Evolution as taught in public schools is, like religion,
	based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why does "apt-get upgrade {package}" upgrade all packages instead of error? Daniel Roberts <danielmroberts@gmail.com> - 2024-10-24 19:40 +0200
  Re: Why does "apt-get upgrade {package}" upgrade all packages instead  of error? Frank Weißer <linux@weisser-ol.de> - 2024-10-24 20:00 +0200
    Re: Why does "apt-get upgrade {package}" upgrade all packages instead  of error? Aldo Maggi <sentiniate@virgilio.it> - 2024-10-24 20:40 +0200
  Re: Why does "apt-get upgrade {package}" upgrade all packages instead  of error? Felix Miata <mrmazda@stanis.net> - 2024-10-24 20:50 +0200
  Re: Why does "apt-get upgrade {package}" upgrade all packages  instead of error? David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 01:30 +0200

csiph-web