Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Safely change DE
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Safely change DE
I did it, all went fine so far, but now I would like to remove evolution and gnome-music, but it will remove gnome toghether, is there a way to remove those gnome packages wihout removing gnome-desktop?
-
- Posts: 300
- Joined: 2015-06-07 14:38
- Has thanked: 11 times
- Been thanked: 33 times
Re: Safely change DE
What I do when I want to change DE is reboot then go to a virtual tty and login. Run this command
This gives me a list of installed packages. Just work my way through the list looking for anything desktop related. After a few runs you get a good idea of what stays and what can go. Run this command then.
Don't run it with the -y flag so you can look at what it's going to remove. Takes me a few go's with the apt autoremove but it does work. If something doesn't look right in the "packages to be removed" then don't run it, that means it's quite essential.
Code: Select all
apt list | grep installed | grep -v ^lib | awk '{print $1}' | more
Code: Select all
apt --purge autoremove "$PACKAGE"
- dilberts_left_nut
- Administrator
- Posts: 5346
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: Safely change DE
Sounds like hard work.
You should try 'aptitude'.
You should try 'aptitude'.
AdrianTM wrote:There's no hacker in my grandma...
- Hallvor
- Global Moderator
- Posts: 2042
- Joined: 2009-04-16 18:35
- Location: Kristiansand, Norway
- Has thanked: 149 times
- Been thanked: 212 times
Re: Safely change DE
Like this?
Remove a single package
Code: Select all
# apt-get remove nameofpackage
Code: Select all
# aptitude keep-all
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
-
- Posts: 300
- Joined: 2015-06-07 14:38
- Has thanked: 11 times
- Been thanked: 33 times
Re: Safely change DE
It is hard work. And I don't know why, Debian is better than Ubuntu but doing it any other way leaves stuff behind.
Re: Safely change DE
I think gnome violates dependencies. Don't know how many times i have purge gnome*doc after installing a single gnome program to xfce. I also don't like metapackages as they pull too much.
-
- Global Moderator
- Posts: 2680
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 196 times
Re: Safely change DE
tryjmgibson1981 wrote: ↑2022-06-23 09:17 It is hard work. And I don't know why, Debian is better than Ubuntu but doing it any other way leaves stuff behind.
https://packages.debian.org/search?keyw ... lla-search
I do it manually, and maintain a cherrytree based on the directory/file structure. Tedium eventually pays off. Doing so for so long, backing up /home is the last thing I'd ever do. It is essentially 90% cruft.
- sunrat
- Administrator
- Posts: 6475
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 118 times
- Been thanked: 474 times
Re: Safely change DE
Installed packages which are unused will not generally do anything except take up space. You may find the space recovered by spending hours rooting them out is surprisingly little. Is a few hundred MB worth the time, especially on a multi-terabyte system?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Global Moderator
- Posts: 2680
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 196 times
Re: Safely change DE
No, not really.
But it is an methodology question. If you built up from nothing, and payed attention while doing so, the effort is automated, or simply learned along the way. This is not the same as installing a complete 'turn-key' distro, adding and subtracting at whim only paying attention to the surface result, and then trying to put it on a diet.
The OP quest is very simple, take it apart, put it back together. Aptitude, the preferred way for such a task. Then again, I've said a blinking cursor on a blank screen is a starting point. For most it's a reason to reinstall. The tedium does pay off, eventually. Destructive testing provides the aggregate for smooth pavement. Eventually, we learn there is no magic, just lots we don't know. That's always the worry. One-way tickets to doom actually aren't that common.
I recently archived an image of a complete Bullseye for bare metal use, considering whether I'm going to visit again. Bookworm is working even better, mostly, so to disk goes the compressed image of 1547MB. Pretty tidy for a 7 year old install of Jessie. Bookworm will carry all that cruft forward one more generation...
Most simply don't need to know
- sunrat
- Administrator
- Posts: 6475
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 118 times
- Been thanked: 474 times
Re: Safely change DE
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Posts: 300
- Joined: 2015-06-07 14:38
- Has thanked: 11 times
- Been thanked: 33 times
Re: Safely change DE
For me it's not space. Just don't like things that serve no purpose on my machine. One of the reason's I bailed on Ubuntu and came back to Debian was because I see no reason I need the whole Gnome stack to run Xfce. Don't mind a few things here and there but an entire DE that is just there. Seems pointless to me.
Re: Safely change DE
that's bizarre what happened, I remove evolution and gnome was removed too as a consequence. My battery was very low end it died soon after. Rebooting again it works as nothing has happened, and I have gnome not installed. Is the packaged 'gnome' not the DE itself?
It would make sense for some user that never uses the terminal to go the gnome store and remove evolution, and it also removes gnome together to that action not destroy the system
It would make sense for some user that never uses the terminal to go the gnome store and remove evolution, and it also removes gnome together to that action not destroy the system
- Hallvor
- Global Moderator
- Posts: 2042
- Joined: 2009-04-16 18:35
- Location: Kristiansand, Norway
- Has thanked: 149 times
- Been thanked: 212 times
Re: Safely change DE
Removing the desktop environment isn't ruining the system. You can just type tasksel (as root) in a command line interface and select a new one.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Re: Safely change DE
Yes, but removing the package gnome did not remove the DE gnome. I do not know why, do you?
- Hallvor
- Global Moderator
- Posts: 2042
- Joined: 2009-04-16 18:35
- Location: Kristiansand, Norway
- Has thanked: 149 times
- Been thanked: 212 times
Re: Safely change DE
The package gnome is just the metapackage gnome, not the entire desktop environment: https://packages.debian.org/search?keyw ... ection=all
If you really want to get rid of everything (or almost everything), try this:
uncheck Gnome
Good luck logging into Gnome after a reboot then.
If you really want to get rid of everything (or almost everything), try this:
Code: Select all
# tasksel
Code: Select all
# apt-get purge gnome*
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Re: Safely change DE
On now it makes sense! No sir, I am fine liek it is now, just wanted to remove those extra packages of gnome useless for me. But thanks for explaning me why.Hallvor wrote: ↑2022-06-28 15:45 The package gnome is just the metapackage gnome, not the entire desktop environment: https://packages.debian.org/search?keyw ... ection=all
If you really want to get rid of everything (or almost everything), try this:
uncheck GnomeCode: Select all
# tasksel
Good luck logging into Gnome after a reboot then.Code: Select all
# apt-get purge gnome*
- sunrat
- Administrator
- Posts: 6475
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 118 times
- Been thanked: 474 times
Re: Safely change DE
There are a lot of dependencies of the gnome metapackage which don't have "gnome" in their title. See:
Code: Select all
apt depends gnome
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Safely change DE
I don't understand it quite well, those packages showed onsunrat wrote: ↑2022-06-28 22:14There are a lot of dependencies of the gnome metapackage which don't have "gnome" in their title. See:Code: Select all
apt depends gnome
Code: Select all
apt depends gnome