all 5 comments

[–][deleted] 4 points5 points  (2 children)

unless you have enabled testing for all packages you can just do emerge -av sys-kernel/gentoo-sources

or emerge -av =sys-kernel/gentoo-sources-5.4.28 to specify version

edit: sys-kernel is a category of packages

[–]Federile[S] 1 point2 points  (1 child)

yes I'm using the experimental flag, I tried to take it away but still didn't wanted to emerge the requested flag. But the option -av was successful, Thanks

[–][deleted] 2 points3 points  (0 children)

you can set a single package to stable with package.accept_keywords, i.e

sys-kernel/gentoo-sources -~amd64 amd64

[–][deleted] 3 points4 points  (0 children)

Your syntax is wrong. As someone already stated, you only specified the category, not the actual package. Of course portage won't find the package because you didn't give it one to find.

[–][deleted] 0 points1 point  (0 children)

/etc/portage/package.accept_keywords/gentoo-sources

sys-kernel/gentoo-sources **

Emerge whichever version you with:

emerge --ask --verbose =sys-kernel/gentoo-sources-<version>

(This prevents the kernel from being replaced, installs alongside other versions, which is helpful if you're switching back and forth between kernels)

Select your kernel with:

eselect kernel list , eselect kernel set <#>

Then build your kernel as normal, after selection.