Instalaci programů provádíme příkazy dpkg, dselect, apt-get či wajig. Uvedl jsem jen konzolové programy z nichž všechny mimo dselect, jenž je „celoobrazovkový“, jsou řádkové utility.
FIXME: dopsat pár slov o dpkg.
Nastavení konfigurace apt se provádí konfiguračními soubory v adresáři /etc/apt/
.
Jedním z nich je soubor /etc/apt/sources.list
jenž popisuje odkud apt získá balíčky s programy.
Příklad 6.2. Ukázkové nastavení tohoto souboru
# /etc/apt/sources.list # Debian potato in local archive deb ftp://debian/debian potato main contrib non-free deb ftp://debian-non-US potato/non-US main contrib non-free # Last security updates deb http://security.debian.org potato/updates main contrib non-free
Příklad 6.3. Ukázka /etc/apt/sources.list
pro distribuci Woody
# Debian potato in local archive deb ftp://debian/debian woody main contrib non-free deb ftp://debian-non-US woody/non-US main contrib non-free # Last security updates deb http://security.debian.org woody/updates main contrib non-free
Příklad 6.4. Ukázka /etc/apt/sources.list
pro stabilní distribuci a české archívy
# Debian 'stable' in Czech archive deb http://www.debian.cz/debian stable main contrib non-free deb http://www.debian.cz/debian-non-US stable main contrib non-free # Last security updates deb http://security.debian.org stable/updates main contrib non-free
Příklad 6.5. Ukázka /etc/apt/sources.list
pro lokální „cache“ balíčků
# Debian cache deb http://debian:9999/main woody main contrib non-free deb http://debian:9999/non-US woody/non-US main contrib non-free # Last security updates deb http://security.debian.org stable/updates main contrib non-free