| View previous topic :: View next topic |
| Author |
Message |
StaraDama Apprentice

Joined: 01 Sep 2004 Posts: 253
|
Posted: Fri Oct 08, 2004 11:50 am Post subject: unmerge whole kde |
|
|
how to unmerge whole kde
if i use emerge unmerge kde only kde will be uninstall and not kdegames,...
how to uninstall all of them
thnx |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Fri Oct 08, 2004 12:02 pm Post subject: |
|
|
USe Ed Catmur's dep script - http://www.catmur.co.uk/my-bin/dep - to figure out reverse dependencies. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
spb Retired Dev


Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Fri Oct 08, 2004 12:48 pm Post subject: |
|
|
| Code: | | emerge -C kde && emerge -av depclean | But: be careful with depclean. It's usually a good idea to do 'emerge -uD --newuse world' if you're using portage-2.0.51 beforehand. In particular, make sure that coreutils hasn't been compiled with USE=acl. Alternatively, use 'dep -s' instead of emerge depclean-- it's probably safer (get the script from moocha's link).
Oh, and moocha: reverse dependencies aren't the problem here; it's unused forward deps, which is what depclean is for. |
|
| Back to top |
|
 |
Rav70 l33t


Joined: 11 Feb 2004 Posts: 607 Location: Poland
|
Posted: Fri Oct 08, 2004 1:28 pm Post subject: |
|
|
or a quick hack:
| Code: |
for p in /var/db/pkg/kde-base/*; do echo $p|sed -e 's#.*/#=#'|xargs emerge -C; done
|
or (if you want to confirm each unmerge)
| Code: |
for p in /var/db/pkg/kde-base/*; do echo $p|sed -e 's#.*/#=#'|xargs emerge -aC; done
|
Regards,
Rav _________________ Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead. |
|
| Back to top |
|
 |
spb Retired Dev


Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Fri Oct 08, 2004 1:49 pm Post subject: |
|
|
| Quick hacks like that are completely unnecessary when you could just use depclean or 'dep -s'. They don't do anything that the scripts won't do simpler, quicker, and safer. |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Fri Oct 08, 2004 2:56 pm Post subject: |
|
|
emerge depclean is broken. Use the script I mentioned above. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
tacker Tux's lil' helper


Joined: 22 Jul 2004 Posts: 85 Location: Offenbach, Germany
|
Posted: Wed Nov 10, 2004 1:31 pm Post subject: |
|
|
| moocha wrote: | | emerge depclean is broken. |
Proof? |
|
| Back to top |
|
 |
spb Retired Dev


Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed Nov 10, 2004 3:16 pm Post subject: |
|
|
| tacker wrote: | | moocha wrote: | | emerge depclean is broken. | Proof? | You just have to trust us.
The main points are that it does dependencies based on USE flags as they are now, and not as they were when the package was merged, and that it isn't SLOT-aware. |
|
| Back to top |
|
 |
tacker Tux's lil' helper


Joined: 22 Jul 2004 Posts: 85 Location: Offenbach, Germany
|
Posted: Wed Nov 10, 2004 3:23 pm Post subject: |
|
|
Well I see it's borked, as it tries to unmerge
dhcpcd on my box and some other standalone apps.
So, I just thought there would be a bug report or a note for reference. |
|
| Back to top |
|
 |
calle2003 n00b


Joined: 21 Oct 2004 Posts: 63
|
Posted: Wed Nov 10, 2004 3:38 pm Post subject: |
|
|
> Well I see it's borked, as it tries to unmerge
> dhcpcd on my box and some other standalone apps.
I don't think it is that broken. Have you updated your /etc/make.profile to 2004.3 recently? dhcpcd and slocate are not longer in the system profile and therefore will be unmerged by depclean. Just add the package to your world file if you need it.
My experience with depclean is quite good. But I do not change USE flags so often and I have my world file in a good shape.
You must take care with the sys-apps packages (fileutils, sh-utils, textutils, coreutils) and the acl use flag depending on your installation. And if any libraries are removed by depclean you can check your system with revdep-rebuild.
Regards,
Christian. |
|
| Back to top |
|
 |
squanto Guru


Joined: 20 Apr 2002 Posts: 524 Location: Rochester, NY, USA
|
Posted: Sat Nov 13, 2004 7:33 pm Post subject: |
|
|
Thank you for this thread. Just wanted to pass along my apreciation for the input given. I just came back to Gentoo after about a year off, and was wondering why depclean stated that certain things are removable. The "dep -s" script worked very well and I like it, thanks for that as well.
One thing, if depclean is really broken, someone might want to update:
Gentoo Handbook - 1.c. Maintaining Software - Stub Packages
to reflect that if you have chaned use vars lately, depclean may not be the best idea.
"emerge depclean" is also suggested in:
Gentoo Handbook - 2.b. Using USE-flags - Adapting your Entire System to New USE Flags
and this was what I was following to update my system with a few new use vars.
I am unsure as to who maintains these documents, but thought that some people in this thread might know.
Thanks  |
|
| Back to top |
|
 |
warpster n00b

Joined: 26 Dec 2004 Posts: 31
|
Posted: Thu Mar 31, 2005 9:07 am Post subject: |
|
|
Hello all,
I would like to use that script also, but the link that was given doesn't work for me. Is there anywhere else where I could find the script, or can anybody forward it to me? Thanks a lot,
:: warpster :: |
|
| Back to top |
|
 |
swingkyd Guru

Joined: 13 Jan 2005 Posts: 334
|
Posted: Sun Sep 11, 2005 5:07 pm Post subject: |
|
|
this link is broken... does anyone else have this link? I have kde3.3 and kde3.4 on the system. I'd like to get rid of kde 3.3 now...how does one do that? The whole --depclean has not removed kde3.3 at all. any ideas? |
|
| Back to top |
|
 |
UsernameAlreadyTaken n00b

Joined: 14 Sep 2005 Posts: 1
|
Posted: Wed Sep 14, 2005 1:11 am Post subject: dep script |
|
|
| swingkyd wrote: |
this link is broken... does anyone else have this link? I have kde3.3 and kde3.4 on the system. I'd like to get rid of kde 3.3 now...how does one do that? The whole --depclean has not removed kde3.3 at all. any ideas? |
http://catmur.ath.cx/~ed/main/my-bin/dep
(I can't vouch for its effectiveness, but I assume this is what you're looking for.) |
|
| Back to top |
|
 |
cchildress Tux's lil' helper


Joined: 27 May 2004 Posts: 90 Location: Tennessee, United States
|
Posted: Sat Feb 24, 2007 5:34 am Post subject: |
|
|
| Is any of this still necessary to remove KDE fully? |
|
| Back to top |
|
 |
skellr l33t


Joined: 18 Jun 2005 Posts: 977 Location: The Village, Portmeirion
|
Posted: Sat Feb 24, 2007 8:46 am Post subject: |
|
|
yes, and the dep script is in portage now. app-portage/udept
if dep or --depclean wants to unmerge anything you want to keep, just use emerge --oneshot to add the package to the world file. |
|
| Back to top |
|
 |
cchildress Tux's lil' helper


Joined: 27 May 2004 Posts: 90 Location: Tennessee, United States
|
Posted: Sat Feb 24, 2007 6:30 pm Post subject: |
|
|
| Thanks for the tip! I'm glad I've discovered dep, it's a great tool. |
|
| Back to top |
|
 |
georgir n00b

Joined: 29 Nov 2007 Posts: 9
|
Posted: Tue Jan 29, 2008 4:22 pm Post subject: |
|
|
| Rainskellr wrote: | | ...just use emerge --oneshot to add the package to the world file. |
Um... no.
--oneshot does exactly the opposite - emerges something without adding it to the world file, and then dep will want to clean it away.
but a normal emerge should do it, or an edit of the world file directly to save yourself unneeded reemerges. |
|
| Back to top |
|
 |
|