I want to have access to some unstable debian packages (not an automatic update but only a hand made selection of the relevant packages ! !) in my LMDE distribution. What line should I add in my official-package-repositories.list file which today is :
deb http://packages.linuxmint.com debian main upstream import romeo
deb http://debian.linuxmint.com/latest/ testing main contrib non-free
deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
deb http://debian.linuxmint.com/latest/multimedia testing main non-free
deb http://extra.linuxmint.com debian main
Access to unstable debian packages
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Access to unstable debian packages
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Access to unstable debian packages
Depending on what you want you should add the first or all of the following lines:
Another possibility would be to add a text file containing those lines to /etc/apt/sources.list.d which you could call sid.list (for example). After getting the desired packages you would then delete sid.list or comment each line with # at the beginning.
For detailed information see http://manpages.debian.org/man/5/sources.list
Code: Select all
deb http://ftp.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.debian.org/debian/ sid main contrib non-free
deb http://www.deb-multimedia.org sid main non-free
For detailed information see http://manpages.debian.org/man/5/sources.list
Re: Access to unstable debian packages
Thank you.
I will use a second text file as you suggest with the additional line : deb http://ftp.debian.org/debian/ sid main contrib non-free.
So apparently there is no way to forbid an update of all installed packages with potential new ones proposed by debian/sid ?
I will use a second text file as you suggest with the additional line : deb http://ftp.debian.org/debian/ sid main contrib non-free.
So apparently there is no way to forbid an update of all installed packages with potential new ones proposed by debian/sid ?
Re: Access to unstable debian packages
Of course there is. Sorry, your thread sounded as if you already knew and only wanted to know the line for the repository.Emilien du Roy wrote:So apparently there is no way to forbid an update of all installed packages with potential new ones proposed by debian/sid ?
That's a complex thing. There are different possibilities/best ways depending on what you want to do:
1. Get sid's version of already installed package(s) and only that
2. Get sid's version of already installed package(s) including all necessary dependencies
3. Install package(s) from sid that as yet are not on your system and only that
4. Install package(s) from sid that as yet are not on your system including all necessary dependencies
Re: Access to unstable debian packages
Thanks,
I think that alternatives 3 & 4 are relevant to my situation.
I think that alternatives 3 & 4 are relevant to my situation.
Re: Access to unstable debian packages
For safety reasons I would first add unstable to pinning-preferences.
There should be a file called /etc/apt/preferences or /etc/apt/preferences.d/preferences . Add the following lines to this file
The priority (300 in my example) should be lower than any other already existing in this file. This will give sid the lowest priority from all repositories. Some additional information about pinning: https://wiki.debian.org/AptPreferences and http://www.argon.org/~roderick/apt-pinning.html
Then you can install packages with the following commmands:
1. This will install the package called foo from sid and install all dependencies and recommendations from your usual repositories.
2. This will install the package called foo and all necessary dependencies plus recommended packages from sid
I would tend to version 2, so as to make sure that the dependencies' versions fit foo.
If you don't want recommendations installed you can add --no-install-recommends to the lines.
Before you run anything for real I would advise you to run it once with option -s as a simulation to see what the command will do (this won't change your system, but you'll see possible problems in advance). So the command might read
Some additional information: http://manpages.debian.org/cgi-bin/man. ... ry=apt-get and http://www.binarytides.com/enable-testing-repo-debian/
You can stay with sid activated because pinning keeps sid's packages from being preferred by the package management.
But I prefer to comment sid (put # at the beginning of the respective lines in sources list) or delete sid.list because without sid the package lists update quicker and everything seems easier to me.
There should be a file called /etc/apt/preferences or /etc/apt/preferences.d/preferences . Add the following lines to this file
Code: Select all
Package: *
Pin: release a=unstable
Pin-Priority: 300
Then you can install packages with the following commmands:
1. This will install the package called foo from sid and install all dependencies and recommendations from your usual repositories.
Code: Select all
apt-get install foo/unstable
Code: Select all
apt-get -t unstable install foo
If you don't want recommendations installed you can add --no-install-recommends to the lines.
Before you run anything for real I would advise you to run it once with option -s as a simulation to see what the command will do (this won't change your system, but you'll see possible problems in advance). So the command might read
Code: Select all
apt-get -s --no-install-recommends -t unstable install foo
You can stay with sid activated because pinning keeps sid's packages from being preferred by the package management.
But I prefer to comment sid (put # at the beginning of the respective lines in sources list) or delete sid.list because without sid the package lists update quicker and everything seems easier to me.
Re: Access to unstable debian packages
as a final addition, I'd suggest to run a simulation using 'aptitude -s -t sid install <package name>' to ensure that your system won't break if you install that package. don't forget to backup your system since the gap between LMDE and sid is very wide and you can't predict everything :3
Re: Access to unstable debian packages
Thank you very much to Python and kurotsugi. I will apply these wise advices.