User Tools

Site Tools


packages:install_a_package

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packages:install_a_package [2016/07/05 14:38] peterpackages:install_a_package [2019/12/01 11:54] (current) – removed peter
Line 1: Line 1:
-====== Packages - Install a package ====== 
- 
-Aptitude is preferred, but other approaches can be used if desired. 
- 
-===== Using aptitude ===== 
- 
-First, update the package index.  The package index is essentially a database of available packages from the repositories defined in the **/etc/apt/sources.list** file and in the **/etc/apt/sources.list.d** directory. 
- 
-<code bash> 
-sudo aptitude update 
-</code> 
- 
-Now install the package. 
- 
-<code bash> 
-sudo aptitude install package_name 
-</code> 
- 
- 
-===== Installing Experimental Packages ===== 
- 
-If Experimental was enabled in the **sources.list** file, the corresponding packages will almost never be installed because their default APT priority is 1.  This is of course a specific case, designed to keep users from installing Experimental packages by mistake.  The packages can only be installed by typing  
- 
-<code bash> 
-aptitude install package_name/experimental 
-</code> 
- 
-Users typing this command can only be aware of the risks that they take.  It is still possible (though not recommended) to treat packages of Experimental like those of other distributions by giving them a priority of 500.  
- 
-This is done with a specific entry in **/etc/apt/preferences**: 
- 
-<file bash /etc/apt/preferences> 
-Package: * 
-Pin: release a=experimental 
-Pin-Priority: 500 
-</file> 
- 
- 
- 
- 
  
packages/install_a_package.1467729531.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki