02 June 2010

Installing applications in Ubuntu using the APT command-line

  1. From the desktop, launch a new terminal session by selecting: Applications > Accessories > Terminal. A new terminal window will display.
  2. At the prompt (the blinking cursor), type: sudo apt-get update then press Enter. This action will reload the package information so that APT (Advanced Package Tool) becomes aware of any new, removed or updated software that may be available for your system.
  3. Once APT has obtained the most recent package information, type: sudo apt-cache search frozen bubble then press Enter. This tells APT to search the cached package list that you updated in the previous step. The result of your search will look something like this: fb-music-high - High quality, large music files for Frozen-Bubble
    fb-music-low - Lower quality, small music files for Frozen-Bubble
    frozen-bubble - Pop out the bubbles!
    frozen-bubble-data - Data files for Frozen-Bubble
    junior-puzzle - Debian Jr. Puzzles
  4. By reading the results of our search, it should be clear that the package we want is the third from the top, titled: frozen-bubble with the description: Pop out the bubbles!. If it is not clear, you may view the complete details of the package in question by typing: sudo apt-cache show frozen-bubble then pressing: Enter. This returns: Package: frozen-bubble
    Priority: extra
    Section: universe/games
    ...
    Description: Pop out the bubbles!
    Frozen-Bubble is a clone of the popular "Puzzle Bobble" game, in which
    you attempt to shoot bubbles into groups of the same color to cause them
    to pop. It features 100 single-player levels, a two-player mode, music
    and striking graphics.
  5. By reading the details of the package, it is now obvious this is the game we are looking for. To install, simply type: sudo apt-get install frozen-bubble then press: Enter. If additional packages (referred to as dependencies) need to be installed, they will be added to the list displayed in the terminal window. When the summary is shown, you will have an opportunity for a final review before installing. When prompted, type either: y to confirm the installation or n to cancel. Since we cannot wait to play Frozen Bubble, type: y then press Enter.
  6. Once installation is complete, you may close the terminal by simply typing: exit then pressing: Enter. You may now access the newly installed application. In our case Frozen Bubble is located in: Applications > Games. Though this particular application is installed in a fairly obvious location, it is possible that you may not be so lucky with all of your installations. In those instances, a little hunting may be necessary.

No comments: