View previous topic :: View next topic |
Author |
Message |
bstaletic Guru
Joined: 05 Apr 2014 Posts: 359
|
Posted: Sat Jul 13, 2024 4:46 pm Post subject: [SOLVED]Intended way to remove a package from the world set |
|
|
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 |
|
|
eeckwrk99 Apprentice
Joined: 14 Mar 2021 Posts: 232 Location: Gentoo forums
|
Posted: Sat Jul 13, 2024 4:49 pm Post subject: Re: Intended way to remove a package from the world set |
|
|
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 |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 359
|
Posted: Sat Jul 13, 2024 4:53 pm Post subject: |
|
|
Yup, that works. I was sure I have tried that once and that it triggered a rebuild.
Thanks, @eeckwrk99! |
|
Back to top |
|
|
|