Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Intended way to remove a package from the world set
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
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 361

PostPosted: Sat Jul 13, 2024 4:46 pm    Post subject: [SOLVED]Intended way to remove a package from the world set Reply with quote

For those familiar with arch's pacman, I am looking for the equivalent of pacman -D --asdep $PKG.

To add an installed package to the world set we can use emerge -Ua $PKG. For example:

Code:
bstaletic@Gallifrey ~ % doas emerge -aU clang

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.75 s (backtrack: 0/20).



 * sys-devel/clang

Would you like to add these packages to your world favorites? [Yes/No]
>>> Recording sys-devel/clang in "world" favorites file...


Is there a similar way to remove a thing from the world set?
I know I can manually edit /var/lib/portage/world, but any way through emerge itself?


Last edited by bstaletic on Sat Jul 13, 2024 4:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 231
Location: Gentoo forums

PostPosted: Sat Jul 13, 2024 4:49 pm    Post subject: Re: Intended way to remove a package from the world set Reply with quote

Code:
# emerge --deselect <category-name/package-name>


man emerge wrote:
--deselect [ y | n ], -W
Remove atoms and/or sets from the world file. This action is implied by uninstall actions, including --depclean, --prune and --unmerge. Use --deselect=n in order to prevent uninstall actions from removing atoms from the world file.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 361

PostPosted: Sat Jul 13, 2024 4:53 pm    Post subject: Reply with quote

Yup, that works. I was sure I have tried that once and that it triggered a rebuild.
Thanks, @eeckwrk99!
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