• Apt-Cacher NG - Software Package Download Proxy
    https://www.unix-ag.uni-kl.de/~bloch/acng

    A caching proxy. Specialized for package files from Linux distributors, primarily for Debian (and Debian based) distributions but not limited to those. See documentation of Apt-Cacher to learn what it’s good for.

    A la maison, tout est sous Linux Mint Debian Edition et désormais configuré pour passer par ce proxy (même liste de sources) :
    – 1 « mediacenter » (un NAS avec #apt-cache-ng en démon)
    – 2 PC fixes et 2 PC portables

    Résultat, une accélération fulgurante du téléchargement des paquets : chaque machine qui en nécessite un le fait télécharger par le médiacenter, ce qui le rend disponible sur le LAN pour tous les autres...

    Avantage collatéral, je libère la bande passante des miroirs pour les autres.
    Mieux qu’un miroir local car je ne télécharge pas les dizaines de milliers de paquets qui ne me servent pas (tout est amd64 chez moi). A vue de nez, cela occupera entre 15 et 20GB sur le NAS.

    Explications du fonctionnement et de la configuration en français : http://www.isalo.org/wiki.debian-fr/Apt-cacher-ng

    #Linux #debian #apt-get #mise_a_jour #LMDE

  • Accélérer l’exécution de #dpkg, #apt-get ou #aptitude - Humus numericus
    http://blog.nozav.org/post/2011/06/29/Acc%C3%A9l%C3%A9rer-l-ex%C3%A9cution-de-dpkg%2C-apt-get-ou-aptitude

    Petit conseil si votre dpkg rame, si votre apt-get se traîne comme une vieille chaussette ou si votre aptitude a le dynamisme d’une histoire de Petit ours brun, et si ces ralentissements se produisent lorsque ces programmes lisent leur base de données.

    Après quelques recherches sur le Web, il semble que ce ralentissement provient des très nombreux fichiers présents dans /var/lib/dpkg/info et que dpkg et consorts doivent lire de temps en temps. Avec le temps ces fichiers se fragmentent (ils se situent à des endroits dispersés sur votre disque dur) et leur lecture prend de plus en plus de temps.

    Une solution peut être d’utiliser le script suivant, donné par gmargo sur un forum #ubuntu.

    #linux #debian

  • #apt-get, #aptitude, … pick the right #Debian package manager for you
    http://raphaelhertzog.com/2011/06/20/apt-get-aptitude-%E2%80%A6-pick-the-right-debian-package-manager-for

    apt-get or aptitude?

    First I want to make it clear that you can use both and mix them without problems. It used to be annoying when apt-get did not track which packages were automatically installed while aptitude did, but now that both packages share this list, there’s no reason to avoid switching back and forth.

    I would recommend apt-get for the big upgrades (i.e. dist-upgrade from one stable to the next) because it will always find quickly a relatively good solution while aptitude can find several convoluted solutions (or none) and it’s difficult to decide which one should be used.

    On the opposite for regular upgrades in unstable (or testing), I would recommend “aptitude safe-upgrade“. It does a better job than apt-get at keeping on hold packages which are temporarily broken due to some not yet finished changes while still installing new packages when required. With aptitude it’s also possible to tweak dynamically the suggested operations while apt-get doesn’t allow this. And aptitude’s command line is probably more consistent: with apt-get you have to switch between apt-get and apt-cache depending on the operation that you want to do, aptitude on the other hand does everything by itself.