Friday 29 July 2011

Installing Softwares in Ubuntu


There are several ways of doing so
1.       Through ubuntu software center
a.       Search for the repositories(these are the locations where packages are present) in google.
b.      Add the repository in the software sources that is present in Edit -> Software sources.
c.       Copy the repository in the sources list.
d.      Update the software sources.
e.      Now type in the software name in the search box of the software sources.
f.        Click on install button and your software is installed.
g.       If u don’t see your software go to start menu right click on it , go to edit menu and check in the software from there.
2.       Through the Terminal using apt get
a.       Repeat the steps a to d from the previous steps.
b.      Now go to terminal.
c.        Now write the following code
apt-get install <package name>
d.      For resolving dependencies

apt-get install -f <package name>

e.      And your software is installed.
3.       Through terminal using debian packages (having extension .deb)
a.        Repeat the steps a to d from the previous steps.
b.      Now go to terminal.
c.        Now write the following code
dpkg install <package name>
d.      If it shows dependencies for the software(ie. Some more supporting file like lib files are need use this statement instead

dpkg install –f <package name>

e.      And your software is installed.
4.       Through terminal but using source files
a.       Download the source files from the net
b.      Most softwares  come with a readme file which defines the kind of commands it supports
c.       These are few set of commands
                                                               i.      Make
1.       Go to the source directory
2.       Then type in the following commands
make
make install

                                                             ii.      Cmake
1.       Go to the source directory
2.       Then type in this command
cmake

No comments:

Post a Comment