View previous topic :: View next topic |
Author |
Message |
gzunk Tux's lil' helper
Joined: 31 Aug 2003 Posts: 149 Location: Dunblane, Scotland
|
Posted: Sat Aug 18, 2007 10:52 pm Post subject: Easiest way to remove KDE |
|
|
I added KDE to my system a while back and played around with it, but I've moved on to XFCE for my needs. Trouble is, with my most recent sync, it wants to upgrade KDE. Since I no longer use it, what's the easiest way of removing all the KDE libraries from my system? I suspect I'll just have to remove them all one by one, but is there an easier way? _________________ Intel Core 2 Quad Q9650 | Asus P5K | 8GB DDR-2 800
Sapphire Radeon 4870 X2 | 30" Samsung SM305T+
(4xSATA) 3 TB | 2 x DVD+-RW DL (Pioneer 112D 115D)
Logitech X-530 5.1 | DiNovo Edge | MX Revolution |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Aug 18, 2007 11:14 pm Post subject: |
|
|
Find whatever kde packages you have in your world file (grep kde /var/lib/portage/world), then remove all these by hand (it shouldn't be that many).
Then `emerge --depclean` should take care of all the libraries and such.
Make sure to run --depclean with --pretend first, to make sure it doesn't remove something you want/need, and you should lso make sure your system is completely up to date before running it, especially in relation to USE flags.
`emerge -puDN` world will tell you wether you are or not. _________________ "You have to invite me in" |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat Aug 18, 2007 11:16 pm Post subject: |
|
|
Depends on how you installed it. Did you install kde, kde-meta, kdebase, kdebase-meta? In general, if you install a package withthen it is a two stage process to fully remove it, like so: Code: | emerge -C foo
emerge --depclean | However, it's a good idea to use the --pretend option on the --depclean to make sure that it's not removing things you don't want it to remove. For more information on these arcana, see A Portage Introduction, Working with Portage, and the emerge man page.
- John |
|
Back to top |
|
|
trilexx Apprentice
Joined: 19 Jul 2004 Posts: 217 Location: Austria
|
Posted: Sun Aug 19, 2007 9:53 am Post subject: |
|
|
KDE is a metapackage, without real content. It is used to install a collection of packages. Therefore this collection won't be unmerged when unmerging the KDE meta package. As posted before, you will find a hint in the portage introduction. Unmerge KDE, followed by:
Code: |
emerge --update --deep --newuse world
emerge --depclean
revdep-rebuild
|
revdep-rebuild will check for broken dependencies. Emerge gentoolkit to get it.
greetings
trilexx _________________ if it lives, compile it |
|
Back to top |
|
|
gzunk Tux's lil' helper
Joined: 31 Aug 2003 Posts: 149 Location: Dunblane, Scotland
|
Posted: Sun Aug 19, 2007 1:35 pm Post subject: |
|
|
All these process want me to upgrade KDE before de-installing it, which is what I wanted to avoid. Still I suppose I had nothing better to do on a Sunday afternoon. _________________ Intel Core 2 Quad Q9650 | Asus P5K | 8GB DDR-2 800
Sapphire Radeon 4870 X2 | 30" Samsung SM305T+
(4xSATA) 3 TB | 2 x DVD+-RW DL (Pioneer 112D 115D)
Logitech X-530 5.1 | DiNovo Edge | MX Revolution |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Aug 19, 2007 2:04 pm Post subject: |
|
|
If the dependency tree isn't fully up-to-date, sometimes "emerge --depclean" will attempt to remove more than it should. That's why people are recommending an "emerge --update" before the "emerge --depclean". To prevent KDE from updating, mask the new version. To do this easily, first pipe the output of "emerge -uDNpq world" into a file and then edit that file down to the list of KDE-relating things that are trying to be updated, containing only "=category/package-version", one per line, and then add that file to your "/etc/portage/package.mask" file. For instance, my current emerge run (not KDE related) resulted in the following output Code: | mercury ~ # emerge -uDNpq world >1
mercury ~ # cat 1
U sys-apps/portage 2.1.3.6 [2.1.3.5]
R sys-libs/ncurses 5.6-r1
N app-emacs/po-mode 0.16.1
U sys-fs/device-mapper 1.02.19-r1 [1.02.19]
U app-misc/jbidwatcher 1.0.2 [1.0.1]
U sys-devel/gettext 0.16.1-r1 [0.16.1]
U sys-fs/udev 114 [104-r13]
R app-text/aspell 0.60.5 | You can use a fairly simple AWK script to put that in the appropriate form. Try this: Code: | mercury ~ # awk -- '{ print "=" $2 "-" $3 }' 1
=sys-apps/portage-2.1.3.6
=sys-libs/ncurses-5.6-r1
=app-emacs/po-mode-0.16.1
=sys-fs/device-mapper-1.02.19-r1
=app-misc/jbidwatcher-1.0.2
=sys-devel/gettext-0.16.1-r1
=sys-fs/udev-114
=app-text/aspell-0.60.5
| You'll need to edit out the non-KDE-related files so that you get a good update except for KDE. Once you're done removing KDE, you can clean up your package.mask file.
Now, wasn't that simple? (I didn't think so.)
- John
Last edited by John R. Graham on Sun Aug 19, 2007 2:08 pm; edited 2 times in total |
|
Back to top |
|
|
trilexx Apprentice
Joined: 19 Jul 2004 Posts: 217 Location: Austria
|
Posted: Sun Aug 19, 2007 2:07 pm Post subject: |
|
|
Hmm, I understand your problem. I don't know if there is a solution avoiding updating the whole collection of packages before unmerging. I think it is necessary to ensure consistency. It could easily be other packages need something from the KDE dependencies, therefore they must not be unmerged. _________________ if it lives, compile it |
|
Back to top |
|
|
|