User:Luttztfz/checkworldfile
From Gentoo Wiki
Jump to:navigation
Jump to:search
checkworldfile
This is a parallel version of checkworldfile by Vaukai, which can be found under User:Vaukai/checkworldfile. It should work considerably faster on modern multi-core systems by utilizing GNU parallel.
root #
emerge --ask sys-process/parallel
#!/bin/bash
checkworldatom() {
if [ -n "$(qdepends -Qq $1)" ]; then \
echo '' ; echo 'checking '$1 ;
if [ -n "$(emerge -p --quiet --depclean $1)" ]; then \
echo $1' ok'
else
echo $1' should be deselected'
fi
fi
}
export -f checkworldatom
parallel --arg-file /var/lib/portage/world checkworldatom '{1}'