Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "Repository"
Differenze tra le versioni 1 e 27 (in 26 versioni)
Versione 1 del 10/07/2005 14.09.42
Dimensione: 6115
Autore: host52-121
Commento:
Versione 27 del 16/05/2006 20.11.41
Dimensione: 2481
Commento: tolta la categoria
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 1: Linea 1:
{{{ Traduzione in corso ...
}}}
## page was renamed from Repositories
Nel mondo del software Libero e Open Source i programmi sono solitamente disponibili nei cosidetti "tarball". Questo tipo di distribuzione è conveniente per i programmatori che vogliono studiare o modificare il programma, ma non lo è per chi vuole un programma che funzioni!
Linea 4: Linea 4:
Come utente Windows o Mac OS siete stati abituati a cercare su Internet il programma desiderato, scaricarlo e installarlo. Oppure con il software disponibile su alcuni CD o DVD che si installa automaticamente. Per i sistemi liberi come Ubuntu GNU/Linux esiste qualche programma distribuito in questo modo, ma solitamente questi metodi sono proprietari e non liberi!
Linea 5: Linea 6:
= How to add repositories to your sources.list = Per GNU/Linux esiste il mondo dei repository di pacchetti!
Linea 7: Linea 8:
attachment:IconsPage/IconHelp.png Nei sistemi come Ubuntu, il software è reso disponibile come pacchetti precompilati nel comodo formato '''deb''' (o '''rpm''' come per Red``Hat), che contengono il programma e le librerie necessarie. Questi programmi possono essere scaricati da Internet o essere disponibili in alcuni CD (il CD di Ubuntu ne è pieno!) e installati "a mano". Ma siete voi a doverlo fare.
Linea 9: Linea 10:
This page will discuss how to add other [:Repositories: repositories] to your {{{/etc/apt/sources.list}}}. It will also show how to uncomment {{{universe}}}. I repository sono dei server che contengono molti pacchetti, a cui si può accedere con strumenti quali [:SynapticHowto:Synaptic].
Linea 11: Linea 12:
== Index == Questi strumenti possono mostrarvi tutti i pacchetti installati nel vostro sistema (dal kernel alle applicazioni preferite e tutte le librerie del caso) e anche quelli disponibili nei repository per cui è stato configurato l'accesso. Vi permettono anche di eseguire ricerche per cose tipo: "editor di immagini".
Linea 13: Linea 14:
 * Uncommenting Universe
 * Using Synaptic
 * Using Terminal
 * Adding outside repositories
 * Adding outside repositories using Synaptic
 * Adding outside repositories using a Terminal
Utilizzando questi strumenti si centralizza e semplifica la gestione dei pacchetti dando al distributore (colui che configura i repository) una unica strada per mandarvi gli aggiornamenti!
Linea 20: Linea 16:
== Uncommenting Universe == Per Ubuntu, solitamente, vengono lasciati i repository di Ubuntu (che includono anche il CD di installazione), ma è possibile anche aggiungere repository non gestiti da Ubuntu!
Linea 22: Linea 18:
=== Using Synaptic === Per aggiungere repository consultare AddingRepositoriesHowto .
Linea 24: Linea 20:
To uncomment the {{{universe}}} repository, follow these instructions. Ora: la maggior parte dei programmi che volete usare con Ubuntu sono disponibili nei repository di Ubuntu. Potete andare alla ricerca su Internet di pacchetti o anche dei sorgenti, ma in questo modo sarà più difficile installarli e molte volte non si integreranno bene col sistema!
Linea 26: Linea 22:
On Hoary:
Start {{{Synaptic Package Manager}}} from the {{{System}}} , {{{Administration}}} menu.

attachment:hoarysynaptic.jpg

On Warty:
Start {{{Synaptic Package Manager}}} from the {{{Computer}}} , {{{System Configuration}}} menu

attachment:PicSelectSynapticFromtheMenu.png

In Synaptic, choose the {{{Repositories}}} item in the {{{Settings}}} menu

attachment:PicOpentheRepositoriesDialog.png

A list of repositories is shown. Click the {{{Settings}}} button at the bottom and tick {{{Show disabled software sources}}}. Then click the {{{Close}}} button.

attachment:showdisabled.jpg

You should now see checkboxes next to the repositories. Scroll down and enable the Universe repository by ticking the checkbox next to {{{Community Maintained (Universe)}}}. Click {{{OK}}} to save your settings. You may also want to enable Multiverse and the Universe Security updates repositories.

attachment:enableuniverse.jpg

Save the changes and close the window by clicking {{{OK}}}.

Update the list of available packages with {{{Reload}}} in the main window.
 
attachment:PicApplyTheseSettings.png

Once the package list has been updated, packages from universe can be installed.

--------------
Using Terminal
--------------

Alternatively, use a terminal and command line tools to enable universe. Start {{{Terminal}}} from {{{Applications}}}, {{{System Tools}}} in the menubar.

Type the following command:
{{{
   bash:~$ sudo nano -w /etc/apt/sources.list
}}}

The texteditor {{{nano}}} starts and opens the configuration file for repositories.
Remove the comment "{{{#}}}" marks from the start of lines that look like this:

{{{
   #deb http://archive.ubuntu.com/ubuntu hoary universe
   #deb-src ftp://archive.ubuntu.com/ubuntu hoary universe
}}}

then add the word {{{multiverse}}} making them look like this:

{{{
   deb http://archive.ubuntu.com/ubuntu hoary universe multiverse
   deb-src ftp://archive.ubuntu.com/ubuntu hoary universe multiverse
}}}

