The officially official Devuan Forum!

You are not logged in.

#1 2022-06-24 07:11:49

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 85  

how to not install additional package when doing apt purge !?

Hi,

on another VM I did a apt purge slim
and it just removed slim.

now when I try the same command on another vm I got

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libck-connector0
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  liblightdm-gobject-1-0 lightdm lightdm-gtk-greeter task-desktop
  task-xfce-desktop tasksel tasksel-data
Suggested packages:
  accountsservice xserver-xephyr
Recommended packages:
  gnome-themes-extra cups
The following packages will be REMOVED:
  slim*
The following NEW packages will be installed:
  liblightdm-gobject-1-0 lightdm lightdm-gtk-greeter
The following packages will be upgraded:
  task-desktop task-xfce-desktop tasksel tasksel-data
4 upgraded, 3 newly installed, 1 to remove and 143 not upgraded.
Need to get 463 kB of archives.
After this operation, 1,017 kB of additional disk space will be used.
Do you want to continue? [Y/n]

So weird that it will force install

liblightdm-gobject-1-0 lightdm lightdm-gtk-greeter task-desktop task-xfce-desktop tasksel tasksel-data

is this necessary to get rid of slim ?????

I've tried apt --no-install-recommends purge slim but that do not work either...


Linux noob, plz be kind big_smile

Offline

#2 2022-06-24 07:40:58

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 85  

Re: how to not install additional package when doing apt purge !?

if I reply Yes I got this -->

yeq6ig.png

But I don't want any Login manager !!


Linux noob, plz be kind big_smile

Offline

#3 2022-06-24 08:24:26

Camtaf
Member
Registered: 2019-11-19
Posts: 215  

Re: how to not install additional package when doing apt purge !?

Maybe, install xinit/startx (can't remember exact package name), then purge slim - the package manager knows that you have X installed & is trying to be 'helpful' by not breaking it, I expect.

Offline

#4 2022-06-25 06:00:27

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 85  

Re: how to not install additional package when doing apt purge !?

Thank you @Camtaf,

apt...

Camtaf wrote:

... is trying to be 'helpful' by not breaking it, I expect.

But I don't think that menu as been generated by apt it self right ?

So from where come this menu (screenshot) ? and why ? and why not have the possibility (like before) to not have any GUI Login manager ?

Last edited by SpongeBOB (2022-06-25 07:56:49)


Linux noob, plz be kind big_smile

Offline

#5 2022-06-25 07:51:34

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 85  

Re: how to not install additional package when doing apt purge !?

what's weird too is that if I select

slim on this menu
yeq6ig.png

it's anyway installing lightdm

$ cat /etc/X11/default-display-manager 
/usr/sbin/lightdm

??


Linux noob, plz be kind big_smile

Offline

#6 2022-06-25 08:01:40

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,535  

Re: how to not install additional package when doing apt purge !?

SpongeBOB wrote:

is this necessary to get rid of slim ?

There is a metapackage installed that has x-display-manager listed as a (virtual) dependency. If slim is removed lightdm is needed to satisfy the dependency.

If you prefer (for example) GDM instead use

# apt install slim- gdm3

But you don't need to remove slim at all — just disable it:

# update-rc.d slim disable

This will have to be repeated if the slim package is updated.

To actually remove slim see https://forums.debian.net//viewtopic.php?f=16&t=104157, which explains how to deal with the metapackage problem.

Last edited by Head_on_a_Stick (2022-06-25 08:02:35)

Offline

#7 2022-06-25 08:38:02

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 85  

Re: how to not install additional package when doing apt purge !?

Thank you @Head_on_a_Stick,

# update-rc.d slim disable

work perfectly ! Thanks.

Talking about metapackage I've seen a bug (when apt want to remove a lot of package for no reason) I will try to reproduce and open another topic.

Last edited by SpongeBOB (2022-06-26 10:05:50)


Linux noob, plz be kind big_smile

Offline

Board footer