My VPS hoster uses its own mirror with dinosaur packages (2013-2014), and I want to install the latest packages. How can I do it? What repositories to put in, so that, for example, nginx is not installed in my 1.6.2, but 1.10.1?

  • How can I do it? - discuss with the host the possibility of installing the tested version of the distribution kit instead of the stable one. - aleksandr barakin
  • what version of debian do you have now? ( cat /etc/debian_version ) - sercxjo
  • It is certainly good, just get ready for the fact that everything will break. So make a backup or something. PS The release system was invented not from nothing to do. - don Rumata

2 answers 2

The officially supported package Debian upgrade is the backports . It contains packages of newer versions compiled in the environment of the old distribution. Consider, for example, that your distribution is jessie. You need to add or uncomment the line in /etc/apt/sources.list :

 deb http://httpredir.debian.org/debian jessie-backports main contrib non-free 

With this method, after apt-get update when the system is updated, nothing will change, old packages will still be offered. But if you need a newer one, you can install it by specifying the release:

 # apt-get -t jessie-backports install nginx 

Judging by the packages.debian.org service, the current version of nginx in backports for jessie is also not the newest - 1.9.10.

    In order to always have fresh software on your VPS, you need to install a third-party repository, for example: https://www.dotdeb.org/

    According to the instructions for use, add to your /etc/apt/sources.list line of the form:

     deb http://packages.dotdeb.org jessie all deb-src http://packages.dotdeb.org jessie all 
    • Before connecting to the new repository, make sure that the OS of the Dinosaur Times will work with them correctly and that the hoster supports such cases. And then you will be without a support and without hosting at once. - Smithson
    • Smithson agrees, for the new repo it will tighten its compatibility, and for the old it will be necessary its old ones and because of this a conflict may be caused, it remains only to compile the new handles - fermeg