AdicionandoRepositorios

Differences between revisions 8 and 9
Revision 8 as of 2006-07-07 14:42:17
Size: 7147
Comment: Padronizando a página
Revision 9 as of 2006-07-14 21:50:20
Size: 11214
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from AdicionandoRepositoriosHowto
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Conteúdo'''[[BR]][[TableOfContents(3)]]||

'''Tradução em Inglês''' - [https://wiki.ubuntu.com/AddingRepositoriesHowto AddingRepositoriesHowto]

'''Nota''': As ''screenshots'' foram tiradas do Wiki em inglês, por isso, elas estão em inglês. Assim, estão apenas para uma ilustração.
## page was renamed from AddingRepositoriesHowto
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents(3)]]||


[[Anchor(what)]]
== What are Repositories? ==

There are thousands of programs available to install on Ubuntu. These programs are stored in software archives ''(repositories)'' and are available for installation over the Internet. This makes it very easy to install new programs. It is also very secure, because each program you install is thoroughly tested and built specifically for Ubuntu.

The Ubuntu software repository is organised into four "components", on the basis of the level of support Ubuntu can offer them, and whether or not they comply with Ubuntu's [http://www.ubuntu.com/ubuntu/philosophy Free Software Philosophy]. The components are called '''Main''' (officially supported software), '''Restricted''' (supported software that is not available under a completely free license), '''Universe''' (community-maintained, i.e. not officially supported software) and '''Multiverse''' (software that is "not free"). You can find more information about the Ubuntu Repositories [http://www.ubuntu.com/ubuntu/components here].

The Ubuntu Install CDs contain software from the '''Main''' and '''Restricted''' components. Once your system is made aware of the Internet-based locations for these repositories, many more software programs are made available for installation. Using the software package management tools already installed on your system, you can search for, install and update any piece of software directly over the Internet, without the need for the CD.


[[BR]]
== Adding Repositories in Ubuntu ==

attachment:IconsPage/eyes.png This page describes how to manage software repositories in '''Ubuntu 6.06 (Dapper Drake)'''. For '''Kubuntu 6.06''' please see [:KubuntuAddingRepositoriesHowto: Kubuntu repository management]. For '''earlier versions of Ubuntu''' please see [:/Breezy: this wiki page].

attachment:IconsPage/terminal.png The operations described on this page modify the software repositories configuration file located at
 {{{
/etc/apt/sources.list }}}
 Software sources can also be managed by making direct modifications to this file using the command line. If you prefer to use the command line instead of a graphical user interface, see [:../CommandLine: Managing Repositories from the Command Line] instead.


[[BR]]
== Adding the Universe and Multiverse Repositories ==

[[BR]]
 * Navigate to "System" > "Administration" > "Software Properties".

attachment:menu-sw.png

 * A list of repositories or "Channels" will be shown. Scroll down to the three entries that share the '''Community maintained (Universe)''' and '''Non-free (Multiverse)''' attributes:

 attachment:activate-repos.png

 * Activate all three entries by clicking on the checkboxes next to them.

 * Click '''Close''' to save your changes. A dialog box should appear, asking whether you'd like to update the list of repositories. Click '''Reload''' to apply your changes.


[[BR]]
attachment:IconsPage/info.png '''Integration with Synaptic Package Manager'''

 * The next time you use the '''Synaptic''' package manager, click on the '''Reload''' button to make it aware of the new software repositories.

 attachment:reload.png


 * You can also manage software repositories from within '''Synaptic''' by selecting "Settings" > "Repositories".

 attachment:synaptic-repos.png

[[BR]]
== Adding Canonical Commercial Repositories ==

To launch the Synaptic Package Manager hit '''''System -> Administration -> Synaptic Package Manager''''' .

attachment:RepositoriesUbuntu01.png

Next you will be prompted for your password to be able to launch Synaptic as super user.

attachment:RepositoriesUbuntu02.png

Once that's all done you should now have the Synaptic package manager on your screen. On the menu of this screen you will want to click on '''''Settings -> Repositories'''''

attachment:RepositoriesUbuntu03.png
   
This is were you will be able to add the Canonical commercial repositories. on the left of the screen click on the button '''''Add'''''.

attachment:RepositoriesUbuntu04.png

The Add Channel screen will come up. On this screen select the Custom option.

attachment:RepositoriesUbuntu05.png

On this screen type the following line and then click on '''''Add Channel'''''.

''''' deb {{{http://archive.canonical.com/ubuntu}}} dapper-commercial main '''''

attachment:RepositoriesUbuntu06.png
 
Now hit '''''Close'''''. From the main Synaptic window, hit '''''Reload'''''. Once this finishes, you will now be able to get packages from the Canonical commercial repositories using the Synaptic Package Manager.


[[BR]]
[[Anchor(other)]]
== Adding Other Repositories ==

[[BR]]
attachment:IconsPage/warning.png '''Note:''' There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. For example, some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that '''all''' repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.
Line 10: Line 95:
Por ''default'' o Ubuntu não habilita os repositórios {{{Universe}}} e {{{Multiverse}}}. Existem também repositórios não-Ubuntu que você pode querer adicionar em sua máquina Ubuntu, embora isto geralmente não é recomendável.

= Adicionando Universe e Multiverse =
== Usando Synaptic ==

O gerenciador de pacotes Synaptic se encontra em lugares diferentes nas versões Warty e Hoary/Breezy.

=== Ubuntu Hoary e Breezy ===
Inicie Gerenciador de Pacotes {{{Synaptic}}} do menu {{{Sistema}}} , {{{Administração}}}.

https://wiki.ubuntu.com/AddingRepositoriesHowto?action=AttachFile&do=get&target=hoarysynaptic.jpg

=== Todas as versões do Ubuntu ===

Quando Synaptic iniciar escolha o item {{{Repositórios}}} no menu {{{Configurações}}}.

https://wiki.ubuntu.com/AddingRepositoriesHowto?action=AttachFile&do=get&target=PicOpentheRepositoriesDialog.png

Você verá uma lista de repositórios. Clique no botão {{{configurações}}} na parte de baixo da janela e marque {{{Exibir fontes de software desabilitadas}}}. Depois clique no botão {{{Fechar}}}.

https://wiki.ubuntu.com/AddingRepositoriesHowto?action=AttachFile&do=get&target=showdisabled.jpg

Use os botões de verificação (checkboxes) próximos aos repositórios para habilitar ou desabilitar um repositórios. Deslize o scroll e habilite o repositório Universe marcando o checkbox ao lado de {{{Mantido pela comunidade (Universo)}}}. Você pode querer também habilitar os repositórios {{{Multiverso}}} e {{{Atualizações de segurança (Universo)}}}. Clique no botão {{{OK}}} para salvar suas mudanças.

https://wiki.ubuntu.com/AddingRepositoriesHowto?action=AttachFile&do=get&target=enableuniverse.jpg

Atualize a lista de pacotes disponíveis com Recarregar na janela principal.
 
https://wiki.ubuntu.com/AddingRepositoriesHowto?action=AttachFile&do=get&target=PicApplyTheseSettings.png

Após baixar a lista de pacotes dos repositórios você pode instalar pacotes do universe.

== Usando o Terminal ==

Alternativamente, você pode usar um terminal e as ferramentas de linha de comando para habilitar universe. Inicie Terminal em Ferramentas do Sistema de Aplicações na barra de menu.

Digite na linha de comando:
 
{{{
   bash:~$ sudo nano -w /etc/apt/sources.list
}}}

O editor de texto nano inicia e abre o arquivo de configuração para repositórios.
Então você deve remover as marcas {{{#}}} do início das seguintes linhas

{{{
   #deb http://archive.ubuntu.com/ubuntu dapper main restricted universe
   #deb-src ftp://archive.ubuntu.com/ubuntu dapper main restricted universe
}}}

o que lhes dará esta aparência.

{{{
   deb http://archive.ubuntu.com/ubuntu dapper main restricted universe
   deb-src ftp://archive.ubuntu.com/ubuntu dapper main restricted universe
}}}

A seguir você deve atualizar suas fontes com o comando:

{{{
   bash:~$ sudo apt-get update
}}}

= Adicionando repositórios externos =

Algumas vezes outros usuários farão repositórios para pacotes que tenham produzido. É bem fácil adicionar estes repositórios ao gerenciador de pacotes do seu sistema.

https://wiki.ubuntu.com/IconsPage?action=AttachFile&do=get&target=IconNote.png

'''Nota''': Você deve ser cuidadoso ao fazer isso, alguns pacotes externos podem quebrar sua instalação do Ubuntu

Para uma lista de repositórios externos veja BreakMyUbuntu.

== Adicionando repositórios externos usando Synaptic ==

Como mostrado no screenshot Usando Synaptic acima, inicie Gerenciador de Pacotes Synaptic do menu Computador, Configurações do Sistema. Uma vez que o Synaptic esteja rodando, escolha o item Repositories no menu Configurações.

Agora você vê uma janela com uma lista de repositórios. Aperte o botão Novo para adicionar um repositório. Digite as informações sobre os repositórios nos três campos de texto de acordo com os exemplos a seguir.

Normalmente você encontrará websites provendo informações sobre um repositórios numa forma como a do exemplo:

{{{
   deb http://www.grawert.net/ubuntu/ dapper universe
}}}

Esta linha fornece a informação para os campos do Synaptic.

 * {{{deb}}} significa que ele é um binário, então use a lista da caixa de combo para escolher binário. Normalmente está opção é padrão.
 * {{{http://www.grawert.net/ubuntu/}}} é a URI (Uniform Resource Identifier), que neste caso significa a localização.
 * {{{dapper}}} é o nome da distribuição.
 * {{{universe}}} é o nome da seção.


Algumas vezes a linha do repositório tem menos informação que isso, como mostrado no próximo exemplo.

{{{
   deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./
}}}

Os dois primeiros campos (deb and URI) são claramente similares ao primeiro exemplo acima. Contudo, nome da distribuição é "./", então apenas coloque isto (sem as aspas) no campo de distribuição do Synaptic. Parare estranho, mas simplesmente especifique a distribuição como sendo o que quer que esteja no diretório indicado pela URI. Além disso, não há informação sobre ''seção'' de forma que apenas deixe em branco este campo de texto em sua entrada do Synaptic.

https://wiki.ubuntu.com/IconsPage?action=AttachFile&do=get&target=IconNote.png

'''Nota''': Apenas a informação ''seção'' é opcional, e apenas para o mantenedor do repositório. Se houver informação de seção, ela deve ser espeficidada no Synaptic. Ela não pode ser deixada em branco.

https://wiki.ubuntu.com/IconsPage?action=AttachFile&do=get&target=IconNote.png

'''Nota''': Se você cometer algum erro na sintaxe dos campos você receberá uma mensagem de erro quando clicar no botão OK do Synaptic. Uma causa é colocar a barra ao fim da URI. Também tome cuidado para não deixar espaços em branco ao fim dos campos.

Salve as mudanças e feche a janela apertando OK.

Atualize a lista de pacotes disponíveis com Recarregar na janela principal. Após baixar a lista de pacotes dos repositórios você pode instalar pacotes do universo.

== Adicionando repositórios externos usando um Terminal ==

Alternativamente você pode usar um terminal e ferramentas de linha de comando para habilitar outros repositórios. Inicie Terminal em Ferramentas do Sistema de Aplicações na barra de menu.

Digite na linha de comando:

Este exemplo usa o repositório de tseng.

{{{
   bash:~$ echo "deb http://www.getsweaaa.com/~tseng/ubuntu/debs./" >> /etc/apt/sources.list
}}}

Você presica apenas substituir o {{{deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./}}} pelo nome de qualquer outro repositório externo.
[[BR]]
[[Anchor(add)]]
You can add custom software repositories by adding the '''apt repository line''' of your software source to the list of repositories. To do so, click on the '''Add''' button next to the Channel list in the Software Preferences panel, then select '''Custom'''.

  attachment:add-custom.png


[[Anchor(aptline)]]
 * Enter the apt line into the dialog box. It should look something like this:

 {{{
deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx }}}


attachment:IconsPage/info.png For an explanation of the different parts of the apt line, see the [#edit Editing Repositories] section below.



[[BR]]
== Managing Local Repositories ==

=== Disable the CD-ROM Repository ===

If you have installed Ubuntu from one of Ubuntu's CD-ROMs, the CD will be included in the list of repositories used by the package managment tools. When you install a new package, '''Synaptic''' will check whether the package is available locally (i.e. on the CD-ROM). '''Synaptic''' may then ask for the CD-ROM. This can help reduce the size of downloads and speed up the installation process. If you would like '''Synaptic''' to rely solely on the internet repositories for package management, you can disable the CD-ROM entry with a few steps:

 * Launch Synaptic and navigate to "Settings" > "Repositories". [[BR]] A list of software repositories or "Channels" will be shown.

 * Locate the entry for the CD-ROM (it may say something like '''CD disk with Ubuntu 6.06 LTS'''). Click on the checkbox next to it to disable the CD-ROM as a software source.

 * Click the '''Close''' button to save the changes you have made.

 * You can re-enable the CD-ROM at any time using the checkbox next to its entry.



[[BR]]
== Removing Repositories ==

To remove software sources ("Channels") from the list, select the source and click on the '''Remove''' button. (If you only want to disable the repository temporarily, uncheck the checkbox next to the source instead.)

attachment:IconsPage/eyes.png Use with caution: At present, you will not be asked to confirm the remove action. This is not a problem with the Ubuntu repositories as you can simply [#add add them again], but you may have to look up a custom repository line if you mistakenly delete it. (It is always a good idea to back up your sources.list)


[[BR]]
[[Anchor(edit)]]
== Editing Repositories ==

To make changes to a software source, select it in the list and click the '''Edit''' button. A dialog box displays the apt line, broken up into its components.

 attachment:edit-channel.png


 * '''Type''' Software sources may contain software in '''binary''' or '''source code''' format. Select the option that corresponds to the repository.

 attachment:IconsPage/eyes.png The corresponding apt line has '''deb''' for binary repositories and '''deb-src''' for source code repositories.

[[BR]]
 * '''URI''' Enter a valid Uniform Resource Indicator or URI for the software repository. Here's a list of examples:


   * '''cdrom''' [[BR]] {{{
cdrom:[description_of_cd]/ }}}
   * '''ftp''' [[BR]] {{{
ftp://ftp.domain.ext/path/to/repository }}}
   * '''http''' [[BR]] {{{
http://www.domain.ext/path/to/repository }}}
   * '''smb''' (works only when the computer is connected to a Samba share) [[BR]] {{{
file://path/to/repository }}}
  * '''nfs''' (works only if the computer is connected to a NFS share) [[BR]] {{{
file://path/to/local/directory }}}

[[BR]]
 * '''Distribution''' [[BR]] Select the name of the distribution or the name of the distribution version. [[BR]](''dapper-seveas'' [#aptline in the example above].)

[[BR]]
 * '''Components''' [[BR]] Select the repository section to access. Add more sections separated by spaces. [[BR]](The [#aptline example repository] has a ''freenx'' section.)

[[BR]]
 * '''Comment''' [[BR]]Add a comment to describe the repository for easier reference.

[[BR]]
attachment:IconsPage/info.png Repositories defined using the '''Software Preferences''' panel are available to '''Update-Manager''' and will be periodically checked for updates.


[[BR]]
== Managing Authentication Keys ==

'''Authentication keys''' are usually obtained from the maintainer of the software repository. The maintainer will often place a copy of the authentication key on a public key server such as www.keyserver.net. The key can then be retrieved using the command
 {{{
gpg --keyserver [name of keyserver] --recv-keys [keyhash] }}}

 * In our example above, you would import the maintainer's authentication key as follows:

 {{{
gpg --keyserver subkeys.pgp.net --recv-keys 1135D466 }}}

 * Then, add the key to Ubuntu's apt trusted keys database with the following command

 {{{
gpg --export --armor 1135D466 | sudo apt-key add - }}}

 * Note there's a dash at the end of the line

[[BR]]
attachment:IconsPage/info.png For more on apt and authentication keys, see [http://wiki.debian.org/SecureApt SecureApt] on the Debian Wiki.



[[BR]]
== See also ==

 * [:../CommandLine: Managing Software Repositories from the Command Line]

 * [:../Kubuntu: Managing Software Repositories in Kubuntu]

 * Chapter 2 of the Ubuntu Desktop Guide, [http://help.ubuntu.com/ubuntu/desktopguide/C/add-applications.html Adding, Removing and Updating Applications]

 * An [http://www.ubuntulinux.nl/source-o-matic automatic sources.list generator]

 * The [http://www.debian.org/doc/user-manuals#apt-howto Debian Apt User Manual]

 * '''man pages'''

  * sources.list



[[BR]]
----
CategoryTraduzir

Anchor(what)

What are Repositories?

There are thousands of programs available to install on Ubuntu. These programs are stored in software archives (repositories) and are available for installation over the Internet. This makes it very easy to install new programs. It is also very secure, because each program you install is thoroughly tested and built specifically for Ubuntu.

The Ubuntu software repository is organised into four "components", on the basis of the level of support Ubuntu can offer them, and whether or not they comply with Ubuntu's [http://www.ubuntu.com/ubuntu/philosophy Free Software Philosophy]. The components are called Main (officially supported software), Restricted (supported software that is not available under a completely free license), Universe (community-maintained, i.e. not officially supported software) and Multiverse (software that is "not free"). You can find more information about the Ubuntu Repositories [http://www.ubuntu.com/ubuntu/components here].

The Ubuntu Install CDs contain software from the Main and Restricted components. Once your system is made aware of the Internet-based locations for these repositories, many more software programs are made available for installation. Using the software package management tools already installed on your system, you can search for, install and update any piece of software directly over the Internet, without the need for the CD.

BR

Adding Repositories in Ubuntu

attachment:IconsPage/eyes.png This page describes how to manage software repositories in Ubuntu 6.06 (Dapper Drake). For Kubuntu 6.06 please see [:KubuntuAddingRepositoriesHowto: Kubuntu repository management]. For earlier versions of Ubuntu please see [:/Breezy: this wiki page].

attachment:IconsPage/terminal.png The operations described on this page modify the software repositories configuration file located at

  • /etc/apt/sources.list 

    Software sources can also be managed by making direct modifications to this file using the command line. If you prefer to use the command line instead of a graphical user interface, see [:../CommandLine: Managing Repositories from the Command Line] instead.

BR

Adding the Universe and Multiverse Repositories

BR

  • Navigate to "System" > "Administration" > "Software Properties".

attachment:menu-sw.png

  • A list of repositories or "Channels" will be shown. Scroll down to the three entries that share the Community maintained (Universe) and Non-free (Multiverse) attributes: attachment:activate-repos.png

  • Activate all three entries by clicking on the checkboxes next to them.
  • Click Close to save your changes. A dialog box should appear, asking whether you'd like to update the list of repositories. Click Reload to apply your changes.

BR attachment:IconsPage/info.png Integration with Synaptic Package Manager

  • The next time you use the Synaptic package manager, click on the Reload button to make it aware of the new software repositories. attachment:reload.png

  • You can also manage software repositories from within Synaptic by selecting "Settings" > "Repositories". attachment:synaptic-repos.png

BR

Adding Canonical Commercial Repositories

To launch the Synaptic Package Manager hit System -> Administration -> Synaptic Package Manager .

attachment:RepositoriesUbuntu01.png

Next you will be prompted for your password to be able to launch Synaptic as super user.

attachment:RepositoriesUbuntu02.png

Once that's all done you should now have the Synaptic package manager on your screen. On the menu of this screen you will want to click on Settings -> Repositories

attachment:RepositoriesUbuntu03.png

This is were you will be able to add the Canonical commercial repositories. on the left of the screen click on the button Add.

attachment:RepositoriesUbuntu04.png

The Add Channel screen will come up. On this screen select the Custom option.

attachment:RepositoriesUbuntu05.png

On this screen type the following line and then click on Add Channel.

deb http://archive.canonical.com/ubuntu dapper-commercial main

attachment:RepositoriesUbuntu06.png

Now hit Close. From the main Synaptic window, hit Reload. Once this finishes, you will now be able to get packages from the Canonical commercial repositories using the Synaptic Package Manager.

BR Anchor(other)

Adding Other Repositories

BR attachment:IconsPage/warning.png Note: There are some (but not many) good reasons for which you might want to add non-Ubuntu repositories to your list of software sources. For example, some software cannot be distributed by Ubuntu due to patent and licensing restrictions in some countries (see the RestrictedFormats page for examples). You might want to add repositories that offer such software. Make sure that all repositories you add in this way have been tested and are known to work on Ubuntu systems. Repositories that are not designed to work with your version of Ubuntu can introduce inconsistencies in your system and might force you to re-install.


BR Anchor(add) You can add custom software repositories by adding the apt repository line of your software source to the list of repositories. To do so, click on the Add button next to the Channel list in the Software Preferences panel, then select Custom.

  • attachment:add-custom.png

Anchor(aptline)

  • Enter the apt line into the dialog box. It should look something like this:
    deb http://mirror3.ubuntulinux.nl/ dapper-seveas freenx 

attachment:IconsPage/info.png For an explanation of the different parts of the apt line, see the [#edit Editing Repositories] section below.

BR

Managing Local Repositories

Disable the CD-ROM Repository

If you have installed Ubuntu from one of Ubuntu's CD-ROMs, the CD will be included in the list of repositories used by the package managment tools. When you install a new package, Synaptic will check whether the package is available locally (i.e. on the CD-ROM). Synaptic may then ask for the CD-ROM. This can help reduce the size of downloads and speed up the installation process. If you would like Synaptic to rely solely on the internet repositories for package management, you can disable the CD-ROM entry with a few steps:

  • Launch Synaptic and navigate to "Settings" > "Repositories". BR A list of software repositories or "Channels" will be shown.

  • Locate the entry for the CD-ROM (it may say something like CD disk with Ubuntu 6.06 LTS). Click on the checkbox next to it to disable the CD-ROM as a software source.

  • Click the Close button to save the changes you have made.

  • You can re-enable the CD-ROM at any time using the checkbox next to its entry.

BR

Removing Repositories

To remove software sources ("Channels") from the list, select the source and click on the Remove button. (If you only want to disable the repository temporarily, uncheck the checkbox next to the source instead.)

attachment:IconsPage/eyes.png Use with caution: At present, you will not be asked to confirm the remove action. This is not a problem with the Ubuntu repositories as you can simply [#add add them again], but you may have to look up a custom repository line if you mistakenly delete it. (It is always a good idea to back up your sources.list)

BR Anchor(edit)

Editing Repositories

To make changes to a software source, select it in the list and click the Edit button. A dialog box displays the apt line, broken up into its components.

  • attachment:edit-channel.png
  • Type Software sources may contain software in binary or source code format. Select the option that corresponds to the repository.

    attachment:IconsPage/eyes.png The corresponding apt line has deb for binary repositories and deb-src for source code repositories.

BR

  • URI Enter a valid Uniform Resource Indicator or URI for the software repository. Here's a list of examples:

    • cdrom BR

      cdrom:[description_of_cd]/ 
    • ftp BR

      ftp://ftp.domain.ext/path/to/repository 
    • http BR

      http://www.domain.ext/path/to/repository 
    • smb (works only when the computer is connected to a Samba share) BR

      file://path/to/repository   
    • nfs (works only if the computer is connected to a NFS share) BR

      file://path/to/local/directory   

BR

  • Distribution BR Select the name of the distribution or the name of the distribution version. BR(dapper-seveas [#aptline in the example above].)

BR

  • Components BR Select the repository section to access. Add more sections separated by spaces. BR(The [#aptline example repository] has a freenx section.)

BR

  • Comment BRAdd a comment to describe the repository for easier reference.

BR attachment:IconsPage/info.png Repositories defined using the Software Preferences panel are available to Update-Manager and will be periodically checked for updates.

BR

Managing Authentication Keys

Authentication keys are usually obtained from the maintainer of the software repository. The maintainer will often place a copy of the authentication key on a public key server such as www.keyserver.net. The key can then be retrieved using the command

  • gpg --keyserver [name of keyserver] --recv-keys [keyhash] 
  • In our example above, you would import the maintainer's authentication key as follows:
    gpg --keyserver subkeys.pgp.net --recv-keys 1135D466 
  • Then, add the key to Ubuntu's apt trusted keys database with the following command
    gpg --export --armor 1135D466 | sudo apt-key add - 
  • Note there's a dash at the end of the line

BR attachment:IconsPage/info.png For more on apt and authentication keys, see [http://wiki.debian.org/SecureApt SecureApt] on the Debian Wiki.

BR

See also

BR


CategoryTraduzir

AdicionandoRepositorios (last edited 2011-09-19 23:19:24 by localhost)