Installation
Tasksel is present on all versions of Ubuntu's installer
Usage
To run tasksel from the command line, type: sudo tasksel
the tasksel menu will be shown:
Already-installed tasks will have an asterisk beside their name. Select a task by scrolling down and pressing space. This will put an asterisk beside the selected task and mark it for installation. Removing an asterisk marks the task for removal. Once "ok" is selected the task installations and/or removals will take place using apt-get.
Command line arguments
You can also directly specify which task to install.
For instance, to add the Apache-MySQL-PHP stack to an existing system:
sudo tasksel install lamp-serverFor complete options, see the tasksel manpage: man tasksel
source:http://linuxpoison.blogspot.com/2010/07/13578167755932.html