How to use apt to list available packages?

advertisement

debian apt, debianJust installed Debian and looking for ways to list all available packages using apt. After some search, i found that you can use apt-cache to list all available packages in debian.

To list all available packages from apt, follow the steps below:-

# this will list all packages available thru apt-get
$ apt-cache pkgnames

# this will only return you the relevant result
$ apt-cache search 'your search term here'

# this only return result match `postgresql-8*`
$ apt-cache search 'postgresql-8'

Tags: , , , ,


Posted at May 27th, 2009 by chua

If you think this article helps you to solve your problem and clear your headache, feel free to buy me a drink :)


Leave a Reply