Gentoo: How to transfer the world file to a new host

This will transfer all the packages installed on the old host to the new host:

cd /var/lib/portage

cp world world.bak

scp 86.58.131.52:/var/lib/portage/world .

emaint --check world >> update

cat update | grep "is not installed" | sed "s/'\(.*\)' is not installed/\1/" | xargs emerge -v



(if mail-mta/ssmtp is blocking your MTA, edit the update file and move the line with the mta to the top)
Dette indlæg blev udgivet i Knowledge Base. Bogmærk permalinket.

Skriv et svar