Tasksel – Easily and Quickly Install Group Softwares in Debian and Ubuntu

[‘

n

One of the several tasks that a Linux user is bound to handle is software installation. There are possibly two methods especially on Debian/Ubuntu Linux systems you can use for installing software. The first is installing individual packages using package management tools such as apt-get, apt, aptitude and synaptic.

n

The other is by using Tasksel, is a simple and easy-to-use tool developed for Debian/Ubuntu that provides users an interface to enable them to install a group of related packages such as LAMP Server, Mail Server, DNS Server, etc. as a single pre-configured task. It works comparably to meta-packages, you will find nearly all tasks in tasksel present in meta-packages.

n

How To Install and Use Tasksel in Debian and Ubuntu

n

To install tasksel, simply run the command below:

n

$ sudo apt-get install taskselrn

n

After installing Tasksel, it enables you to install one or more predefined group of packages. User need to run it from the command line with a few arguments, it provides a graphical user interface as well where one can select software to install.

n

The general syntax of running tasksel from the command line is:

n

$ sudo tasksel install task_namern$ sudo tasksel remove task_namern$ sudo tasksel command_line_optionsrn

n

To start the tasksel user interface, issue the command below:

n

$ sudo taskselrn

n

Tasksel - List of Software Collection
Tasksel – List of Software Collection

n

Where you see an asterisk (*) without the red highlighter, it means that software is already installed.

n

To install one or more software, use the Up and Down arrows to move the red highlighter, press the Space bar to select the software and use the Tab key to move the to <ok>. Then hit Enter button to install the selected software as shown in the screencast below.

n

Tasksel - Install Software Group

n

Alternatively, you can list all tasks from the command line as well, by using the command below. Note that in the first column of the list, u (uninstalled) means software is not installed and i (installed) means software is installed.

n

$ sudo tasksel --list-tasks rn

n

Sample Output

n

u manualtManual package selectionrnu kubuntu-livetKubuntu live CDrnu lubuntu-livetLubuntu live CDrnu ubuntu-gnome-livetUbuntu GNOME live CDrnu ubuntu-livetUbuntu live CDrnu ubuntu-mate-livetUbuntu MATE Live CDrnu ubuntustudio-dvd-livetUbuntu Studio live DVDrnu ubuntustudio-livetUbuntu Studio live CDrnu xubuntu-livetXubuntu live CDrnu cloud-imagetUbuntu Cloud Image (instance)rnu dns-servertDNS serverrnu edubuntu-desktop-gnometEdubuntu desktoprnu kubuntu-desktoptKubuntu desktoprnu kubuntu-fulltKubuntu fullrnu lamp-servertLAMP serverrnu lubuntu-coretLubuntu minimal installationrnu lubuntu-desktoptLubuntu Desktoprnu mail-servertMail serverrnu mythbuntu-backend-mastertMythbuntu master backendrnu mythbuntu-backend-slavetMythbuntu slave backendrnu mythbuntu-desktoptMythbuntu additional rolesrnu mythbuntu-frontendtMythbuntu frontendrnu postgresql-servertPostgreSQL databasernu samba-servertSamba file serverrnu tomcat-servertTomcat Java serverrni ubuntu-desktoptUbuntu desktoprn...rn

n

You can find a full description of all tasks in /usr/share/tasksel/*.desc and /usr/local/share/tasksel/*.desc files.

n

Let’s install some group of software packages such LAMP, Mail Server, DNS Server etc..

n

Install LAMP stack Using Tasksel

n

As an example, we shall cover the installation of LAMP (Linux, Apache, MySQL and PHP) stack in Ubuntu 16.04.

n

You can either use the user interface or the command line option, but here, we shall utilize the command line option as follows:

n

$ sudo tasksel install lamp-serverrn

n

Install LAMP Server Using Tasksel in Ubuntu

n

While the Mysql package is being installed, you will be prompted to configure Mysql by setting a root password. Simply enter a strong and secure password, then hit the Enter key to proceed.

n

Wait for the installation to complete. After all is done, you can test the LAMP stack installation as follows.

n

$ sudo task --list-tasks | grep “lamp-server”rnrni lamp-servertLAM serverrn

n

Similarly you can also install Mail Server or DNS Server as shown:

n

$ sudo tasksel install mail-serverrn$ sudo tasksel install dns-serverrn

n

Look through the tasksel package man page for more usage options.

n

$ man taskselrn

n

As a conclusion, tasksel is a simple and easy-to-use interface for users to install software on their Debian/Ubuntu Linux systems.

n

However, which method of software installation i.e using apt-get/apt/aptitude package management tools or tasksel, do you actually prefer and why? Let us know via the comment section below, as well as any suggestions or other vital feedback.

n

‘]