What is "Task" in the output of "apt-cache show package_name"?

Solution 1:

The Task field in your output means that the package is part of the task edubuntu-desktop-gnome for example.

This function is similar to that of meta-packages, and, in fact, most (but not all) of the tasks available from tasksel (task select) are also available as meta-packages.

To install tasksel type:

apt-get install tasksel

You can list all available tasks with this command (output stripped), but tasksel must be installed first:

root@host:~# grep 'Task\|Description' /usr/share/tasksel/ubuntu-tasks.desc
...
Task: minimal
Description: Minimal base system
...

You can also invoke tasksel as root by:

root@host:~# tasksel

tasksel

You may know this from the installation routine, because those "tasks" are normally installed during early system setup.

So, those packages in apt-cache show that have not the Task field (pdfgrep in your question) are not part of a task and will not be installed when you install a task via it's meta-package or tasksel. On the contrary inkscape is part of many different tasks, whose meaning you can find in /usr/share/tasksel/ubuntu-tasks.desc.