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

Bug#939070: removing gnome desktop in tasksel has little or no effect



Hi Nicolas and Joey,

Nicolas Braud-Santoni <nicoo@debian.org> writes:
> On Sat, Aug 31, 2019 at 03:57:07PM -0400, Joey Hess wrote:
>> I accidentially installed debian 10.0 with gnome rather than xfce, so
>> after the installation, I re-ran tasksel, unselected gnome, and selected
>> xfce.
>> [...]
>> Tasksel probably removed task-gnome-desktop, but many of its
>> dependencies appeared to still be installed.
>
> Yes, removing task-gnome-desktop won't do much if you do not run
> `apt autoremove` or somesuch.
>
> Of course, making tasksel run autoremove would be a terrible idea,
> since it might remove unrelated packages.
>

Agreed.

> I'm not sure how that can be addressed, TBH.

Maybe this?:

1. use changes their selection of desktop task.
2. tasksel gets a list of recursive dependencies for the task that is
being removed.
3. the task is removed, but tasksel still has work to do...
4. the new desktop task is installed.
5. use a dry run of autoremove to get a list of packages that can be
autoremoved
6. cut anything from the list at #5 that isn't in the list at #2
7. remove autoremovable packages that match the removed task

What are the pitfalls with this method?  Sadly I cannot volunteer for
this work as I don't know Perl.


Cheers,
Nicholas

Attachment: signature.asc
Description: PGP signature


Reply to: