View previous topic :: View next topic |
Author |
Message |
saivinoba n00b
Joined: 20 May 2014 Posts: 30
|
Posted: Thu Jun 12, 2014 8:40 am Post subject: [SOLVED] How to properly uninstall MATE |
|
|
Hi,
I wanted to uninstall MATE but could not get information on the wiki or here as to how to do it proper way. I did Code: | emerge -C mate-base/* mate-extra/* |
This still left 'mate-terminal' and 'atril' (don't know what others). I was able to unmerge 'mate-terminal' but not 'atril'.
For 'atril' I get, Code: | a4741 / # which atril
/usr/bin/atril
a4741 / # emerge -pC atril
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.
>>> These are the packages that would be unmerged:
--- Couldn't find 'atril' to unmerge.
>>> No packages selected for removal by unmerge
a4741 / # |
There is no issue if 'atril' is present on the system. I just want to know what is the proper way to uninstall MATE destkop. Infact it would be nice if the wikis for all DEs come with an 'Uninstalling' section as well.
P.S.: I don't have problem with MATE. I have it on three other PCs and working fine. Its just that I want to install KDE and in the process want to (learn how to) uninstall MATE.
Last edited by saivinoba on Fri Jun 13, 2014 9:09 am; edited 1 time in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Thu Jun 12, 2014 8:47 am Post subject: |
|
|
Hello,
Continue the cleaning with Code: | emerge --ask --depclean |
And to find in which ebuild belong atril Code: | equery b /usr/bin/atril |
_________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
saivinoba n00b
Joined: 20 May 2014 Posts: 30
|
Posted: Fri Jun 13, 2014 2:10 am Post subject: |
|
|
Hi Xavier,
Thank you very much. I did not have equery command. I waited for KDE meta installation and then emerged gentoolkit. Your equery command showed atril was required by mate-document-viewer. And doing 'emerge -pv --depclean' showed more mate related packages like mate-text-editor and some libraries. Now, it seems the MATE desktop is completely gone.
Shouldn't the uninstall procedure be part of the wiki for particular DE? I can go ahead and edit the wiki (when it comes online; wiki site is offline as of this post) and someone can correct me if required. Or do you suggest not to? |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri Jun 13, 2014 2:22 am Post subject: |
|
|
saivinoba wrote: | Shouldn't the uninstall procedure be part of the wiki for particular DE? |
No. The process is general and is fairly well documented. First, use emerge -ac <packages> to remove the undesired packages from the world file and use emerge -ac to clean up. Using emerge -C should be avoided if at all possible since it isn't safe. In fact, using it the way you did is one of the easiest ways to break an install. You can check what is in your world file by using less /var/lib/portage/world or other pager. Just never edit the file by hand. Very bad things can happen if you try that. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
saivinoba n00b
Joined: 20 May 2014 Posts: 30
|
Posted: Fri Jun 13, 2014 8:59 am Post subject: |
|
|
Hi Doctor,
Thanks for the info. I will go through the provided link and be careful next time with unmerging. |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Fri Jun 13, 2014 2:28 pm Post subject: |
|
|
For future reference if you want to nuke MATE, make sure to first check the list that it gives you:
Quote: | emerge -aC $(grep -rl --include=*.ebuild '\(SRC_URI\|HOMEPAGE\).*mate-desktop' /usr/portage/ | sed 's:/usr/portage/\(.*/.*\)/.*:\1:' | sort -u) |
This looks for mate-desktop in the homepage and distfiles of the ebuilds; thus listing all the MATE desktop ebuilds, allowing you to remove them all at once.
As suggested before; for sanity and completeness, consider to run `emerge -ac` afterwards.
Edit: Consider this the forced approach; usually, you'll only have the meta package or so merged which just means `emerge -c mate-base/mate` would then suffice.
Last edited by TomWij on Fri Jun 13, 2014 2:59 pm; edited 1 time in total |
|
Back to top |
|
|
saivinoba n00b
Joined: 20 May 2014 Posts: 30
|
Posted: Fri Jun 13, 2014 2:53 pm Post subject: |
|
|
Thank you Tom. I guess the same command can be used for other DE with appropriate changes.
I need to read Handbook fully. I just finished Chapter 1 for installing and started fiddling around |
|
Back to top |
|
|
|