grep is a very useful command to learn no matter which linux distribution you are using. For example I wanted to list all php 7.1 available packages. I can use grep command to filter out the output and show only relevant package names.
apt-cache pkgnames | grep php7.1
Leave a Reply