The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



"Обновление Debian 10.4"
Версия для распечатки Пред. тема | След. тема
Форум Разговоры, обсуждение новостей
Исходное сообщение [ Отслеживать ]
Присылайте удачные настройки в раздел примеров файлов конфигурации на WIKI.opennet.ru.
. "Обновление Debian 10.4" +1 +/
Сообщение от Delpher (ok), 09-Май-20, 23:09 
/etc/apt/sources.list:

#

#deb cdrom:[Debian GNU/Linux stratch _stable_ - Official Snapshot Multi-architecture amd64/i386 NETINST #1 20170102-03:54]/ stable main

deb http://security.debian.org/debian-security stable/updates main contrib non-free
#deb-src http://security.debian.org/debian-security stable/updates main contrib non-free

deb http://ftp.ru.debian.org/debian/ stable main contrib non-free
#deb-src http://ftp.ru.debian.org/debian/ stable main contrib non-free

deb http://ftp.ru.debian.org/debian/ stretch-backports main contrib non-free

deb http://ftp.ru.debian.org/debian/ testing main contrib non-free
#deb-src http://ftp.ru.debian.org/debian/ testing main contrib non-free

deb http://ftp.ru.debian.org/debian/ unstable main contrib non-free

deb http://ftp.ru.debian.org/debian experimental main contrib non-free

ONE of theese files content:
1. gedit /etc/apt/preferences
2. mcedit /etc/apt/preferences.d/security.pref

## UNSTABLE ###############

Package: *
Pin: release a=debian-security
Pin-Priority: 1001

Package: *
Pin: release a=unstable
Pin-Priority: 500

Package: *
Pin: release a=testing
Pin-Priority: 400

Package: *
Pin: release a=stretch-backports
Pin-Priority: 300

Package: *
Pin: release a=stable
Pin-Priority: 200

Package: *
Pin: release a=experimental
Pin-Priority: 100

## STABLE ###############

Package: *
Pin: release a=debian-security
Pin-Priority: 1001

Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release a=stretch-backports
Pin-Priority: 800

Package: *
Pin: release a=testing
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin-Priority: 500

Package: *
Pin: release a=experimental
Pin-Priority: 100

########################

Package - на какие пакеты распространяется приоритет. Звёздочка говорит что на все без исключения.
Pin - название ветки дистрибутива.
Pin-priority - собственно, приоритет. Чем он выше - тем жёстче будет закреплена ветка. Приоритет выше 1000 позволит произвести даунгрейд пакетов до той ветки, в которой он установлен. Потому если вы переборщили с экспериментами - выставляйте на stable приоритет 1001, обновляйте список пакетов и делайте dist-upgrade.

Как мы видим, репозиторий unstable у нас имеет наименьший приоритет. Возможно он вам не понадобится, но включить его нужно по той причине, что бывает программу переместили в testing, а часть её зависимостей осталась в unstable. И программа, естественно, не установится. Ок, приоритеты мы настроили. Теперь нужно подключить эти репозитории:

mcedit /etc/apt/sources.list

#Testing
deb http://mirror.yandex.ru/debian testing main contrib non-free
deb-src http://mirror.yandex.ru/debian testing main contrib non-free

#Unstable
deb http://mirror.yandex.ru/debian unstable main contrib non-free
deb-src http://mirror.yandex.ru/debian unstable main contrib non-free

Далее сохраняем и обновляем список пакетов:

apt-get update

Установка программ идёт двумя способами:

apt install ProgramName/testing #использовать существующие версии зависимостей (безопасный)
apt install -t testing ProgramName #использовать новые версии зависимостей (опасный, принудительный)

man apt_preferences #info

Ответить | Правка | Наверх | Cообщить модератору

Оглавление
Обновление Debian 10.4, opennews, 09-Май-20, 20:13  [смотреть все]
Форумы | Темы | Пред. тема | След. тема



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру