Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]proper unmerge
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
wanne32
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2023
Posts: 75

PostPosted: Fri Jan 10, 2025 10:52 am    Post subject: [solved]proper unmerge Reply with quote

Is there a way to remove a package with all packages that depend on it?

Last edited by wanne32 on Fri Jan 10, 2025 12:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1043
Location: Somewhere in Denmark

PostPosted: Fri Jan 10, 2025 11:34 am    Post subject: Reply with quote

...
Edited... - didn't mean to suggest using --unmerge - dunno what I was thinking


Last edited by freke on Fri Jan 10, 2025 11:41 am; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54680
Location: 56N 3W

PostPosted: Fri Jan 10, 2025 11:39 am    Post subject: Reply with quote

wanne32,

Code:
emerge -cva <package>
will refuse to remove <package> if something depends on it.
That's always good to know, --unmerge will rip out <package> regardless.

With <package> gone, as freke says, --depclean will remove any dependencies that were unique to <package>.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4685
Location: Germany

PostPosted: Fri Jan 10, 2025 12:11 pm    Post subject: proper unmerge Reply with quote

Code:
emerge --deselect cat/pkg
emerge -a --depclean
Back to top
View user's profile Send private message
wanne32
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2023
Posts: 75

PostPosted: Fri Jan 10, 2025 12:15 pm    Post subject: Reply with quote

@NeddySeagoon: Thanks!
@Josef.95: Won't work since there are packages that still depend it.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4685
Location: Germany

PostPosted: Fri Jan 10, 2025 2:06 pm    Post subject: Reply with quote

wanne32 wrote:
Won't work since there are packages that still depend it.
Yes, this the good thing, with this way it don't breaks reverse deps
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