write packages file to tmp so a lost connection doesn't mean corruption
update package index fetching