Long Live Open Source Software !!

29 September

[Tutorial] How To Install Application in Linux

Some newbies think that installing application in their linux is scary thing. Because they don’t know how exactly to do it. Usually, because they only know one way to install application. If they face different way, they’ll confuse and desperate. :mrgreen:

In this tutorial, i’ll show you many different ways to install new application into your linux computer. Because there is many different installer. So just stay and keep reading this tutorial. Hope it will help you.

1. Install application using package manager

I think, this is most widely known way to install aplication. Some distro like debian and its descendant use apt or dpkg as their package manager. Redhat and friend use rpm. Basically, they all have a repository and the package manager was just an interface to download and set package’s configuration. Every package (or installer) has its own default configuration so by using this way you just have to choose which package to be installed and they will get it done for you.

For the hardest way, you can type

dpkg -i yourdebfile.deb

(for Debian family) or

rpm -ivh yourrpmfile.rpm

(for Redhat family) in your console to install and configure new application. You can think .deb and .rpm file is software installer file just like any setup.exe in Windows.

For easier way, you can use apt to install new application. Before you can use apt, you must configure it first by editing

/etc/apt/sources.list

Maybe I’ll write later how to configuring apt for newbies. Ok, after you have configured apt, type

apt-get update

to make sure you have the latest software package definition. And then type

apt-get install yourpackagename

to install application. Actually, apt is using dpkg to install new application. But the different is that apt will install application’s dependency too. So you don’t have to worry about software dependency by using apt.

For some people, the method above still too difficult to use. Luckily, linux developer hasn’t stopped develop yet. There is GUI tool to install new application to your computer. In Debian family, you’ll know Synaptic. In RPM-based family, you’ll know kyum or yumex. And many more. By using GUI frontend like Synaptic, you just have to click the desired application and press Apply and wait for your application to be installed.

2. Install application from source

Sometimes, you won’t find your desired application in binary form. So, you have to install application from source. This ‘installer’ usually in compressed archive file like tar.gz or tar.bz2. All you have to do is extract the source file to specified directory. Read its README file if exists. Follow the instruction written.

If you still don’t know what to do just remember this. There are 3 main steps in compiling application from source. It is configure, make, and make install. In configuring step, sometimes you must add additional option like

./configure --prefix=/usr

After that, next step is compiling the source by typing

make

in console. After that, your linux will start compiling and you’ll see many text showed up like fall from the sky.:mrgreen:.If an error occured, try RTFM or googling for solution.

If previous step success, run

make install

as root user. It will copy the binary file needed to some place. And then you can start using your new application. Actually, sometimes compiling application from source won’t be easy. But i’m sure you’ll meet 3 steps above when compiling. Don’t forget that before compiling, you must fullfill the software dependency.

That’s all for today, hopefully this tutorial can help you. I’m sorry for my poor english. But i’ll keep learning. Thanks guys for reading this short article.

Be Sociable, Share!

Maybe you like this post too :