Debian / Ubuntu tasksel: Install Group Software (tasks) such As DNS / Web Server In A Single Click

by on February 13, 2009 · 10 comments· LAST UPDATED September 2, 2012

in , ,

I'm looking for 'yum groupinstall group' like command under Debian or Ubuntu Linux. How do I install group of softwares such as DNS or LAMP server in a single command?

You need to use tasksel command. It is a software installation application that is an integral part of the Debian installer and works under Ubuntu Linux too. It groups some packages by tasks and offers the user an easy way to install the packages for that task. It provides the same functionality as using conventional meta-packages.

How do I use tasksel?

tasksel has been included as part of the base installation under both Debian and Ubuntu Linux (since Ubuntu Edgy). tasksel shows all available tasks and allows to user to select ones to install. Simply type tasksel as root user at a shell prompt:
$ sudo tasksel
OR
# tasksel
You will see software selection menu as follows:
Fig.01: Debian Linux tasksel command in action

Fig.02: Ubuntu Linux tasksel command in action

Select required group by pressing space bar followed by OK button.

How do I list available groups from a command prompt?

The option --list-tasks list on screen the tasks (packages) that would be displayed in the tasksel TUI (text user interface). You can use it as follows:
$ tasksel --list-tasks
Sample output:

u server	Basic Ubuntu server
u dns-server	DNS server
u edubuntu-server	Edubuntu server
i lamp-server	LAMP server
u mail-server	Mail server
i openssh-server	OpenSSH server
u postgresql-server	PostgreSQL database
i print-server	Print server
i samba-server	Samba file server
u tomcat-server	Tomcat Java server
u virt-host	Virtual Machine host
u ubuntustudio-graphics	2D/3D creation and editing suite
u ubuntustudio-audio	Audio creation and editing suite
u edubuntu-desktop-kde	Edubuntu KDE desktop
u edubuntu-desktop-addon	Edubuntu desktop
u kubuntu-desktop	Kubuntu desktop
u ubuntustudio-audio-plugins	LADSPA and DSSI audio plugins
u mythbuntu-desktop	Mythbuntu additional roles
u mythbuntu-frontend	Mythbuntu frontend
u mythbuntu-backend-master	Mythbuntu master backend
u mythbuntu-backend-slave	Mythbuntu slave backend
u mobile-mid	Ubuntu MID edition
u ubuntustudio-desktop	Ubuntu Studio desktop (must install)
i ubuntu-desktop	Ubuntu desktop
u mobile-mobile	Ubuntu mobile
u ubuntustudio-video	Video creation and editing suite
u xubuntu-desktop	Xubuntu desktop
u edubuntu-live	Edubuntu live CD
u kubuntu-kde4-live	Kubuntu live CD
u kubuntu-live	Kubuntu live CD
u kubuntu-dvd-live	Kubuntu live DVD
u mythbuntu-live	Mythbuntu live CD
u ubuntu-live	Ubuntu live CD
u ubuntu-dvd-live	Ubuntu live DVD
u xubuntu-live	Xubuntu live CD

The --task-desc task option displays the extended description of the given task:
$ tasksel --task-desc virt-host
Sample output:

Packages necessary to host virtual machines

How do I install package group (tasks) from a command line?

To install lamp-server, enter:
$ sudo apt-get install lamp-server^
And yes, you CANOT forgot the caret (^) symbol. You need to put ^ at the end of package name; otherwise it will give an error which read as follows:

E: Couldn't find package lamp-server
Further readings:

Read tasksel man page for more info:
man tasksel

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 10 comments… read them below or add one }

1 IRAN February 13, 2009 at 12:57 pm

Thanks ,a lot

Reply

2 Ashwani February 13, 2009 at 3:33 pm

Jai Hind

Thanks Vivek very nice info
i always love to read/test nixadmin blog.. :-) even i wait for it..eagerly

Reply

3 toddmb February 13, 2009 at 4:29 pm

I had no idea this existed for ubuntu/debian.
Usually, I’d only expect something like this from Suse or RedHat.

Thank you.

Reply

4 Mark Sanborn February 13, 2009 at 5:34 pm

Very thorough article.

I found out about this after I wrote an article about installing LAMP manually, but I am glad I know it.

Reply

5 Slavko February 13, 2009 at 6:31 pm

aptitude works without the carrot (^) ;-)

Reply

6 Manoj February 14, 2009 at 6:15 am

Thanks a lot !! :)

Reply

7 Shubhadeep August 4, 2009 at 4:32 am

Thank you very much. It saved me a lot of time. :) :)

Reply

8 AHappyEnding November 20, 2009 at 1:20 am

A ^ is a caret, not a carrot. =)

Reply

9 mallappa November 23, 2009 at 3:34 am

thanks a lot………!!.. :)

Reply

10 Alan Homobono March 23, 2011 at 5:14 pm

Why the “Basic Ubuntu server” option doesn’t appear on my Ubuntu?

Actually the task list appears as follows:

[code]u eucalyptus-walrus Cloud computing: Walrus storage service
u eucalyptus-simple-cluster Cloud computing: all-in-one cluster
u eucalyptus-cluster Cloud computing: cluster controller
u eucalyptus-node Cloud computing: node controller
u eucalyptus-storage Cloud computing: storage controller
u eucalyptus-cloud Cloud computing: top-level cloud controller
u dns-server DNS server
u lamp-server LAMP server
u mail-server Mail server
u openssh-server OpenSSH server
u postgresql-server PostgreSQL database
i print-server Print server
u samba-server Samba file server
u tomcat-server Tomcat Java server
u uec Ubuntu Enterprise Cloud (instance)
u kubuntu-desktop Kubuntu desktop
u kubuntu-netbook Kubuntu netbook
u ubuntu-netbook Ubuntu Netbook
i ubuntu-desktop Ubuntu desktop
u edubuntu-dvd-live Edubuntu live DVD
u kubuntu-netbook-live Kubuntu Netbook Remix live CD
u kubuntu-live Kubuntu live CD
u kubuntu-dvd-live Kubuntu live DVD
u netbook-live Ubuntu Netbook live environment
u ubuntu-live Ubuntu live CD
u ubuntu-dvd-live Ubuntu live DVD
u xubuntu-live Xubuntu live CD
u manual Manual package selection
[/code]

That’s to say, without the first option cited earlier.

Reply

Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: