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

About the Author

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.

Comments

avatar
0 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
newest oldest most voted