I have just installed Ubuntu for the first time on PC, I have done some googling to get an idea about installing any application in Ubuntu but yet not clear about the proper procedure !!
Most of the time when I try to install any application. Example: Opera,
- I downloaded the Opera installable package from http://www.opera.com/.
- Ran the downloaded file but the installer hangs up.
<<OR>>
- If I try to install any installation package from Ubuntu Software Center/Software Source.
- Initially, it starts downloading but takes too long to process and fails almost in middle of 100%.
Question: Is there any reliable, proper and easy step-by-step procedure?
Best Answer
The preferred way of installing an application under Ubuntu is via apt-get or aptitude, personally I use aptitude due to that I've had better experiences with it overall, but the decision between using apt-get or aptitude is entirely up to you.
Only Aptitude can search for applications though, so let's say you'd like to install
Pidgin
, you'd want search for it to get the exact name:In this case, the package name is just
pidgin
, however, you'll see a lot of plugins and other stuff for Pidgin. To install Pidgin (or any of the other things seen here), you'd type:So, pidgin is just the exact name of the thing I wanted to install, I could take the name of anything else from the list, and it would install fine (except if it was already installed).
In other cases, the specific applications might not be available via aptitude, and then you have a few options to choose from usually:
Many applications offers a .deb package, which is basically what an .exe is for Windows, just simpler. A .deb is a Debian software package, kind of a binary package for Debian based systems (such as Ubuntu) You simply double click it from
Nautilus
, and then you enter your password, and click "Install Package", extremely simple! However, note that using this method you might not be able to update it via aptitude later on, however, the application might have it's own update feature, but that's rare. It's always preferred to add the PPA, then the application can be updated via aptitude, more on that in a second!Compiling from source is another option, which can require a little more effort, normally an
INSTALL
file would be available in the source, in which instructions would be present, such as dependencies for the install. If a specific application might have a dependency, you would normally install this by aptitude, just like showed above, however, it can be a real jungle when dependencies depends on other packages. Then for compiling, the usual procedure is:It's rare you have to do this though, it's usually only when you want bleeding-edge software, or small open source projects to be compiled.
This way is usually preffered over the two others, you add the PPA (personal package archive) to your list of PPAs. For instance, Shutter has a PPA. You add the PPA to your software sources (for instructions, check the shutter guide, it's pretty good), and then you run:
To update the software sources. And then you can simply install it by running:
There are probably a few other ways applications can be installed, usually if you download closed-source software, you would have a binary file (or .sh file), and then it's simply a matter of typing:
To start the application (or installation wizard).
Another thing is, sometimes you might end up with a
.exe
file which people say should run under Linux. Sometimes you can install it viaWine
, in other cases you can run it via Mono (you might have to install Mono, do that via aptitude!):