Search packages in debian based distros

You are probably familiar with:

apt-get install <package-name>

command to install new packages to your debian based distro.

You can easily search for a package from command line with the following command:

apt-cache search <package-name>

if you are not completely know package name get little help from grep and pipe (|) combinations. For example if you want to install setup-tools package for python then search can be:

apt-cache search python | grep setup

Then you can install the package.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s