Sunday, December 15, 2013

Basic Commands - Package Installation in Ubuntu

This post will help you with the basic commands for installation of packages in command-line in Ubuntu (12.04).

1. To install a debian package (.deb) downloaded from internet.
$ sudo dpkg -i <package name.deb>
2. To install a package from ubuntu repository.
$ sudo apt-get install <package name>
Note: you can pass -y option (yes for installation) in the above command to skip the y/n prompt for installation.

3. To search for a package from ubuntu repository.
$ sudo apt-cache search <package name>


No comments:

Post a Comment