InstallingSoftware
|
Size: 2231
Comment: add cats
|
Size: 3752
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| Line 3: | Line 4: |
| * '''Add Applications''', which can be found in the ''Applications'' menu, and the ''System'' > ''Administration'' menu. | * The '''Add Applications''' utility in the '''Applications menu''' |
| Line 6: | Line 7: |
| * '''dpkg''', for installing downloaded .deb files. ''Add Applications'', ''Synaptic Package Manager'' and ''apt-get'' are all different interfaces to ''APT'', the ''Advanced Package Tool''. They all use the same application database. ''APT'' in itself is a front-end to ''dpkg'', the Debian package management system. |
* '''dpkg''' and '''gdebi''', for installing downloaded .deb files. * Compiling and installing software manually from a .tar.gz file |
| Line 11: | Line 11: |
| APT maintains a list of ''repositories'', on-line software collections. Using one of the interfaces to APT, one can search through the repositories for applications to install. The default Ubuntu repositories already contain over 10,000 applications and packages. | The main source of packages for Ubuntu is the Ubuntu software repository. You can use apt-get, synaptic, and 'Add applications' to query this repository and install software from it. |
| Line 20: | Line 20: |
| * By manually editing /etc/apt/sources.list. You will need superuser privileges for this, and please make a backup before editing. Just paste the repository line at the end of the file. | * By manually editing the file {{{/etc/apt/sources.list}}} You will need superuser privileges for this, and please make a backup before editing. Just paste the repository line at the end of the file. |
| Line 22: | Line 22: |
| (Add something about Main, Restricted, Universe, Multiverse, free, non-free, etc.) | The page http://www.ubuntulinux.nl/source-o-matic can help you find extra repositories. |
| Line 24: | Line 24: |
| === Dependencies === Most of the time, the functionality of an application depends on the availability of another package. When installing an application, APT will take care of also installing all ''dependants''. |
=== Add Applications === The add applications tool shows you a lot of desktop applications (such as games, office applications, e-mail and usenet clients etcetera). You can easily select software and let the system install it all for you. |
| Line 27: | Line 27: |
| === See also === http://en.wikipedia.org/wiki/Advanced_Packaging_Tool |
=== Synaptic === The Synaptic application will show you all available packages in the repositories you have selected (Fortunately it has a search function too). Installing software is just as easy as with the previous tool. |
| Line 30: | Line 30: |
| == dpkg == To install a downloaded .deb file, use the following command:{{{ dpkg -i <filename>.deb}}} You will need superuser privileges to do this. |
Synaptic also has the possibility to download and instal updates to your system. |
| Line 35: | Line 32: |
| CategoryDocumentation CategoryCleanup | === apt-get and apt-cache === apt-get is a command line client to query the apt database and install packages. A quick summary of usage: * {{{apt-cache show foo}}} show the descripion of package foo * {{{apt-cache policy foo}}} show all available versions of package foo * {{{apt-get instal foo}}} install the package foo * {{{apt-get remove foo}}} (Hard to guess, isn't it?) * {{{apt-get update}}} Update the package lists * {{{apt-get upgrade}}} Update all packages on your system if there are newer versions available * {{{apt-get dist-upgrade}}} If apt-get updates says it is holding back packages, then try this commmand. == DPKG == With APT you never download .deb files (which are the actual packages) manually. Sometimes you still want to do this and install this package manually. DPKG is the system for that. === dpkg -i === The way to install a downloaded .deb file with dpkg is the following command: {{{dpkg -i package}}} (replace package with the actual filename of the package). Chances are quite large that dpkg will complain about missing dependencies. In most cases, the command {{{apt-get -f installl}}} will fix this for you. === gdebi === A new tool for really easy installation of .deb packages is gdebi. If you use Ubuntu 6.04 (aka Dapper Drake) or later, you can simply double-click on the .deb file. It will then launch gdebi, wich essentially does both the {{{dpkg -i}}} and {{{apt-get -f install}}} (It really is more intelligent than that, but hey ;) ) == Compiling / Installing by hand == If no package is available for the software you want to install, you can always try compilng by hand. Se the CompilingSoftware page for more information and some tips. ---- CategoryDocumentation |
Introduction
There are several methods to install software on Ubuntu:
The Add Applications utility in the Applications menu
Synaptic Package Manager, which can be found in the System > Administration menu.
apt-get, which is a terminal application.
dpkg and gdebi, for installing downloaded .deb files.
- Compiling and installing software manually from a .tar.gz file
APT
The main source of packages for Ubuntu is the Ubuntu software repository. You can use apt-get, synaptic, and 'Add applications' to query this repository and install software from it.
Adding repositories
Sometimes the default repositories are not enough. In these cases, extra repositories can be added to the APT database. You will often find information on repositories in the following format:
deb <url> <component-list>
You can add a repository in one of the following ways:
In Add Applications via Settings > Repositories > Add > Custom. Enter the supplied repository line here.
In Synaptic via the same menus as in Add Applications.
By manually editing the file /etc/apt/sources.list You will need superuser privileges for this, and please make a backup before editing. Just paste the repository line at the end of the file.
The page http://www.ubuntulinux.nl/source-o-matic can help you find extra repositories.
Add Applications
The add applications tool shows you a lot of desktop applications (such as games, office applications, e-mail and usenet clients etcetera). You can easily select software and let the system install it all for you.
Synaptic
The Synaptic application will show you all available packages in the repositories you have selected (Fortunately it has a search function too). Installing software is just as easy as with the previous tool.
Synaptic also has the possibility to download and instal updates to your system.
apt-get and apt-cache
apt-get is a command line client to query the apt database and install packages. A quick summary of usage:
apt-cache show foo show the descripion of package foo
apt-cache policy foo show all available versions of package foo
apt-get instal foo install the package foo
apt-get remove foo (Hard to guess, isn't it?)
apt-get update Update the package lists
apt-get upgrade Update all packages on your system if there are newer versions available
apt-get dist-upgrade If apt-get updates says it is holding back packages, then try this commmand.
DPKG
With APT you never download .deb files (which are the actual packages) manually. Sometimes you still want to do this and install this package manually. DPKG is the system for that.
dpkg -i
The way to install a downloaded .deb file with dpkg is the following command: dpkg -i package (replace package with the actual filename of the package). Chances are quite large that dpkg will complain about missing dependencies. In most cases, the command apt-get -f installl will fix this for you.
gdebi
A new tool for really easy installation of .deb packages is gdebi. If you use Ubuntu 6.04 (aka Dapper Drake) or later, you can simply double-click on the .deb file. It will then launch gdebi, wich essentially does both the dpkg -i and apt-get -f install (It really is more intelligent than that, but hey
)
Compiling / Installing by hand
If no package is available for the software you want to install, you can always try compilng by hand. Se the CompilingSoftware page for more information and some tips.
InstallingSoftware (last edited 2008-08-06 16:32:35 by localhost)