How do I list all package names in one section? If, for example, I want to list all applications in section "web", which command do I need to input?

  • 1
    What are those "sections" you mention? – guntbert Mar 4 '14 at 15:40
  • Enter cache, the information of Firefox, including description, Priority, Section.... This Section is what I means – user254701 Mar 4 '14 at 16:47
  • ok, i means How to retrieve a list of installed packages on ubuntu sorted by category – user254701 Mar 5 '14 at 7:54

In terminal type:

apt-cache search 'web'

It will list all packages in this category and its usage.

Change "web" with the category you want.

  • How is dragonplayer, or amarok or others from your output related to "web"? – Radu Rădeanu Mar 4 '14 at 15:47
  • maybe its considered by many categories – nux Mar 4 '14 at 16:06
  • I'm sorry but this does not do what you think it does. Have a look at man apt-cache. The search section explains that it looks through the package names and descriptions. It does not in any way look for categories. That's why this command returns 3249 packages instead of the 1754 that are actually in the "Web" category. – terdon May 20 '14 at 18:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.