Find a package with Apt command – Ubuntu

apt-get install is a useful command in Ubuntu, it can help user easily install application, it just like yum in fedora core.however, sometime we do not know exactly what package name to be install. Here is apt-cache search come to place and solve it. We can search a package name available to install with following command

sudo apt-cache search 

For example, i want to install java sdk in Ubuntu, but i do not know the exatly package name to install, i can issue following command to search “java sdk”.

sudo apt-cache search java sdk

Got it, just install it with following command

sudo apt-get install sun-java6-sdk
author image

mkyong

Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities. Read all published posts by

Comments

avatar
3000
newest oldest most voted