Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is NOT a duplicate. The solution in How to remove all traces of KDE installed did NOT work, so please do not mark this as a duplicate (it ruined the last post I made). I am using Unity, but KDE is still available on the login screen. I have uninstalled it, and all of its programs, but it won't go away.

I did an installation of kde-full to try it, but I didn't like it and want to go back to just Unity.

Thanks in advance.

PS this installation is NOT Kubuntu.

UPDATE: KDE Plasma is still an option on the login screen, and choosing it opens a perfectly working KDE session. I have a 128GB SSD, so space is valuable.

UPDATE: KDevelop isn't that important. I don't have any custom configs, so if it gets deleted, I can reinstall it quickly.

share|improve this question
    
Did you look in /usr/share/xsessions/? That's where the .desktop files for various logins are stored. –  user25656 Jan 12 at 3:58
    
Aha! KDE is in there. It is a shortcut to /usr/bin/startkde. /usr/bin also has lots of other KDE files in it. –  Klikini Jan 12 at 4:18
    
List of KDE files in /usr/bin: paste.ubuntu.com/6736510 (I installed KDevelop before KDE, I would like to keep that if possible.) –  Klikini Jan 12 at 4:27
add comment

6 Answers

up vote 2 down vote accepted
+100

When I want to get rid of everything based on the KDE libraries (and, consequently, entirely remove KDE), I simply:

sudo apt-get remove --purge libkde*

(Before running the above command including the --purge option, make sure that you make a backup of the KDevelop config files.) If you want to keep KDevelop, as per your comment, then you can subsequently reinstall it.

sudo apt-get install kdevelop

There may be KDE-related bits on the system (I'm not sure about this), but you definitely won't have any extraneous apps based on the KDE libraries (other than KDevelop and its deps).

share|improve this answer
    
Dupe? Look at the first answer. Basically says "remove libs, install KDevelop" –  pacificfils Jan 14 at 22:16
    
@pacificfils Not as far as I go. That answer talks in broad terms, while I give here exact instructions on how to definitively remove KDE (and reinstate a specific app if so desired). –  landroni Jan 14 at 23:21
1  
@pacificfils Glad for this comment, as I wouldn't know how to specifically do that. Running now, will update with results. –  Klikini Jan 15 at 1:23
    
It worked! KDE is no longer in the login menu, and I am now KDE free! I will award bounty in 1 hour, because it says I have to wait...? –  Klikini Jan 15 at 2:10
add comment

An KDE application you have still installed may depend on packages from the KDE environment. We can not remove all of KDE but keep single KDE applications.

In the case you mentioned in a comment it is expected to have a lot of KDE packages installed for being able to run KDevelop.

You can't remove it's dependencies without removing kdevelop first.

In addition you may have other application still which may also depend on KDE libraries.

share|improve this answer
add comment

I believe the answer you're looking for is in this question

Basically it tells you that you find the sessions (i.e. the login entries) defined in

/usr/share/xsessions
share|improve this answer
    
That link removes a non-working DE. I can still choose it, log in, and get a perfectly working KDE desktop. –  Klikini Jan 13 at 1:28
add comment

In theory, it is possible to run sudo apt-get purge kubuntu-desktop (note the purge) followed by sudo apt-get autoremove --purge (again, note the purge).

What this does is it removes kubuntu-desktop (which most if not all KDE packages depend on) and then purges all the files that depend/want kubuntu-desktop installed. This may remove kDevelop, however it is not hard to get back.

share|improve this answer
    
First command: not installed / not removed. Second command: removed some packages: "freespacenotifier* jovie* kdepasswd* kdm* kinfocenter* klipper* kmenuedit* libkprintutils4* libnepomukwidgets4* libokularcore3*" –  Klikini Jan 15 at 1:14
add comment

Try this: http://www.psychocats.net/ubuntu/pureubuntu

I hope it will help you, as it helped me.

share|improve this answer
    
Please expand the answer for it to be useful. –  landroni Jan 14 at 19:38
    
I get a few "not installed" messages and a few "unable to locate" messages. –  Klikini Jan 15 at 1:22
add comment

Since kubuntu and ubuntu share many packages, I suggest these commands...

sudo apt-get remove kubuntu-desktop
sudo apt-get autoremove
sudo apt-get install ubuntu-desktop
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.