a

Crazy Discount All Item

Senin, 08 September 2008

ubuntu package

Installing packages (programs) and libraries

In Ubuntu there are two ways to install packages into your system.

You can install packages from the command-line Terminal or from the Synaptic Package Manager

How to install a package with Apt (from the command-line terminal)

  • Apt is the Debian Package Manager and is used in Ubuntu as well.
  • Start the command line terminal:
 System --> Accessories --> Terminal
  • Install a package by typing:
 sudo apt-get install package
  • To install the music player Amarok, for example:
 sudo apt-get install amarok
  • Remove a package:
 sudo apt-get remove package
  • To remove the Exaile music player, for example:
 sudo apt-get remove exaile
  • Apt checks the dependencies of a program automatically it is installed or removed.

How to install a package with Synaptic Package Manager

  • Start Synaptic Package Manager:
System --> Administration --> Synaptic Package Manager
  • Search for a complete or package using the Search Button.
  • Click the box(es) of the package(s) to be installed; it/(they) will be entered into the installation queue.
  • Press "Apply". Synaptic calculates the dependencies and installs the selected package as well as the packages on which it is dependent.

Searching for a package/program

There are several ways to find packages in the repositories.

Find a package in Synaptic

  • Open Synaptic:
System --> Administration --> Synaptic Package Manager
  • Press the Search button.

Select the fastest mirror

Find a package on the Ubuntu website

  • Search the Hardy packages at:

Find a package with Apt

  • Open a command-line terminal:
 Applications --> Accessories --> Terminal
  • Search for a package-name in the cache.
  sudo apt-cache search 
  • Example:
  sudo apt-cache search music player

Find a package in Aptitude

  • Aptitude is a menu-driven version of apt. It is invoked from the command-line terminal.
Applications --> Accessories --> Terminal
user> aptitude
  • Use the Search option similar to Synaptic Package Manager.

Add a program to the Applications menu

  • Right click on the menu bar to edit the menus.
  • Optionally, from the command-line terminal:
alacarte
  • To find the location of the application on the hard drive:
  locate 

Tidak ada komentar: