A good one for packing up a Gentoo installation should you happen to forget to emerge your system using the -b (create a binary package as well as compile and install source) flag to emerge.
emerge sync ; emerge -up world
for i in `qpkg -I -nc`
do
quickpkg $i
done
tar -cvf ~/portage-`date +%y%m%d`.tar /usr/portage
This will make a binary package of every package you've compiled and installed. Using this instead of a tarfile from / allows you to reinstall any single package or even use them elsewhere on another system.




Reply With Quote