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: 800
Package: *
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
When we have done
Correct that Cuorage.
Correct that carcamal
hahahahahahaha don't take it the wrong way ...
Not if I do not take it the wrong way, is that with the criticism you have committed a fault hahaha
I practiced having a mixed system a while ago; I did not like. But it is very valid.
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.
That's the best
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.
I will not comment because I have not tried it but it is not a pure rolling as is Debian CUT
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
Now i take it off
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?