ImoLUGImoLUG [ Corso Linux: Lezione 2 ] Nell'ambiente linux si definisce PACCHETTO un “file...
Transcript of ImoLUGImoLUG [ Corso Linux: Lezione 2 ] Nell'ambiente linux si definisce PACCHETTO un “file...
ImoLUGImoLUG
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
GESTIONE DEI PACCHETTI
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
● Nell'ambiente linux si definisce PACCHETTO un “file archivio”
● I PACCHETTI contengono tutti i file necessari all'implementazione di una serie di comandi o di funzionalità
● I PACCHETTI sono alla base del software per linux
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ TIPI di PACCHETTI: ]
● Pacchetti binari
●Pacchetti sorgenti
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ TIPI di PACCHETTI: ]
● Pacchetti binari: eseguibile file configurazione man / info documentazione
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ TIPI di PACCHETTI: ]
● Pacchetti binari: eseguibile file configurazione man / info documentazione
Per Debian /Ubuntu: il formato del file è .deb
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ TIPI di PACCHETTI: ]
● Pacchetti binari: eseguibile file configurazione man / info documentazione
Per Debian /Ubuntu: il formato del file è .deb
“Spacchettati” o gestiti da utilità, sia grafiche e sia testuali
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ TIPI di PACCHETTI: ]
● Pacchetti sorgenti: file .dsc ---> descrizione file .tar.gz ---> sorgente file . Diff.gz ---> modifiche specifiche
[ Pacchetti binari ]
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ TIPI di PACCHETTI: ]
● Pacchetti sorgenti: file .dsc ---> descrizione file .tar.gz ---> sorgente file . Diff.gz ---> modifiche specifiche
Gestiti / compilati da utilità oppure dall'utente
[ Pacchetti binari ]
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ DIPENDENZE: ]
[ Pacchetti binari ][ Pacchetti sorgenti ]
● Ad ogni pacchetto è associato un file control nel quale sono descritti i legami con altri pacchetti
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ CONVENZIONI: ]
[ Pacchetti binari ][ Pacchetti sorgenti ][ Dipendenze ]
● Ogni pacchetto ha un nome e segue la seguente convenzione:
nome_revisione-architettura.deb
● Per esempio:
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ PRELEVARE I PACCHETTI: ]
[ Pacchetti binari ][ Pacchetti sorgenti ][ Dipendenze ][ Convenzioni ]
● Download diretto del pacchetto da un sito
● Repository /etc/apt/sources.list
http://packages.ubuntu.comhttp://www.debian.org/distrib/packages#search-packagesAltri siti
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
# Repo ufficialideb http://ftp.it.debian.org/debian squeeze main contrib non-freedeb-src http://ftp.it.debian.org/debian squeeze main contrib non-freedeb http://download.virtualbox.org/virtualbox/debian lenny non-free
# Repo Multimediadeb http://www.debian-multimedia.org squeeze main non-freedeb-src http://www.debian-multimedia.org squeeze main non-free
# Repo NON UFFICIALIdeb http://packages.kirya.net/debian sid main contrib non-freedeb-src http://packages.kirya.net/debian sid main contrib non-free
[ ESEMPIO DI SOURCES.LIST: ]
[ Pacchetti binari ][ Pacchetti sorgenti ][ Dipendenze ][ Convenzioni ][Repository ]
DEBIAN
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
deb http://it.archive.ubuntu.com/ubuntu/ hardy main restricteddeb-src http://it.archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://it.archive.ubuntu.com/ubuntu/ hardy-updates main restricteddeb-src http://it.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb http://it.archive.ubuntu.com/ubuntu/ hardy universedeb-src http://it.archive.ubuntu.com/ubuntu/ hardy universedeb http://it.archive.ubuntu.com/ubuntu/ hardy-updates universedeb-src http://it.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb http://it.archive.ubuntu.com/ubuntu/ hardy multiversedeb-src http://it.archive.ubuntu.com/ubuntu/ hardy multiversedeb http://it.archive.ubuntu.com/ubuntu/ hardy-updates multiversedeb-src http://it.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricteddeb-src http://security.ubuntu.com/ubuntu hardy-security main restricteddeb http://security.ubuntu.com/ubuntu hardy-security universedeb-src http://security.ubuntu.com/ubuntu hardy-security universedeb http://security.ubuntu.com/ubuntu hardy-security multiversedeb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
UBUNTU
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ PROGRAMMI PER GESTIRE I PACCHETTI: ]
● Synaptic● Apitude Tool grafici
● apt-get● dselect● dpkg
Tool testuali
[ Pacchetti binari ][ Pacchetti sorgenti ][ Dipendenze ][ Convenzioni ][Repository ][Tool gestione binari ]
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ]
Installazione software windows
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software windows
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software windows
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software windows
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ ESEMPI: ] Installazione software Linux con Synaptic
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ PANORAMICA SYNAPTIC: ]
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ PANORAMICA SYNAPTIC: ] repository
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ PANORAMICA SYNAPTIC: ] repository
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ GDEBI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ APT: ]
# apt-get install# apt-get update# apt-get dist-upgrade# apt-get upgrade <nome_pacchetto_esatto># apt-get remove# apt-get --purge remove# apt-get clean# apt-cache search <nome_pacchetto_esatto># apt-cdrom add
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ COMPILARE I SORGENTI: ] module assistant
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ COMPILARE I SORGENTI: ] module assistant
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
[ COMPILARE I SORGENTI: ] module assistant
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
ImoLUGImoLUG [ Corso Linux: Lezione 2 ]
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License