Author Topic: Apt Pinning  (Read 5693 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Apt Pinning
« on: December 16, 2007, 02:16:38 am »
Found a nice newbie-friendly article on apt pinning, which enables the user to prioritize the repos in /etc/apt/sources.list instead of installing/upgrading things simply based on the versioning of the packages:

http://jaqque.sbih.org/kplug/apt-pinning.html

One immediate use I thought of is to assign the highest priority to jpmatrix's custom repo, so that 2or0's mplayer won't get replaced by apt-get dist-upgrade.  
« Last Edit: December 16, 2007, 02:17:55 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Apt Pinning
« Reply #1 on: December 16, 2007, 11:19:27 am »
VERY Helpful, helps with gnumeric too which is broken in armel.

Whats the soure entry for 2or0's custom repo?  I have jpmatrix one mentioned in your signature, noticed mplayer wasn't in there.
« Last Edit: December 16, 2007, 12:43:51 pm by scottlfa »
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

cal

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Apt Pinning
« Reply #2 on: January 26, 2010, 03:41:25 pm »
Quote from: ZDevil
Found a nice newbie-friendly article on apt pinning, which enables the user to prioritize the repos in /etc/apt/sources.list instead of installing/upgrading things simply based on the versioning of the packages:

http://jaqque.sbih.org/kplug/apt-pinning.html

One immediate use I thought of is to assign the highest priority to jpmatrix's custom repo, so that 2or0's mplayer won't get replaced by apt-get dist-upgrade.  


My /etc/apt/preferences is pretty much exactly whats on that link plus a line to keep udev from upgrading.  Any others?  Maybe we should keep a list of potential apt pit falls.

Code: [Select]
Package: udev
Pin: version 0.114-2
Pin-Priority: 1001

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Cal
PS my udev pin might not be at the highest possible version, but it hasn't caused a problem yet.

axeTail

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Apt Pinning
« Reply #3 on: January 27, 2010, 02:11:25 pm »
Quote from: cal
Quote from: ZDevil
Found a nice newbie-friendly article on apt pinning, which enables the user to prioritize the repos in /etc/apt/sources.list instead of installing/upgrading things simply based on the versioning of the packages:

http://jaqque.sbih.org/kplug/apt-pinning.html

One immediate use I thought of is to assign the highest priority to jpmatrix's custom repo, so that 2or0's mplayer won't get replaced by apt-get dist-upgrade.  


My /etc/apt/preferences is pretty much exactly whats on that link plus a line to keep udev from upgrading.  Any others?  Maybe we should keep a list of potential apt pit falls.

Code: [Select]
Package: udev
Pin: version 0.114-2
Pin-Priority: 1001

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Cal
PS my udev pin might not be at the highest possible version, but it hasn't caused a problem yet.


Thanks for the info, my udev is broken....any ideas on how to fix it?

cal

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Apt Pinning
« Reply #4 on: January 27, 2010, 09:09:28 pm »
Quote from: axeTail
Quote from: cal
Quote from: ZDevil
Found a nice newbie-friendly article on apt pinning, which enables the user to prioritize the repos in /etc/apt/sources.list instead of installing/upgrading things simply based on the versioning of the packages:

http://jaqque.sbih.org/kplug/apt-pinning.html

One immediate use I thought of is to assign the highest priority to jpmatrix's custom repo, so that 2or0's mplayer won't get replaced by apt-get dist-upgrade.  


My /etc/apt/preferences is pretty much exactly whats on that link plus a line to keep udev from upgrading.  Any others?  Maybe we should keep a list of potential apt pit falls.

Code: [Select]
Package: udev
Pin: version 0.114-2
Pin-Priority: 1001

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Cal
PS my udev pin might not be at the highest possible version, but it hasn't caused a problem yet.


Thanks for the info, my udev is broken....any ideas on how to fix it?


Sorry, I don't really.
Maybe you can roll back with  sudo aptitude install <pkgname>=<version>

HRH_H_Crab

  • Newbie
  • *
  • Posts: 38
    • View Profile
Apt Pinning
« Reply #5 on: February 26, 2010, 10:22:58 am »
Quote from: axeTail
Thanks for the info, my udev is broken....any ideas on how to fix it?

Look at my post in the Udev and Kernel thread.