Optimizing Gentoo: Vacuum Portage Configurations
All systems collect dust but with the configurability of Gentoo, we tend to collect a bit more dust in our world than other distributions. This will be a quick walkthrough of helpful one-liners that assist with keeping /etc/portage/package.* clean.
In all of the examples presented, replace /etc/portage/package.use with the file you are currently cleaning.
Check for Multiple Occurences of an Atom
for atom in $(gawk '{ print $1 }' /etc/portage/package.use) do [ "${grep ${atom} /etc/portage/package.use | wc -l)" -gt "1" ] && echo ${atom} done
Comments
Comments powered by Disqus