Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226895

Re: how to remove GUI

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: how to remove GUI
Date 2020-09-11 14:00 +0200
Message-ID <ANPSF-3dL-9@gated-at.bofh.it> (permalink)
References <ANJ0R-7BJ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 10, 2020 at 11:33:21PM -0500, Michael Morgan wrote:
> I recently installed Debian 9.13 on my machine.

So, not the current stable release....

> What is the correct way to
> completely remove GUI?

Well, in this *particular* case, your best course of action would probably
be a clean install of Debian 10.  Select only "Standard" (or maybe add
the OpenSSH server) during the initial task selection.

In the more general case, there are two strategies to remove a whole
bunch of packages that have a dependency tree relationship.  The first
strategy, which is relatively new, is to count on "apt autoremove",
which is a relatively new feature and has a lot of quirky behavior.
The concept here is that, when you installed the top-level package of
the large dependency tree (whether that's "gnome-core" or "task-something"),
apt will have marked that one package as "manually installed", and
anything else that was brought in at the same time, would not be so
marked.  Then, when you want to remove all of them, you first remove
the same top-level package.  This doesn't do much on its own, but now
all of the dependent packages have nothing anchoring them.  So if you
follow up with an "apt autoremove", it should, in theory, remove all
of the dependent packages.

In my experience, that doesn't work very well, so I've disabled autoremove
on my system.

The other strategy, which is a much older one, relies on you performing
a light analysis of the dependency tree and finding some lynchpin
package that is holding the whole thing up.  E.g. with GNOME 2.x, there
was some package like "libgnome-common" or something.  If you removed
that, it would remove everything else, because everything in GNOME
depended (directly or indirectly) on this one package.

In the case of a desktop environment, you really have two different
dependency trees to worry about.  There's the X server (xorg), and
there's the desktop environment (task-gnome-or-whatever).  You can
perform a separate analysis on each of these trees, identify which
low-level libraries or "common" packages are necessary to hold them
up, and remove those.

Or, as we've said a few times now, you can just leave the packages in
place and ignore them.  Or do a clean install.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to remove GUI "Michael Morgan" <michaelmorgan937@gmail.com> - 2020-09-11 06:40 +0200
  Re: how to remove GUI Andrei POPESCU <andreimpopescu@gmail.com> - 2020-09-11 08:40 +0200
    Re: how to remove GUI Andrei POPESCU <andreimpopescu@gmail.com> - 2020-09-11 08:40 +0200
  Re: how to remove GUI Joe <joe@jretrading.com> - 2020-09-11 10:10 +0200
  Re: how to remove GUI Henning Follmann <hfollmann@itcfollmann.com> - 2020-09-11 14:00 +0200
    Re: how to remove GUI Kenneth Parker <sea7kenp@gmail.com> - 2020-09-11 15:10 +0200
      Re: how to remove GUI Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-11 16:40 +0200
        Re: how to remove GUI David Wright <deblis@lionunicorn.co.uk> - 2020-09-11 17:40 +0200
          Re: how to remove GUI Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-11 17:50 +0200
            Re: spurious CR/LF on tty (was: how to remove GUI) Felix Miata <mrmazda@earthlink.net> - 2020-09-11 21:20 +0200
              Re: spurious CR/LF on tty (was: how to remove GUI) David Wright <deblis@lionunicorn.co.uk> - 2020-09-12 04:10 +0200
              Re: spurious CR/LF on tty (was: how to remove GUI) David <bouncingcats@gmail.com> - 2020-09-12 13:50 +0200
                Re: spurious CR/LF on tty (was: how to remove GUI) David Wright <deblis@lionunicorn.co.uk> - 2020-09-14 04:20 +0200
                Re: spurious CR/LF on tty (was: how to remove GUI) Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-14 14:00 +0200
                Re: spurious CR/LF on tty (was: how to remove GUI) David <bouncingcats@gmail.com> - 2020-09-21 04:20 +0200
                Re: spurious CR/LF on tty (was: how to remove GUI) David Wright <deblis@lionunicorn.co.uk> - 2020-09-21 16:40 +0200
          Re: how to remove GUI Andrei POPESCU <andreimpopescu@gmail.com> - 2020-09-12 11:50 +0200
  Re: how to remove GUI Greg Wooledge <wooledg@eeg.ccf.org> - 2020-09-11 14:00 +0200
    Re: how to remove GUI rhkramer@gmail.com - 2020-09-11 14:40 +0200

csiph-web