Installering av en enkelt pakkefil

Den foretrukne måten å installere programvare på, er ved hjelp av pakkebehandlere som beskrevet i dette kapitlet. Selv om Xubuntus programvareakriv er veldig store, er det mulig du ønsker å installere programvare som ikke er tilgjengelig i disse. Hvis så er tilfelle kan du også laste ned og installere programvare fra websider.

Det er viktig å undersøke om filer du laster ned kommer fra en pålitelig kilde før du installerer dem.

Det finnes mange forskjellige typer programpakker for Linux. De fleste er assosiert med en pakkebehandler for en spesifikk Linux-distribusjon. Eksempler på dette er Debian-pakkefiler (.deb-filer), RPM pakkefiler (.rpm-filer) og Tarballer (.tar-filer).

Denne delen omhandler installering av enkeltfiler.

[Warning]

Det gis ingen garanti for at disse filene er kompatible med ditt system, og du vil ikke motta sikkerhetsoppdateringer til programvare installert fra slike filer. Av disse grunnene bør du alltid bruke en av Ubuntus innebygde pakkebehandlere og tilhørende pakkeformat når du skal installere et program.

Install/uninstall .deb files

These files are Debian packages. The package files associated with Ubuntu have the .deb suffix because of Xubuntu's close relations with the Debian GNU/Linux distribution. You will need administrative privileges to install a .deb file. See Administrative Tasks for more details.

To install a .deb file, double-click on it. If you prefer using the Terminal, enter:

sudo dpkg -i package_file.deb

To uninstall a .deb file, deselect it in your package manager. Or from a Terminal, enter:

sudo dpkg -r package_name

Convert .rpm files to .deb files

Another type of package files is Red Hat Package Manager files which have the .rpm suffix. It is not recommended to install these on an Ubuntu system. In almost all cases, a native Xubuntu .deb package is available. However, if absolutely necessary, an .rpm file can be converted to a .deb package using the program alien. The resulting .deb file will be installed using dpkg as indicated above.

  1. Install the alien package.

  2. In a Terminal, enter:

    sudo alien package_file.rpm

Install tarballs

Files with the .tar, .tgz, .tar.gz or .tar.bz2 suffix are package files known as tarballs which are widely used in Linux and Unix.

If there is no native Ubuntu package available in any of the Ubuntu repositories, you can use the command line to install or uninstall the tarball file.

The first step will be to uncompress and extract the tarball. If it is a .tgz or a .tar.gz, in a Terminal enter:

tar -xfvz tarball_name

Then it will be necessary to follow the instructions that come with the package. These are generally located in the extracted tarball in a file called README or INSTALL.

Tarballs often contain the source code of the program, and need to be compiled in order to be used.

[Note]

Compiling programs requires some packages that are not installed by default. You can install these all at once by installing the build-essential package.