Installing software on Ubuntu

 by Thundermoon99
software center.png
synaptic.png
Gdebi.png
Introduction

By default, many useful programs are already installed when you put Ubuntu onto your computer. However, you may need a particular piece of software that serves a purpose not served by the default applications. You might just want to try an alternative program to one which is already installed. In other words, you need new software.
If you'd like to get some background information on what's happening when you install software (which can sometimes be technical), read Packages and Package Management. If you just want to get started installing new programs, you can skip straight to Installing a Package.

Packages and Package Management

This section covers the basic concepts of packages and package management. You will learn about what a package is, the differences between different types of package and also how package management works on Ubuntu.

What is a package?

Software is a very broad term, and is generally taken to mean a program which you can run on your computer. However, such programs often need other resources to work. When you install software, thousands of files may be required just to let the program start! When you think that they all have to be put in exactly the right location, and some of those files may need to be changed depending on what type of computer you have, it can all get very complicated. Luckily, Ubuntu can look after this complexity.
Ubuntu uses packages to store everything that a particular program needs to run. A 'package', then, is essentially a collection of files bundled into a single file, which can be handled much more easily. In addition to the files required for the program to run, there will be special files called installation scripts, which copy the files to where they are needed (amongst other things).

Source or Binary?

Normally, when someone makes a package for a program, they put all of the source code for the program into that package. Source code is written by programmers and is essentially a list of instructions to a computer which humans are able to read and write. Computers can only understand this code if it is interpreted for them into a form that they can use directly. One such way of interpreting source code for a computer is by translating or compiling it into binary, which computers can understand.
So why don't the people who make the package (called packagers) just convert it into binary from the start? Well, different computers use different types of binary, so if you make a binary package for one type (like an Intel PC), it won't work on another (like a PowerPC).
Source packages are simply packages which just include source code, and can generally be used on any type of machine if the code is compiled in the right way.
Binary packages are ones which have been made specifically for one type of computer, or architecture. Ubuntu supports the x86 (i386 or i686), AMD64 and PPC architectures. The correct binary packages will be used automatically, so you don't have to worry about picking the right ones. To find out which one you are using, open Applications → Accessories → Terminal, type uname -m then hit the enter key.
 
Remove these adsRemove these ads by Signing Up

Step 1: Basics

software center.png
Installing a Package

This section explains how to install packages using the various tools available in Ubuntu,
Via your web browser
In the Ubuntu Documentation, you will sometimes find sentences like for example:
" To install this software in Ubuntu, install the following package: supertux. "
Click on the name of the package ("supertux" in the example):
    if the apturl protocol is enabled on your computer, you will be proposed to install the package called "supertux".
    if not, please follow instructions of the AptURL page to enable apturl protocol on your computer.
Via a basic graphical method
Note that some packages can't be installed via this method, in this case please use another method.
for Ubuntu: "Sofware Centre "
In recent versions of Ubuntu, the "Add/Remove" option in the Applications menu has been replaced by the Ubuntu Software Center.
for Kubuntu : "Add/Remove Programs"
Kubuntu's new and easy method of installing packages is to use the 'Add/Remove Programs' tool. Click K-Menu → Add/Remove Programs to start it.
Computothought says: Sep 9, 2012. 9:08 PM
The things I might add is:

$ sudo apt-cache search "packagesname/subject" is a wonderful command for searching for packages on the command line.

You want to run apt-get update before installing packages from the command line.

Also it is important to know the repositories or where the system looks for programs is in /etc/apt/sources.list

Some files in linux are in the tar.gz format (kind of like a zip file) so you have to extract the files or file and follow the instructions to install the software..

Do not like the new Ubuntu interface as it is less efficient than the traditional gnome, kde, and or the other traditional gui interfaces. Never was fond of George Jetson era "Rudi os" type interfaces. W8 seems to have that same problem also.
Thundermoon99 (author) in reply to ComputothoughtOct 4, 2012. 12:12 PM
the new Ubuntu GUI is a little clunky like there are some things that i like more on the Unity GUI like how you can click and drag around the pages into full, half or minimized windows but thats pretty much it I recently went back to 10.04. and as for the tarballs i am working on that now along with other things lol
SexySTUD.nu.1 says: Sep 9, 2012. 10:18 PM
I believe this was a GREAT INSTRUCTABLE!! especially with steam coming to linux. I am a pretty beginning advanced user (if thats a thing), but for new ubuntu users this instructible was well documented and organized among the best. As far as "your own work" I support that to a point and not to harsh on anyone by any means but to my knowledge it doesnt say you cannot elaborate on something. He is supporting open source material (ubuntu) and first of all its free to distribute, so I dont think that it being your own work would apply to a site like this. Especially concidering its a free product to begin with.

Once again Great job Thundermoon99. Keep up the support/acknowledgement of the linux world. Its something we need more of on this site. :)
Thundermoon99 (author) in reply to SexySTUD.nu.1Oct 4, 2012. 12:07 PM
thank you :)
Kiteman says: Sep 9, 2012. 1:38 PM
"I got this all off the Ubuntu website..."

Instructables are supposed to be your own work.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!