Monday, September 27, 2010

How to Install Software in Ubuntu


12:36 PM |

Want to install programs you want, but because you are new to Linux, don't understand how it works? This article will show you how to install simple programs in Ubuntu. Please note that in versions 9.10 and newer, there is a graphical "Ubuntu Software Center" that replaces the techniques used in this article.
Graphically

  1. Open your main menu, select System, click on Synaptic (or Adept Updater, depending on your distribution).
  2.  Type a query into the search
  3.  Select a package you think is relative to what you want
  4.  Click "Install"



Command-line

  1. Open up terminal (Konsole, xterm, or any other command line/bash shell interface)
  2. Type sudo su (sudo as in superuser do, su as in "switch user") to get administrative privileges to install software
  3. Type your password if prompted.
  4. When it gives you a new cursor after something that looks like this, "root@computer:/#" where "computer" is the name of your computer:
  5. Type sudo aptitude install but don't hit enter! You need to know the package name of your program. "sudo aptitude search " will yield search results for your package when you supply it to the terminal. In some cases, it may automatically know which package you want, such as "sudo aptitude install firefox" Look on the package page of the Ubuntu distribution site.
  6. If you are not sure of the name of the program you are trying to install, you can use tab completion to try and find it (most major distributions have it.) Simply type the first few letters of the package you want to install and hit tab once or twice. For example, type fire and then hit tab, it will bring up all packages that begin with fire; firefox will be one of them.
  7. Wait for it to prepare to install the software package from the repository.
  8. If you are prompted whether or not to install, type "y". Next time if you would rather have it do it automatically, type sudo aptitude install package -y, package being the name of the package you are installing.
  9. Wait for it to finish installing, and close the terminal.
  10. It should be in the Main Menu under the appropriate category. If not, restart your computer.

Leave A Comment