Sunday, October 21, 2007

~ Installing files in Ubuntu thru Command Line

~ Installing via Terminal

To install anything which is available in the Ubuntu Repositories, first make sure all repositories are enabled in Synaptic package manager settings or by manually editing /etc/apt/sources.list

To search from the command line (like in Synaptic package manager)
sudo apt-cache search abc

To install a software abc (say).
sudo apt-get install abc

To remove abc
sudo apt-get remove abc

Complete removal (including configuration files)
sudo apt-get remove --purge abc

~ Installing a package manually

Suppose u have a debian package (abc.deb) and u want to install it. To do that, type in:

dpkg -i abc.deb

Suppose the package is in rpm format (abc.rpm)

For installing RPM packages, u need to have alien installed. Alien is available from the Ubuntu repositories.

sudo apt-get install alien (this is a one time procedure, do it only before ur first .rpm installation)

After u have successfully installed alien, install abc.rpm by typing in:

alien -i abc.rpm

No comments: