Hidden Linux : Bypassing automatic updates
The problem with installing non-standard packages in auto-updating distributions is that you need a way of telling the package manager what you've done. Last time I showed you how to keep up to date with the latest OpenOffice.org releases, but that has an unfortunate side-effect. Here's how it looks in Kubuntu:
Adept Notifier thinks you've missed an update, and will tell you so if you click the icon:
The way around it in Ubuntu and other Debian-based distros is to edit /etc/apt/preferences, but before doing that, install apt-show-versions so you can list what packages the system thinks need updrading. (This step isn't essential. I just find it a convenient way of listing packages on the console.)
|sudo apt-get install apt-show-versions|
for a list of upgradable packages.
The /etc/apt/preferences file requires three things: the Package, a Pin and the Pin-Priority in this format
Package: <package name>with each entry separated from the others by at least one blank line.
Pin: <pin definition>
Pin-Priority: <pin priority>
Package is quite straightforward. Pin and Pin-Priority are a little more complicated (for the full explanation check out man apt_preferences). For our purposes, simply regard Pin as "pinning" the package to a particular version number. And we'll just set Pin-Priority to "1001" which means "never replace this package".
Start up the editor (sudo nano /etc/apt/preferences) and enter the following;
Package: openoffice.org-calcSave the file and check again with apt-show-versions -u. You'll see the prompt to upgrade OOo Calc has disappeared. Now add the other upgrades listed by apt-show-versions -- don't forget the blank line in between entries -- and the problem's solved. (Adept Notifier may take a little longer to catch up with your changes, but if you click it you'll learn there's nothing to upgrade.)
Pin: version 2.4*
<--Previous Hidden Linux Next Hidden Linux -->