Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unmerge whole kde
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
StaraDama
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 253

PostPosted: Fri Oct 08, 2004 11:50 am    Post subject: unmerge whole kde Reply with quote

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
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Oct 08, 2004 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Fri Oct 08, 2004 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rav70
l33t
l33t


Joined: 11 Feb 2004
Posts: 607
Location: Poland

PostPosted: Fri Oct 08, 2004 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Fri Oct 08, 2004 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Oct 08, 2004 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Wed Nov 10, 2004 1:31 pm    Post subject: Reply with quote

moocha wrote:
emerge depclean is broken.

Proof?
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Wed Nov 10, 2004 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Wed Nov 10, 2004 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
calle2003
n00b
n00b


Joined: 21 Oct 2004
Posts: 63

PostPosted: Wed Nov 10, 2004 3:38 pm    Post subject: Reply with quote

> 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
View user's profile Send private message
squanto
Guru
Guru


Joined: 20 Apr 2002
Posts: 524
Location: Rochester, NY, USA

PostPosted: Sat Nov 13, 2004 7:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
warpster
n00b
n00b


Joined: 26 Dec 2004
Posts: 31

PostPosted: Thu Mar 31, 2005 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
swingkyd
Guru
Guru


Joined: 13 Jan 2005
Posts: 334

PostPosted: Sun Sep 11, 2005 5:07 pm    Post subject: Reply with quote

moocha wrote:
USe Ed Catmur's dep script - http://www.catmur.co.uk/my-bin/dep - to figure out reverse dependencies.


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
View user's profile Send private message
UsernameAlreadyTaken
n00b
n00b


Joined: 14 Sep 2005
Posts: 1

PostPosted: Wed Sep 14, 2005 1:11 am    Post subject: dep script Reply with quote

swingkyd wrote:
moocha wrote:
USe Ed Catmur's dep script - http://www.catmur.co.uk/my-bin/dep - to figure out reverse dependencies.


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
View user's profile Send private message
cchildress
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 90
Location: Tennessee, United States

PostPosted: Sat Feb 24, 2007 5:34 am    Post subject: Reply with quote

Is any of this still necessary to remove KDE fully?
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 977
Location: The Village, Portmeirion

PostPosted: Sat Feb 24, 2007 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
cchildress
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 90
Location: Tennessee, United States

PostPosted: Sat Feb 24, 2007 6:30 pm    Post subject: Reply with quote

Thanks for the tip! I'm glad I've discovered dep, it's a great tool.
Back to top
View user's profile Send private message
georgir
n00b
n00b


Joined: 29 Nov 2007
Posts: 9

PostPosted: Tue Jan 29, 2008 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum