Usually, if we need a packet like DHCP, LAMPP, ect, we use apt-get install <Packet Name> or dpkg.

Now, you can use Tasksel command for installaing paket on ubuntu server.