Install SQL Server Replication
Replication components can be installed by using the SQL Server Installation Wizard or at a command prompt. Install replication when you install SQL Server, or when you modify an existing instance.
After replication components are installed, you must configure the server before you can use replication. For more information, see Configure Distribution in SQL Server Books Online.
If you install replication components when you modify an existing instance of SQL Server, you must stop and restart SQL Server Agent after the installation is completed. This action helps ensure that SQL Server Agent recognizes the replication agent subsystems and can call replication agents from job steps.
To install replication when installing a new instance of SQL Server