Portage maintenance
This is a wiki page. Be bold and improve it!
If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.
Page for tips and tricks and general maintenance.
Find files that were previously installed but do not belong to any ebuild:
find -O3 /lib64 -type f -print0 | xargs -0 qfile -o
Repository
General information about creating or maintaining portage repositories (ebuild repositories)
https://wiki.gentoo.org/wiki/Ebuild_repository
https://wiki.gentoo.org/wiki/Project:Portage/Sync
https://wiki.gentoo.org/wiki/Repoman
https://wiki.gentoo.org/wiki/Repository_format
When creating a local repository, it appears that there is an undocumented requirement for the name of the repository. It shouldn't include spaces nor some special characters:
# cat /usr/local/portage/profiles/repo_name
John Doe's overlay
# emerge ...
=!!! Section 'John Doe's overlay' in repos.conf has name different from repository name 'john-doe-s-overlay' set inside repository
The solution is to rename the overlay with the dashes: 'john-doe-s-overlay'.
Layman
https://wiki.gentoo.org/wiki/Layman
First understand the current configuration of the system:
layman (-L|--list)
layman (-l|--list-local)