From Fedora Project Wiki
m (1 revision(s))
m (Fixed template, links, and structure)
Line 7: Line 7:
Packages also include a digital signature to prove their source. Software management utilities verify this digital signature by using a GPG ''public key''. The <code>yum</code> and <code>rpm</code> utilities share a common ''keyring'' that stores all of the public keys for approved package sources. The system administrator configures these approved package sources.
Packages also include a digital signature to prove their source. Software management utilities verify this digital signature by using a GPG ''public key''. The <code>yum</code> and <code>rpm</code> utilities share a common ''keyring'' that stores all of the public keys for approved package sources. The system administrator configures these approved package sources.


{| border="1"
{{Admon/note | All Fedora Packages are Free and Open Source Software | All of the software provided by the Fedora Project is Free and open source software. You may download and install Fedora packages on as many systems as desired.}}
|-
| {{Template:Note}} '''All Fedora Packages are Free and Open Source Software'''
|-
| All of the software provided by the Fedora Project is Free and open source software. You may download and install Fedora packages on as many systems as desired.
|}


== About Repositories ==
== About Repositories ==
Line 19: Line 14:


A network of servers provide several repositories for each version of Fedora. The package management utilities in Fedora are already configured to use three of these repositories:
A network of servers provide several repositories for each version of Fedora. The package management utilities in Fedora are already configured to use three of these repositories:
;Base
:The packages that make up a Fedora release, as it is on disc
;Updates
:Updated versions of packages that are provided in Base
;Extras
:Packages for a large selection of additional software


Base
{{Admon/warning | Fedora Development Repositories | Fedora also includes settings for several alternative repositories. These provide packages for various types of test system, and replace one or more of the standard repositories. Only enable support for one of the following repositories if you test or develop Fedora software: <code>fedora-devel</code> (Rawhide), <code>fedora-extras-devel</code>, and <code>updates-testing</code>.}}
 
The packages that make up a Fedora release, as it is on disc
 
Updates
 
Updated versions of packages that are provided in Base
 
Extras


Packages for a large selection of additional software
Third-party software developers also provide repositories for their Fedora compatible packages. To learn how to configure your Fedora system to use third-party repositories, read ''[[Docs/Drafts/AdministrationGuide/ManagingSoftware/AccessingRepositories |Configuring Access to Software Repositories]]''.
 
{| border="1"
|-
| {{Template:Warning}} '''Fedora Development Repositories'''
|-
| Fedora also includes settings for several alternative repositories. These provide packages for various types of test system, and replace one or more of the standard repositories. Only enable support for one of the following repositories if you test or develop Fedora software: <code>fedora-devel</code> (Rawhide), <code>fedora-extras-devel</code>, and <code>updates-testing</code>.
|}
 
Third-party software developers also provide repositories for their Fedora compatible packages. To learn how to configure your Fedora system to use third-party repositories, read ''[http://fedoraproject.org/wiki/Docs/Drafts/AdministrationGuide/ManagingSoftware/AccessingRepositories Configuring Access to Software Repositories] ''.


You may also use the ''package groups'' provided by the Fedora repositories to manage related packages as sets. Some third-party repositories add packages to these groups, or provide their packages as additional groups.
You may also use the ''package groups'' provided by the Fedora repositories to manage related packages as sets. Some third-party repositories add packages to these groups, or provide their packages as additional groups.


{| border="1"
{{Admon/note | Available Package Groups | To view a list of all of the available package groups for your Fedora system, run the command <code>su -c 'yum grouplist'</code>.}}
|-
| {{Template:Note}} '''Available Package Groups'''
|-
| To view a list of all of the available package groups for your Fedora system, run the command <code>su -c 'yum grouplist'</code>.
|}


Use repositories to ensure that you always receive current versions of software. If several versions of the same package are available, your management utility automatically selects the latest version.
Use repositories to ensure that you always receive current versions of software. If several versions of the same package are available, your management utility automatically selects the latest version.


{| border="1"
Admon/caution | Installing Software not from a Repository | Install software using manual methods only when you are confident there is no repository which can currently provide it. You may have to manage that software with manual methods, instead of with Fedora software management utilities.}}
|-
| {{Template:Caution}} '''Installing Software not from a Repository'''
|-
| Install software using manual methods only when you are confident there is no repository which can currently provide it. You may have to manage that software with manual methods, instead of with Fedora software management utilities.
|}


