Setting up a mixed Debian system

As the vast majority of Debian already knows, it has several branches:

  • Stable
  • Testing
  • Unstable (Sid)

But there is also a possibility to make a mixed system by making mixtures like:

  • unstable + experimental
  • stable + testing
  • stable + unstable
  • stable + testing + unstable

Let's see how to do it

First of all, for safety we must make a copy of our sources.list, for this we enter the file:

nano /etc/apt/sources.list

When we have done this we add the repositories of the branch or branches that we want in the sources.list, for example

### Debian oficial -- Testing
deb http://ftp.br.debian.org/debian/testing main contrib non-free
### Official Debian - Security Testing.
deb http://security.debian.org/testing / updates main contrib ### Official Debian - Sid
deb http://ftp.br.debian.org/debian/unstable main contrib non-free ### Official Debian - Experimental
deb http://ftp.de.debian.org/debian/experimental main contrib ### Multimedia - Audio - Rarewares
deb http://www.rarewares.org/debian/packages/unstable./### Multimedia -- Video -- Marillat
deb http://www.debian-multimedia.org stable main
deb http://www.debian-multimedia.org unstable main

now we save the file and execute:

apt-get update

Now we will prepare two files: preferences and apt.conf

nano /etc/apt/preferences

In this file we add the following:

Package: *
Pin: release o=Unofficial Multimedia Packages
Pin-Priority: 950
Packaging: *
Pin: release o = xmixahlx
Pin-Priority: 900 Package: *
Pin: release a = testing
Pin-Priority: 850 Package: *
Pin: release a = unstable
Pin Priority: 800Package: *
Pin: release a=experimental
Pin-Priority: 750

NOTE: This is an example, everything will depend on the repositories that we want to put

We create apt.conf:

nano /etc/apt/apt.conf

We add the following:

APT::Default-Release "testing";
APT::Cache-Limit 15000000;
Apt::Get::Purge;
APT::Clean-Installed;
APT::Get::Fix-Broken;
APT::Get::Fix-Missing;
APT::Get::Show-Upgraded "true";

We update the database:

apt-get update

And now we have two options to install packages:

The typical and the following:

apt-get install -t version_de_debian nombre_paquete

This way of installing will install the desired package for the specified version, resolving dependencies automatically.

Source: It's Debian


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   moskosov said

    When we have done

    Correct that Cuorage.

    1.    Courage said

      Correct that Cuorage.

      Correct that carcamal

      1.    moskosov said

        hahahahahahaha don't take it the wrong way ...

        1.    Courage said

          Not if I do not take it the wrong way, is that with the criticism you have committed a fault hahaha

  2.   moony said

    I practiced having a mixed system a while ago; I did not like. But it is very valid.

    1.    Chango said

      I know, I have tried mixed systems and I did not like it because the dependencies are broken, and the patches are not mixed, they are each one for its branch. For Debianites who want the latter, the best is the testing branch, or wait for the debian-cut project to achieve a "stable" debian testing, hehe.

      1.    Courage said

        wait for debian-cut project to achieve “stable” debian testing

        That's the best

        1.    elav <° Linux said

          Excuse me both but Debian Testing can not be more stable. Already about this kind of mixed thing, called actually APT-Pinning, I spoke in another article.

          1.    Courage said

            I will not comment because I have not tried it but it is not a pure rolling as is Debian CUT

  3.   jdgr00 said

    Hi, just a tiny clarification. "Experimental" is not a branch of Debian, just a repo. The branches are only the first 3 mentioned in the post.
    regards

    1.    Courage said

      Now i take it off

  4.   Manual of the Source said

    If I am using Debian Testing and I also have the Stable repositories enabled, is it necessary to define the apt.conf and preferences files? Doesn't APT automatically take the packages always from Testing and only if it doesn't find them does it take them from Stable?