Ubuntu: 4 Ways to Install Programs or Packages

Home -> UNIX -> Linux

1804 views

From the computer of: incursor (7 recipes)
Created: Mar 02, 2008     Updated: Mar 03, 2008


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

This howto describes the simple, common methods for installing packages in Ubuntu.

1. Add/Remove Programs Menu

This is obviously the first method you'll learn, because it is the most beginner friendly way to install packages.

To access it, click Applications in the menu bar and select Add/Remove...

In the window that opens up, just select what you want to install, and then Ok.




2. Terminal: Apt-get Install

To use this, you have to know the name of the package as it is recognized by the Synaptic Package Manager.

Once you have the name of the package, type:

sudo apt-get install [Name of package]



in the terminal, and provide your password when it requests it.

3. Tarballs

If you have downloaded a file with tar.gz as the filetype, then this method is the way to go.

First, extract the package to your home folder.

Then, in the terminal, type:

cd /home/[username]/[Extracted tarball's folder]


./configure


make


sudo make install



Provide your password when it asks for it.

4. Debs/RPMs

To install .deb packages, double click the file and click Install Package.

Installing RPMs will require you to convert them to .deb.

To do this, install Alien using:

sudo apt-get install alien



And convert using:

sudo alien -k name-of-rpm-file.rpm

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Ubuntu: Creating a repository using APTonCD
  Ubuntu: Enable DVD Playback
  Ubuntu : Installing, Removing, and Searching for Packages & Apps from Terminal
  Ubuntu: Install the Ubuntu Studio Theme
  Upgrade Ubuntu From Dapper(6.06) to Edgy(6.10)
  Ubuntu 7.10: How to Install KDE 4.0
  Ubuntu: Install Compiz Config Settings Manager to Configure Desktop Effects
  Ubuntu: Add Applications to the Startup Programs
  Build from RedHat source package (.src)
  Ubuntu: What Version am I Running?

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.