bash: Grep installed packages