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

Re: Debian safe-upgrade to 6.0.2 - don't run within X session



On 28/06/11 00:54, Jochen Schulz wrote:
> Scott Ferguson:
>>

<snipped>

> 
> No, dist-upgrades aren't different.

If you believe that then file a bug report.

ref: man apt-get

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 packages
that cannot be upgraded without changing the install status of another
package will be left at their current version.

dist-upgrade, in addition to performing the function of upgrade, also
intelligently handles changing dependencies with new versions of
packages; apt-get has a "smart" conflict resolution system, and it will
attempt to upgrade the most important packages at the expense of less
important ones if necessary.

eg. if package a-0.0 is to be replaced with a-0.1 it'll be an "upgrade".
if package a-0.0 is deprecated and it's function is being replaced with
b-0.0 it'll be a dist-upgrade.

There is a difference.

> 
> The only difference between aptitude's "safe-upgrade" and "full-upgrade"
> is that they use different algorithms for dependency resolution. The
> upgrade process itself (unpacking, pre-/post-install scripts etc.) is
> exactly the same in both cases.  

I made no comment on aptitude.
The mechanism for installing packages has no bearing on the severity of
changes made by the process (the likely hood of disruption to core
services). upgrade is mild, dist-upgrade can be radical. In "theory"
(apt-get) upgrade should make only minor disruptions.


> The same holds true for apt-get's
> "upgrade" and "dist-upgrade".
> 
> J.


Opening a vt will do nothing to "protect" any running x-apps. If
concerned about x-apps whilst doing an upgrade - logout of x and login
to a console then shutdown x.

If packages being upgraded by either upgrade or dist-upgrade break or
interrupt networking, then pre-downloading (-d) will enable the upgrade
to continue. Aptitude "probably" has the same, download new packages
before applying changes, ability.

It is not my desire to be wrong, I appreciate when my "belief" is
corrected and no offence will be taken. Please do so.

Note: I'm not writing of aptitude, likewise synaptic or other gui apt
handlers.

Cheers

-- 
"I have a scoop for you. I stole his act.
I camouflaged it with punchlines, and to really throw people off, I did
it before he did."
~ Bill Hicks (on Dennis Leary)


Reply to: