Ubuntu – using apt-cache search


I am learning how to use apt. When I do an apt-cache search git
to see all packages matching git, I see a bunch of packages whose
descriptions have nothing to do with git. Why is this so and
how can I fix it? (Ubuntu 12.04.2 LTS).

Also, why is the search functionality found in a command
that has "cache" in its name? What does search functionality
have to do with caches?


Best Answer

If you want only to search by name, use the --names-only argument. For more information, read the man apt-cache, it would be useful.

Related Question