Dimensione: 6624
Commento:
|
Dimensione: 2708
Commento: Importato il documento originale
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 1: | Linea 1: |
|| Terminato il || 14 lug 05 || || Revisionato || - || |
= Repositories = |
Linea 4: | Linea 3: |
Traduzione di AddingRepositoriesHowto by BlackDesert | In the Free and Open Source Software world, programs are generally available in source code tarballs. These are convenient for a developer who intends to study and/or improve that software program, but they are cumbersome when you want a program that Just Works. |
Linea 6: | Linea 5: |
= Come aggiungere repositories al proprio sources.list = | If you have been a Windows and/or a Mac OS user to date, you are probably used to searching for a program on the internet (often offered in an executable installer) and having to download and install it. You're probably familiar with software distributed on CDs, DVDs, etc. which often have an autorun feature from where you can then install them. For free and open systems like Ubuntu GNU/Linux there is some software distributed in this fashion, but those are mostly proprietary and closed programs. |
Linea 8: | Linea 14: |
attachment:IconsPage/IconHelp.png | Enter the world of distribution and package repositories! |
Linea 10: | Linea 16: |
Questo documento spiega come aggiungere altri [:IRepositories: repositories] al proprio {{{/etc/apt/sources.list}}}. Spiega anche come rimuovere il commento al repository {{{universe}}}. | On systems like Ubuntu, free and open source software is very much often pre-packaged in nice .deb (or .rpm, like in Red Hat) files which contain the programs and libraries you need. These files can be downloaded or come in CDs (Ubuntu's CD is full of them) and installed "by hand". But you need not do it. Repositories are servers which contain sets of packages. You generally access them with tools like [:SynapticHowto:Synaptic]. |
Linea 12: | Linea 22: |
[[TableOfContents]] | These tools can list all the packages you have installed (from your kernel to your favorite application with all the libraries in between) and the packages that are available in the repositories you have configured the tool to have access to. They also let you search for simple things like "image editor". |
Linea 14: | Linea 28: |
== Rimuovere il commento a Universe == | Using these tools centralizes package management while simplifying it and giving the distributors (those who set up the repositories) a centralized way to send you updates(1) to your software. |
Linea 16: | Linea 32: |
=== Usare Synaptic === | In Ubuntu you generally want to have at least Ubuntu's repositories (which may include the install CD) but it is not uncommon to have other repositories (from other packagers) set up. |
Linea 18: | Linea 36: |
Per rimuovere il commento al repository {{{universe}}}, segui queste istruzioni: | Please see AddingRepositoriesHowto for how to set up repositories. |
Linea 20: | Linea 38: |
Su Hoary 5.04 | Now, let us just stress this simple idea: most of the tools you'll want to use in Ubuntu are already in Ubuntu's repositories. You can go search the internet for packages, or even source code, for others, but these will be more difficult to install and won't, most of the time, integrate well with your system. |
Linea 22: | Linea 44: |
Avvia {{{Synaptic Package Manager}}} dal menu {{{System}}} > {{{Administration}}} | So now you know: no more endless searching looking for spyware infested shareware and freeware. The vast majority of useful software available for Linux is pre-packaged for you. |
Linea 24: | Linea 46: |
attachment:hoarysynaptic.jpg Su Warty 4.10: Avvia {{{Synaptic Package Manager}}} del menu {{{Computer}}} > {{{System Configuration}}} attachment:PicSelectSynapticFromtheMenu.png In Synaptic, selezionare la voce {{{Repositories}}} nel menu {{{Settings}}} attachment:PicOpentheRepositoriesDialog.png Viene mostrata una lista di repositories. Cliccare sul pulsante {{{Settings}}} in basso e spuntare l'opzione {{{Show disabled software sources}}}. Infine cliccare su {{{Close}}}. attachment:showdisabled.jpg Ora dovrebbe apparire una lista di repositories affiancati dal una casella d'opzione. Scorri la lista ed attiva il repository Universe, spuntando la casella che si trova a fianco di {{{Community Maintained (Universe)}}}. Ora clicca su {{{OK}}} per salvare le impostazioni. Allo stesso modo puoi anche attivare i repository {{{Multiverse}}} e {{{Universe Security}}}. attachment:enableuniverse.jpg Salva le impostazioni e chiudi la finestra cliccando su {{{OK}}}. Aggiorna la lista dei pacchetti disponibili con il comando {{{Reload}}} nella finestra principale. attachment:PicApplyTheseSettings.png Una volta che la lista dei pacchetti è stata aggiornata, i pacchetti del repository universe possono essere installati. === Usare il Terminale === In alternativa, per abilitare il repository universe, si può usare il terminale con i suoi comandi. Avviate {{{Terminal}}} dal menu {{{Applications}}} > {{{System Tools}}} Digitate il seguente comando: {{{ bash:~$ sudo nano -w /etc/apt/sources.list }}} Si avvia l'editor di testo {{{nano}}} che aprirà il file di configurazione per i repositories (n.d.t. il file è /etc/apt/sources.list). Rimuovete il commento "{{{#}}}" dall'inizio di queste linee: {{{ #deb http://archive.ubuntu.com/ubuntu hoary universe #deb-src ftp://archive.ubuntu.com/ubuntu hoary universe }}} poi aggiungete la parola {{{multiverse}}}, devono risultare così: {{{ deb http://archive.ubuntu.com/ubuntu hoary universe multiverse deb-src ftp://archive.ubuntu.com/ubuntu hoary universe multiverse }}} In seguito, aggiornate la lista dei pacchetti con il seguente comando: {{{ bash:~$ sudo apt-get update }}} == Aggiungere repositories esterni == Talvolta altri utenti creano dei repositories per i pacchetti che hanno creato. E' davvero semplice aggiungere questi repositories al gestore dei pacchetti. attachment:IconsPage/IconNote.png '''Nota:''' ATTENZIONE ! effettuare queste operazioni con prudenza, alcuni pacchetti esterni potrebbero danneggiare la vostra installazione Ubuntu. Per una lista di repositories esterni consulta: [https://wiki.ubuntu.com/BreakMyUbuntu] (n.d.t. in inglese...) === Aggiungere repositories esterni con Synaptic === Come in precedenza indicato, avviate {{{Synaptic Package Manager}}} dal menu {{{Computer}}} > {{{System Configuration}}}. In Synaptic, scegliete la voce [Repositories] nel menu {{{Settings}}}. Ora appare una finestra con una lista di repositories. Premete il pulsante {{{New}}} per aggiungere un repository. Digitate le informazioni sui repositories nel menu a discesa e nei campi seguendo queste istruzioni. Di solito i siti web forniscono l'indirizzo dei repositories in un formato simile al seguente esempio: {{{ deb http://www.grawert.net/ubuntu/ warty universe }}} Questa linea contiene le informazioni per i campi di Synaptic. * {{{deb}}} significa che è un file binario, perciò usate la lista a discesa per scegliere ''binary''. Di solito questo è il settaggio di default. * {{{http://www.grawert.net/ubuntu/}}} questo l'URI (Uniform Resource Identifier), che indica la collocazione. * {{{warty}}} questo è il nome della release. * {{{universe}}} questo è il nome della sezione. Talvolta la linea del repository riporta una minore quantità di informazioni, come mostriamo nel prossimo esempio: {{{ deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ }}} I primi due campi (deb e URI) sono uguali a quelli mostrati nel primo esempio. Comunque il nome della versione è "./" perciò inserite questa indicazione (senza le virgolette) nel campo versione di Synaptic. Questa opzione sembra strana, ma semplicemente specifica di fare riferimento alla release, qualunque essa sia, presente nella directory specificata dall'URI. Inoltre, non c'è alcuna informazione sulla {{{section}}} (n.d.t. sezione), perciò lasciate quel campo in bianco. attachment:IconsPage/IconNote.png '''Nota:''' Solo il campo {{{section}}} è opzionale, ma la scelta spetta al mantenitore del repository. Se sono fornite, devono essere specificate in Synaptic. Non possono essere lasciate in bianco. attachment:IconsPage/IconNote.png '''Nota:''' In caso di errata indicazione della sintassi dei campi, cliccando sul buttone OK verrà visualizzato un errore. Una causa frequente di errore è lo slash (n.d.t. "/") alla fine dell'URI. Inoltre fate anche attenzione a non lasciare spazi vuoti all'inizio o alla fine dei campi. Salvate le modifiche e chiudete la finestra premendo su {{{OK}}}. Aggiornate la lista dei pacchetti disponibili premendo su {{{Reload}}} nella finestra principale. Dopo aver scaricato la lista dei pacchetti dai repositories potete installare pacchetti dal repository Universe. === Aggiungere repositories esterni con il terminale === In alternativa, potete attivare altri repositories usando gli strumenti disponibili dalla riga di comando. Avviate il {{{Terminal}}} dal menu {{{Applications}}} > {{{System Tools}}}. Digitate questi comanti: (Questo esempio utilizza il repository di tseng). {{{ bash:~$ echo deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./ | sudo tee -a /etc/apt/sources.list }}} Dovete solo sostituire {{{deb http://www.getsweaaa.com/~tseng/ubuntu/debs ./}}} con l'indirizzo di un qualunque altro repository esterno. |
(1) You can use tools like the update-notifier in Ubuntu to be notified when such updates are made available. ---- CategoryInTraduzione |
Repositories
In the Free and Open Source Software world, programs are generally available in source code tarballs. These are convenient for a developer who intends to study and/or improve that software program, but they are cumbersome when you want a program that Just Works.
If you have been a Windows and/or a Mac OS user to date, you are probably used to searching for a program on the internet (often offered in an executable installer) and having to download and install it. You're probably familiar with software distributed on CDs, DVDs, etc. which often have an autorun feature from where you can then install them. For free and open systems like Ubuntu GNU/Linux there is some software distributed in this fashion, but those are mostly proprietary and closed programs.
Enter the world of distribution and package repositories!
On systems like Ubuntu, free and open source software is very much often pre-packaged in nice .deb (or .rpm, like in Red Hat) files which contain the programs and libraries you need. These files can be downloaded or come in CDs (Ubuntu's CD is full of them) and installed "by hand". But you need not do it. Repositories are servers which contain sets of packages. You generally access them with tools like [:SynapticHowto:Synaptic].
These tools can list all the packages you have installed (from your kernel to your favorite application with all the libraries in between) and the packages that are available in the repositories you have configured the tool to have access to. They also let you search for simple things like "image editor".
Using these tools centralizes package management while simplifying it and giving the distributors (those who set up the repositories) a centralized way to send you updates(1) to your software.
In Ubuntu you generally want to have at least Ubuntu's repositories (which may include the install CD) but it is not uncommon to have other repositories (from other packagers) set up.
Please see AddingRepositoriesHowto for how to set up repositories.
Now, let us just stress this simple idea: most of the tools you'll want to use in Ubuntu are already in Ubuntu's repositories. You can go search the internet for packages, or even source code, for others, but these will be more difficult to install and won't, most of the time, integrate well with your system.
So now you know: no more endless searching looking for spyware infested shareware and freeware. The vast majority of useful software available for Linux is pre-packaged for you.
(1) You can use tools like the update-notifier in Ubuntu to be notified when such updates are made available.