this post was submitted on 29 May 2024
11 points (92.3% liked)

Linux

48073 readers
682 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I installed GNOME on my KDE fedora install some time ago not realizing it would litter my install with gnome apps. Wondering if there's a safe and easy way to remove them. Everyone online seems to say that removing a DE risks uninstalling a lot of stuff and thought I should ask here to be sure.

Thanks in advance for any advice!

top 13 comments
sorted by: hot top controversial new old
[–] wesker@lemmy.sdf.org 7 points 5 months ago* (last edited 5 months ago) (2 children)

Have you thought about biting the bullet and just doing a full wipe and fresh OS install? I recently did this with a fresh, minimal Debian install, and it was so worth it.

[–] Corr@lemm.ee 4 points 5 months ago

I just installed 6 months ago and I don't feel any need or desire to do a full reinstall if I can avoid it

[–] bjoern_tantau@swg-empire.de 1 points 5 months ago (1 children)

That's such a Windows way of solving problems.

[–] wesker@lemmy.sdf.org 2 points 5 months ago* (last edited 5 months ago)

It's not. I'm constantly learning and making a mess. A fresh install every year or two keeps the house clean, and keeps me in good practice.

[–] CaptDust@sh.itjust.works 2 points 5 months ago* (last edited 5 months ago) (2 children)

Uninstall the gnome desktop package, reinstall the kde desktop package and that should pull the overlapping dependencies. Might need to do this from a virtual terminal, not in the desktop environment.

Or reinstall the OS.

Edit: there's also dnf swap command available for fedora, I'm not really familiar with it's behavior or how it acts when both DE are already installed, but maybe that could be a lead.

[–] Corr@lemm.ee 3 points 5 months ago (1 children)

This makes sense. Will this nuke any config files I have set up already?

Thanks for the suggestions!

[–] CaptDust@sh.itjust.works 1 points 5 months ago* (last edited 5 months ago)

It shouldn't but I'm hesitant to say it won't. Back up all the things you don't want to lose, this is not a risk free maneuver. However in my limited experience it was the opposite - it'll remove the applications, but you will still have now-useless config files from the removed environment in place taking up space.

[–] Corr@lemm.ee 1 points 4 months ago

Thanks both for the information and the confidence. I went ahead and deleted the gnome packages and nothing seems broken so far. The dnf remove @gnome-destop didn't work, but dnf remove gnome-* worked. I made sure all the packages being removed were ones I no longer wanted and all looks well!

[–] atzanteol@sh.itjust.works 1 points 5 months ago

Which distro?

[–] Successful_Try543@feddit.de 1 points 5 months ago* (last edited 5 months ago)

I suppose Fedora works similar to Debian handling dependencies, thus uninstalling libgtk* should trigger removing all GNOME/GTK packages and apps. Removing a metapackage, like it's probably gnome-desktop, usually does almost nothing.

[–] cyborganism@lemmy.ca 1 points 5 months ago* (last edited 5 months ago)

Try to find the Fedora/yum equivalent to

apt-get purge gnome-desktop

apt-get autoremove

[–] winterayars@sh.itjust.works 0 points 5 months ago (1 children)

I think you already got a good answer but let me throw in another:

Fedora's dnf provides some good history and update reversion tools. You can use:

dnf history list

to get a list of all actions taken on the system since install. Use "dnf history info 5" to get info on the 5th transaction. (Get the transaction ID numbers from "dnf history list".)

Then to revert a change use either:

dnf history rollback or dnf history undo

Using undo reverses a single transaction, so if you have one where you did something like "dnf install tmux" and then ran undo on it then that would be equivalent to running "dnf remove tmux" in terms of what it does on your system.

Rollback does what you might think: it basically goes through all the updates between the most recent and the one specified and it reverses each of them, theoretically restoring the system to the state it was in at that time.

I say "theoretically" because this isn't a perfect system. For example, if you have an update where you removed some software that had some customizations done to it and then went through a rollback it'll put that software back but may be missing configurations you applied to it, so potentially it could cause some issues if those were important. This gets into a lot of complicated stuff and tbh it is a powerful but imperfect system. Something like Atomic gives you more of a guarantee that a rollback will work because the whole system state is defined by the installer, not just the packages.

There's one more note: Fedora removes old versions of packages from its repos so you'll need to add their historical archives repo to do certain things. I forget how to do that off the top of my head.

This may not be what you want exactly but it's a powerful tool that's good to be aware of.

See this for more info.

[–] Corr@lemm.ee 2 points 4 months ago

Thank you for that insight. I didn't end up using this but as you said, this is very powerful and I'm glad I know it exists!