Installation is the reverse of removal.
Do not re-use a hub assembly after it has been disassembled.
After replacing the rear hub assembly, refill the brake fluid and bleed the brake line.