Afterwards, update the package list with the following command:
{{{
   bash:~$ sudo apt-get update
}}}

== Adding outside repositories ==

Sometimes other users will make repositories for packages they have made. It is real easy to add these repositories to the system package manager.

attachment:IconsPage/IconNote.png

'''Note:''' BE CAREFUL doing this, some outside packages could break your Ubuntu installation.

For a list of outside repositories see BreakMyUbuntu.

=== Adding outside repositories using Synaptic ===

As shown in the Using Synaptic screenshot above, start {{{Synaptic Package Manager}}} from the {{{Computer}}} menu, {{{System Configuration}}} item. Once Synaptic has launched, choose the {{{Settings}}} menu, [Repositories] item.

You now see a window with a list of repositories. Push the button {{{New}}} to add a repository. Type in the information about the repositories in the dropdown menu and three textfields according to the following examples.

Normally you find websites providing information about a repository in a form like the following example:
{{{
   deb http://www.grawert.net/ubuntu/ warty universe
}}}

This line provides the information for the Synaptic fields.

* {{{deb}}} means it is a binary, so use the drop-down list to choose binary. Normally this is the default setting.

* {{{http://www.grawert.net/ubuntu/}}} is the URI (Uniform Resource Identifier), which means in this case the location.

* {{{warty}}} is the release name.

* {{{universe}}} is the section name.


Sometimes the repository line has less information though, as shown in the next example.
{{{
   deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./
}}}

The first two fields (deb and URI) are clearly similar to the first example above. However, the release-name is "./" so just put this (without the quotes) in the release field of Synaptic. It looks weird, but simply specifies the release as being whatever is in the directory given by the URI. Furthermore, there is no {{{section}}} information so just leave that text field blnk in your Synaptic entry.


attachment:IconsPage/IconNote.png

'''Note:''' Only the {{{section}}} information is optional, and then only with respect to the repository-maintainer. If there is section information, it must be specifed in Synaptic. It cannot be left blank.

attachment:IconsPage/IconNote.png

'''Note:''' If you make a mistake with the syntax in the fields you will get an error when you click the OK button in Synaptic. One cause is putting a trailing slash at the end of the URI. Also beware of leaving whitespaces at the beginning/end of the fields.

Save the changes and close the window by pushing on {{{OK}}}.

Update the list of avaible packages with {{{Reload}}} in the main window. After downloading the packages list from the repositories you can install packages from universe.

=== Adding outside repositories using the Terminal ===

Alternatively, use a terminal and command line tools to enable other repositories. Start {{{Terminal}}} from {{{Applications}}}, {{{System Tools}}} in the menubar.

Type in the command line:

This example uses tseng's repository.
{{{
   bash:~$ echo deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ | sudo tee -a /etc/apt/sources.list
}}}

You would just substitute the {{{deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./}}} with any other outside repositories name.
Con i repository niente più estenuanti ricerche, spyware, shareware o freeware. La maggior parte dei programmi disponibili per Linux è già diposnibile su un comodo pacchetto!

Nel mondo del software Libero e Open Source i programmi sono solitamente disponibili nei cosidetti "tarball". Questo tipo di distribuzione è conveniente per i programmatori che vogliono studiare o modificare il programma, ma non lo è per chi vuole un programma che funzioni!

Come utente Windows o Mac OS siete stati abituati a cercare su Internet il programma desiderato, scaricarlo e installarlo. Oppure con il software disponibile su alcuni CD o DVD che si installa automaticamente. Per i sistemi liberi come Ubuntu GNU/Linux esiste qualche programma distribuito in questo modo, ma solitamente questi metodi sono proprietari e non liberi!

Per GNU/Linux esiste il mondo dei repository di pacchetti!

Nei sistemi come Ubuntu, il software è reso disponibile come pacchetti precompilati nel comodo formato deb (o rpm come per RedHat), che contengono il programma e le librerie necessarie. Questi programmi possono essere scaricati da Internet o essere disponibili in alcuni CD (il CD di Ubuntu ne è pieno!) e installati "a mano". Ma siete voi a doverlo fare.

I repository sono dei server che contengono molti pacchetti, a cui si può accedere con strumenti quali [:SynapticHowto:Synaptic].

Questi strumenti possono mostrarvi tutti i pacchetti installati nel vostro sistema (dal kernel alle applicazioni preferite e tutte le librerie del caso) e anche quelli disponibili nei repository per cui è stato configurato l'accesso. Vi permettono anche di eseguire ricerche per cose tipo: "editor di immagini".

Utilizzando questi strumenti si centralizza e semplifica la gestione dei pacchetti dando al distributore (colui che configura i repository) una unica strada per mandarvi gli aggiornamenti!

Per Ubuntu, solitamente, vengono lasciati i repository di Ubuntu (che includono anche il CD di installazione), ma è possibile anche aggiungere repository non gestiti da Ubuntu!

Per aggiungere repository consultare AddingRepositoriesHowto .

Ora: la maggior parte dei programmi che volete usare con Ubuntu sono disponibili nei repository di Ubuntu. Potete andare alla ricerca su Internet di pacchetti o anche dei sorgenti, ma in questo modo sarà più difficile installarli e molte volte non si integreranno bene col sistema!

Con i repository niente più estenuanti ricerche, spyware, shareware o freeware. La maggior parte dei programmi disponibili per Linux è già diposnibile su un comodo pacchetto!