Re: apt-get dist-upgrade uninstalled most of KDE
I was thinking about implementing an "apt-get rollback-upgrade"
command, which would also remove any package installed by the previous
upgrade. To be reliable, though, it should also restore any
configuration overwritten by the install. So maybe it is not feasible.
I agree, maybe "apt-mark hold" is a better strategy if one wants to
keep installing packages during the transition.
On Wed, Aug 16, 2017 at 3:28 PM, Ben Caradoc-Davies <email@example.com> wrote:
> On 17/08/17 10:08, firstname.lastname@example.org wrote:
>> Using snapshot repositories and "apt-get install packagename=version"
>> sounds like a*great* strategy to implement a quick-and-dirty rollback
>> function for apt-get. Do you think it would suffice to analyze
>> history.log and run "apt-get install" with
>> - "package-" for all packages installed by the last update and
>> - add "package=version" for all updated and removed packages?
>> The snapshot it would use is the one of the previous upgrade.
> "apt-get install package=version" should remove any packages that conflict
> with the installation, so you should not have to manually remove anything.
> The only other thing I did after the downgrade was to "apt-mark hold" the
> packages affected by the transition that I did not want to remove; this is
> my preferred tactic for surviving transitions.
> Kind regards,
> Ben Caradoc-Davies <email@example.com>
> Transient Software Limited <http://transient.nz/>
> New Zealand