apt-pinning

Questions about applications and software
Forum rules
Before you post please read this

apt-pinning

Postby TomRoche on Sun Jul 08, 2012 4:50 pm

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)
TomRoche
Level 3
Level 3
 
Posts: 168
Joined: Thu Jan 13, 2011 2:52 pm

Linux Mint is funded by ads and donations.
 

Re: apt-pinning

Postby zerozero on Sun Jul 08, 2012 5:01 pm

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...
zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

Re: apt-pinning

Postby craigevil on Sun Jul 08, 2012 7:37 pm

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/
Debian Sid KDE4.8.4 Kernel 3.4 Thinkpad R40 CPU Pentium M 1.3MHz RAM 2GB ATI Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
craigevil
Level 5
Level 5
 
Posts: 559
Joined: Wed Sep 15, 2010 6:10 am
Location: down the rabbit hole

Re: apt-pinning

Postby TomRoche on Sun Jul 08, 2012 8:11 pm

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.
TomRoche
Level 3
Level 3
 
Posts: 168
Joined: Thu Jan 13, 2011 2:52 pm

Re: apt-pinning

Postby zerozero on Mon Jul 09, 2012 4:40 pm

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
zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

apt-pinning tutorial?

Postby TomRoche on Mon Jul 09, 2012 5:41 pm

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.
TomRoche
Level 3
Level 3
 
Posts: 168
Joined: Thu Jan 13, 2011 2:52 pm

Re: apt-pinning tutorial?

Postby zerozero on Mon Jul 09, 2012 5:46 pm

TomRoche wrote:I'd support copying that to the tutorials.

8) why not? here it is
zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests