apt-pinning

Archived topics about LMDE 1 and LMDE 2
Locked
TomRoche

apt-pinning

Post by TomRoche »

Moved from here:
Sonsum wrote:I always get my Iceweasel (the same as FF) from the experimental repo using apt-pinning.
I get my iceweasel from

Code: Select all

deb http://mozilla.debian.net/ squeeze-backports iceweasel-release
What's the advantage to getting iceweasel "from the experimental repo using apt-pinning"?
Sonsum wrote:I believe that LMDE is a better solution than a rolling release - due to the better stability. With the right apt-pinning, it can be as up-to-date as you want, yet you don't have to worry about updates borking your machine (as much anyways).
I've been meaning to learn about apt-pinning: what's a howto for newbies? (as in, someone who knows enough about apt-get/aptitude and sources.list to cope with LMDE, but has never apt-pinned)
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.
zerozero

Re: apt-pinning

Post by zerozero »

hi Tom :wink:
i'm a bit short of time right now (early shift tomorrow :evil: ) but
- in the end of of the FAQ you'll find a few links;
- this was a testing :lol: topic and was successful afaik

have fun pinning

to be continued...
craigevil

Re: apt-pinning

Post by craigevil »

apt-pinning is a messy way to go about things. it is usually used as a last resort or by a newbie that hasn't a clue what they are doing.

# AptPreferences - Debian Wiki : http://wiki.debian.org/AptPreferences
# Apt-Pinning for Beginners : http://jaqque.sbih.org/kplug/apt-pinning.html
# Howto: Set up and Maintain a Mixed Testing/Unstable System : http://forums.debian.net/viewtopic.php? ... 12&p=76067
# HowTo Build a Package from Source the Smart Way : http://forums.debian.net/viewtopic.php?f=16&t=38976
# Howto get newer package versions for Debian Stable - https://www.linuxquestions.org/question ... ble-34611/
TomRoche

Re: apt-pinning

Post by TomRoche »

craigevil wrote:apt-pinning is a messy way to go about things. it is usually used as a last resort or by a newbie that hasn't a clue [...]
# Howto: Set up and Maintain a Mixed Testing/Unstable System : http://forums.debian.net/viewtopic.php? ... 12&p=76067
But the reference you cite says
Suppose that Testing is the default release, but the application in which we're interested exists only in Unstable. In that case, Aptitude will happily install it (and its dependencies) without any particular warning. This is further complicated by the fact that those dependencies, along with any programs you chose by name to install, are "marked" by Apt as OK to upgrade from Unstable. From now on (until your Unstable package moves to Testing), those programs will be updated from Sid as the updates become available.

The critical result of that behavior is that it will behoove you to be aware of what programs have been installed from your secondary repositories, so that you can be alert for subsequent upgrades from that repository which can easily happen without your realization. (Note: The best way I have discovered to check exactly what packages are currently installed from unstable is:

Code: Select all

$ apt-show-versions | grep unstable
)

The next step in preventing such unforeseen updates is "pinning," but that is just beyond the scope of this Howto.
which does not deprecate pinning.
zerozero

Re: apt-pinning

Post by zerozero »

if apt-pinning is a tricky job in proper debian and if misused can cause serious troubles is even more complex in lmde mainly because it already ships a preferences file and tbh in the end of the day it causes more issues than it worth. (1)
(1)- let's be clear about this: the preferences file shipped with lmde works and works well in the closed ecosystem of the UP. period. but even there if you decide to compile and/or get "alien" packages (as in from outside the default repos) soon you'll face barriers and errors that are easily solved adjusting the preferences like here

this is a problem when you for example add the experimental repo to lmde; according to this and may i add, my experience with proper debian as well, if/when you add experimental nothing happens (as it shouldn't), in lmde (because of that rule) you get a system upgrade to experimental and most certainly a broken system.

on the other hand the 2 first rules in the preferences file are responsible for some of the mint-specific additions and tweaks (a couple app, fonts configs and rendering); if you just get rid of that preferences file, the first thing (and probably the only really annoying) you'll notice is a poor font rendering, but you are also seeing that is harder and harder to keep the ubuntu-patched libfontconf.

here you see an example of apt-pinning trying to work (to a certain extent) with the default lmde files.

here you see the other side
TomRoche

apt-pinning tutorial?

Post by TomRoche »

zerozero wrote:here you see an example of apt-pinning trying to work (to a certain extent) with the default lmde files.
I haven't tried that yet, but, given that
  1. it seems well written
  2. it helped the OP
  3. this seems to be a topic of general interest but not general competence
I'd support copying that to the tutorials.
zerozero

Re: apt-pinning tutorial?

Post by zerozero »

TomRoche wrote: I'd support copying that to the tutorials.
8) why not? here it is
Locked

Return to “LMDE Archive”