add package repositories transactionally