I know about pinning packages with Apt. That's not what I want to do. Other questions have been answered with either using pinning or by using pins temporarily. I don't want to do this.
What I want to do is keep packages back the same way the kernel has been:
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
The following packages will be upgraded:
I want to add tomcat-* and mysql-* and sun-* to this list. In the past, there was a configuration parameter to do this. I've always thought it was something like Apt::Get::HoldPkgs or Apt::HoldPkgs but I can't find it.
I want to have these packages held from updates until I specifically request them with an apt-get install.
I found the apt-get configuration Apt::NeverAutoRemove. Will this do what I want?
Added Question: I notice that Apt::NeverAutoRemove and Apt::Never-MarkAuto-Sections (among others) are not documented so far as I can see. They're not in the manpages. Neither is aptitude::Keep-Unused-Pattern and aptitude::Get-Root-Command.
Is there any comprehensive and complete documentation for apt.conf?
upgradeanddist-upgradeand cannot be configured on a per-package basis. – enzotib Jun 29 '11 at 14:50upgradecommand ofapt-get. – enzotib Jun 29 '11 at 14:53dpkg --set-selections. I found a question that suggested the use of dpkg and the use of aptitude were not equivalent (i.e., dpkg did not honor the aptitude setting). – Mei Jun 29 '11 at 16:46echo foobar hold | dpkg --set-selectionsdoesn't seem to have any effect on installed packages. – Mei Jun 30 '11 at 13:34echo "foobar hold" | sudo dpkg --set-selections(I hope you usedsudo), you will not see any immadiate effect. But when forfoobarpackage there will be an upgrade available in the repos, norapt-get, noraptitude, norupdate-managerwill upgrade the package. Only synaptic will upgrade if explicitily instructed. – enzotib Jun 30 '11 at 15:15