[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: upgrade only if installed

On Wed, Jun 14, 2006 at 02:46:04PM -0700, Bill Thompson wrote:
> apt-get upgrade <packagename>
> will upgrade a package if it is already installed in your system and an
> upgrade is available.

I'm pretty certain that you can't do 'apt-get upgrade
[package]'; you can only do 'apt-get upgrade' -- the latter
of which upgrades *all* packages on your machine. See the
manpage for apt-get(8):

	      upgrade is used to install the newest versions of all  packages  currently  installed  on  the  system  from  the  sources  enumerated  in
	      /etc/apt/sources.list.  Packages	currently  installed  with new versions available are retrieved and upgraded; under no circumstances are
	      currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed pack
	      ages  that cannot be upgraded without changing the install status of another package will be left at their current version. An update must
	      be performed first so that apt-get knows that new versions of packages are available.

Stephen R. Laniel
Cell: +(617) 308-5571
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature

Reply to: