On Wed, Feb 07, 2001 at 08:28:28PM +1100, David Kempe wrote:
> > apt-get update
> > Then I guess you can do another dist-upgrade, or just a upgrade.
> 
> Whats the difference between these two commands?

RFTM 

man apt-get

(I can't help myself)

upgrade only installs new versions of packages that are available
if it can. It won't upgrade a package if its dependent on a package
that isn't already installed, and it won't upgrade a package if it
now conflicts with a package that is installed.

dist-upgrade will install extra packages if they are a dependency and 
will remove old ones if they now conflict.

Basically, if you've got potato installed and you want to upgrade to woody 
you need to use dist-upgrade. If you just want to update to the latest
potato packages, you can use the upgrade option.

I know I'm being elite, but seriously, read the relevant sections of 
the apt-get man page for a decent description.

Simon will probably have to use dist-upgrade again. I don't think it will hurt 
to use dist-upgrade even if its not required. And if you're tracking unstable
you probably should use dist-upgrade in case new dependencies or conflicts
are made. (thats my uninformed opinion, anyway)

I also wouldn't use the -f option of apt-get unless I needed to because
of a broken package or some other reason. I'd rather have apt-get
fail rather than try to half upgrade my system and leave it in a
broken state. (hello simon :)


-- 
        chesty (debian: A group of elite people who are too sexy for their 
distribution)


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to