The <code>yum</code> commands shown in this document use repositories as package sources. Refer to
The <code>yum</code> commands shown in this document use repositories as package sources. Refer to
''[http://fedoraproject.org/wiki/Docs/Drafts/AdministrationGuide/ManagingSoftware/IsolatedPackages Installing Software from an Isolated Package] ''
''[[Docs/Drafts/AdministrationGuide/ManagingSoftware/IsolatedPackages |Installing Software from an Isolated Package]]''
for details of using <code>yum</code> to install software from a package file.
for details of using <code>yum</code> to install software from a package file.


Line 84: Line 58:
For clarity, <code>yum</code> lists packages in the format <code>name.architecture</code>. Repositories also commonly store packages in separate directories by architecture. In each case, the hardware architecture specified for the package is the ''minimum'' type of machine required to use the package.
For clarity, <code>yum</code> lists packages in the format <code>name.architecture</code>. Repositories also commonly store packages in separate directories by architecture. In each case, the hardware architecture specified for the package is the ''minimum'' type of machine required to use the package.


i386
;i386
 
:Suitable for any current Intel-compatible computer
Suitable for any current Intel-compatible computer
;noarch
 
:Compatible with all computer architectures
noarch
;ppc
 
:Suitable for PowerPC systems, such as Apple Power Macintosh
Compatible with all computer architectures
;x86_64
 
:Suitable for 64-bit Intel-compatible processors, such as Opterons
ppc
 
Suitable for PowerPC systems, such as Apple Power Macintosh
 
x86_64
 
Suitable for 64-bit Intel-compatible processors, such as Opterons


Some software may be optimized for particular types of Intel-compatible machine. Separate packages may be provided for <code>i386</code>, <code>i586</code>, <code>i686</code> and <code>x86_64</code> computers. A machine with at least an Intel Pentium, VIA C3 or compatible CPU may use <code>i586</code> packages. Computers with an Intel Pentium Pro and above, or a current model of AMD chip, may use <code>i686</code> packages.
Some software may be optimized for particular types of Intel-compatible machine. Separate packages may be provided for <code>i386</code>, <code>i586</code>, <code>i686</code> and <code>x86_64</code> computers. A machine with at least an Intel Pentium, VIA C3 or compatible CPU may use <code>i586</code> packages. Computers with an Intel Pentium Pro and above, or a current model of AMD chip, may use <code>i686</code> packages.
Line 106: Line 73:
Specify a package with other name formats to override the default behavior and force <code>yum</code> to use the package that matches that version or architecture. Only override <code>yum</code> when you know that the default package selection has a bug or other fault that makes it unsuitable for installation.
Specify a package with other name formats to override the default behavior and force <code>yum</code> to use the package that matches that version or architecture. Only override <code>yum</code> when you know that the default package selection has a bug or other fault that makes it unsuitable for installation.


{| border="1"
{{Admon/tip | Package Names | You may use any of the following formats to specify a package in a <code>yum</code> operation: <code>name, name.architecture, name-version, name-version-release, name-version-release.architecture,</code> and <code>epoch:name-version-release.architecture</code>.}}
 
{|
|-
|-
| {{Template:Tip}} '''Package Names'''
|[[Docs/Drafts/AdministrationGuide/ManagingStorage | Previous Page - Working with Discs and Removable Storage]] ||[[Docs/Drafts/AdministrationGuide/ManagingSoftware | Managing Software Table of Contents]] ||[[Docs/Drafts/AdministrationGuide/ManagingSoftware/Tools | Next Page - Software Management Tools in Fedora]]
|-
| You may use any of the following formats to specify a package in a <code>yum</code> operation: <code>name, name.architecture, name-version, name-version-release, name-version-release.architecture,</code> and <code>epoch:name-version-release.architecture</code>.
|}
|}
{| border="1"
|-
|[http://fedoraproject.org/wiki/Docs/Drafts/AdministrationGuide/Disks Previous Page - Working with Discs and Removable Storage] ||[http://fedoraproject.org/wiki/Docs/Drafts/AdministrationGuide/ManagingSoftware Managing Software Table of Contents] ||[http://fedoraproject.org/wiki/Docs/Drafts/AdministrationGuide/ManagingSoftware/Tools Next Page - Software Management Tools in Fedora]

Revision as of 12:13, 2 June 2008

Software Management Concepts

About Packages

Fedora software and documentation is supplied in the form of files called RPM packages. Each package is a compressed archive containing product information, program files, icons, documentation and management scripts. Management applications use these files to safely locate, install, update and remove software. For example, the Fedora installation process uses the packages supplied with Fedora to build or upgrade a system to your requirements.

Packages also include a digital signature to prove their source. Software management utilities verify this digital signature by using a GPG public key. The yum and rpm utilities share a common keyring that stores all of the public keys for approved package sources. The system administrator configures these approved package sources.

All Fedora Packages are Free and Open Source Software
All of the software provided by the Fedora Project is Free and open source software. You may download and install Fedora packages on as many systems as desired.

About Repositories

A repository is a prepared directory or Web site that contains software packages and index files. Software management utilities such as yum automatically locate and obtain the correct RPM packages from these repositories. This method frees you from having to manually find and install new applications or updates. You may use a single command to update all system software, or search for new software by specifying criteria.

A network of servers provide several repositories for each version of Fedora. The package management utilities in Fedora are already configured to use three of these repositories:

Base
The packages that make up a Fedora release, as it is on disc
Updates
Updated versions of packages that are provided in Base
Extras
Packages for a large selection of additional software
Fedora Development Repositories
Fedora also includes settings for several alternative repositories. These provide packages for various types of test system, and replace one or more of the standard repositories. Only enable support for one of the following repositories if you test or develop Fedora software: fedora-devel (Rawhide), fedora-extras-devel, and updates-testing.

Third-party software developers also provide repositories for their Fedora compatible packages. To learn how to configure your Fedora system to use third-party repositories, read Configuring Access to Software Repositories.

You may also use the package groups provided by the Fedora repositories to manage related packages as sets. Some third-party repositories add packages to these groups, or provide their packages as additional groups.

Available Package Groups
To view a list of all of the available package groups for your Fedora system, run the command su -c 'yum grouplist'.

Use repositories to ensure that you always receive current versions of software. If several versions of the same package are available, your management utility automatically selects the latest version.

Admon/caution | Installing Software not from a Repository | Install software using manual methods only when you are confident there is no repository which can currently provide it. You may have to manage that software with manual methods, instead of with Fedora software management utilities.}}

The yum commands shown in this document use repositories as package sources. Refer to Installing Software from an Isolated Package for details of using yum to install software from a package file.

About Dependencies

Some of the files installed on a Fedora distribution are libraries which may provide functions to multiple applications. When an application requires a specific library, the package which contains that library is a dependency. To properly install a package, Fedora must first satisfy its dependencies. The dependency information for a RPM package is stored within the RPM file.

The yum utility uses package dependency data to ensure that all of requirements for an application are met during installation. It automatically installs the packages for any dependencies not already present on your system. If a new application has requirements that conflict with existing software, yum aborts without making any changes to your system.

Understanding Package Names

Each package file has a long name that indicates several key pieces of information. For example, this is the full name of a tsclient package:

tsclient-0.132-6.i386.rpm

Management utilities commonly refer to packages with one of three formats:

  • Package name: tsclient
  • Package name with version and release numbers: tsclient-0.132-6
  • Package name with hardware architecture: tsclient.i386

For clarity, yum lists packages in the format name.architecture. Repositories also commonly store packages in separate directories by architecture. In each case, the hardware architecture specified for the package is the minimum type of machine required to use the package.

i386
Suitable for any current Intel-compatible computer
noarch
Compatible with all computer architectures
ppc
Suitable for PowerPC systems, such as Apple Power Macintosh
x86_64
Suitable for 64-bit Intel-compatible processors, such as Opterons

Some software may be optimized for particular types of Intel-compatible machine. Separate packages may be provided for i386, i586, i686 and x86_64 computers. A machine with at least an Intel Pentium, VIA C3 or compatible CPU may use i586 packages. Computers with an Intel Pentium Pro and above, or a current model of AMD chip, may use i686 packages.

Use the short name of the package for yum commands. This causes yum to automatically select the most recent package in the repositories that matches the hardware architecture of your computer.

Specify a package with other name formats to override the default behavior and force yum to use the package that matches that version or architecture. Only override yum when you know that the default package selection has a bug or other fault that makes it unsuitable for installation.

Package Names
You may use any of the following formats to specify a package in a yum operation: name, name.architecture, name-version, name-version-release, name-version-release.architecture, and epoch:name-version-release.architecture.
Previous Page - Working with Discs and Removable Storage Managing Software Table of Contents Next Page - Software Management Tools in Fedora