# HG changeset patch # User Oleksandr Gavenko # Date 1463912710 -10800 # Node ID 1a1e7df7015ec8b4e59778a32ae8d5bac0d26f5f # Parent 4389c77690f6889281182f91566821ea60c27a79 Find nearest mirror. diff -r 4389c77690f6 -r 1a1e7df7015e debian-apt.rst --- a/debian-apt.rst Sat May 21 10:41:58 2016 +0300 +++ b/debian-apt.rst Sun May 22 13:25:10 2016 +0300 @@ -6,21 +6,78 @@ .. contents:: :local: -Conf files. -=========== +Debian releases +=============== + +Workflow:: + + experimental → unstable (sid) → testing → stable + +Which package from witch release:: + + $ aptitude search ~S~i~Astable + $ aptitude search ~S~i~Atesting + $ aptitude search ~S~i~Aunstable + $ aptitude search ~S~i~Aexperimental + + * https://wiki.debian.org/DebianReleases + * https://wiki.debian.org/DebianOldStable + * https://wiki.debian.org/DebianStable + * https://wiki.debian.org/DebianTesting + * https://wiki.debian.org/DebianUnstable + * https://wiki.debian.org/DebianExperimental + +Conf files +========== See man sources.list(5), apt.conf(5), apt_preferences(5). -``/etc/apt/sources.list``:: +``http://httpredir.debian.org/debian/`` used for automatic balancing to nearest +perository. Corresponding ``/etc/apt/sources.list`` may have:: + + deb http://httpredir.debian.org/debian/ stable main contrib non-free + deb http://httpredir.debian.org/debian/ stable-backports main contrib non-free + deb http://httpredir.debian.org/debian/ unstable main contrib non-free + deb http://httpredir.debian.org/debian/ experimental main contrib non-free + deb http://httpredir.debian.org/debian/ testing main contrib non-free + deb http://httpredir.debian.org/debian/ testing main contrib non-free + +Security updates destributed via different URL (for ``oldstable``, ``stable`` +and ``testing`` only, of cause there are no reason for ``sid`` or +``experimental``):: + + deb http://security.debian.org/ oldstable main contrib non-free + deb http://security.debian.org/ stable main contrib non-free + deb http://security.debian.org/ testing main contrib non-free + +Other useful repositories:: + + deb http://www.deb-multimedia.org testing main non-free - deb http://ftp.debian.org.ua/debian/ stable main contrib non-free - deb http://ftp2.debian.org.ua/debian/ testing main contrib non-free - deb http://ftp2.debian.org.ua/debian/ unstable main contrib non-free - deb http://ftp.uk.debian.org/debian/ experimental main contrib non-free - deb http://www.deb-multimedia.org testing main non-free +http://httpredir.debian.org/ + The redirector aims to solve the problem of choosing a Debian mirror. +https://www.debian.org/security/ + Keeping your Debian system secure. + +Find nearest mirror +=================== + +Newer approach for selecting mirror is via DNS balancing from +``httpredir.debian.org``. Just use:: -Package priority. -================= + deb http://httpredir.debian.org/debian/ stable main contrib non-free + +Older approach to select nearest mirrors is:: + + $ sudo apt-get install netselect-apt + $ netselect-apt stable + $ netselect-apt testing + $ netselect-apt unstable + $ netselect-apt experimental + $ netselect-apt sid + +Package priority +================ ``/etc/apt/preferences``:: @@ -87,27 +144,6 @@ p 24.4+1-5 kali-current 50 i 24.5+1-3 testing 990 -Debian releases. -================ - -Workflow:: - - experimental → unstable (sid) → testing → stable - -Which package from witch release:: - - $ aptitude search ~S~i~Astable - $ aptitude search ~S~i~Atesting - $ aptitude search ~S~i~Aunstable - $ aptitude search ~S~i~Aexperimental - - * https://wiki.debian.org/DebianReleases - * https://wiki.debian.org/DebianOldStable - * https://wiki.debian.org/DebianStable - * https://wiki.debian.org/DebianTesting - * https://wiki.debian.org/DebianUnstable - * https://wiki.debian.org/DebianExperimental - Setup backport. =============== @@ -230,21 +266,6 @@ $ aptitude search '?tag(works-with::logfile)' -Find nearest mirror. -==================== -:: - - $ sudo apt-get install netselect-apt - $ netselect-apt stable - $ netselect-apt testing - $ netselect-apt unstable - $ netselect-apt experimental - $ netselect-apt sid - -Newer approach for selecting mirror is via DNS. Just use:: - - http://httpredir.debian.org/ - Show dependency graph. ====================== ::