Thanks again for your help folks, I think I have the answer in case anyone's interested:
Sorry it's taken a while to get back to you guys, it's a scorching hot summer in England and beer has taken priority over my PC for a few weeks!
I tried putting the name of the package to ignore in the "ignore" section, but any package that depends on it then throws up an error about missing packages.
The "Hold" section in apt.conf contains the answer however. For example:
- Code: Select all
RPM {
Hold { "postfix"; };
Options { };
Install-Options "";
Erase-Options "";
// Pre-Install-Pkgs { "/usr/bin/apt-sigchecker"; };
Source { Build-Command "rpmbuild --rebuild"; };
Allow-Duplicated {
"^kernel$";
"^kernel-";
"^gpg-pubkey$";
};
};
This holds back postfix from being upgraded during a dist-upgrade (but obviously any package which depends on it will be held back too).
And this little beauty:
- Code: Select all
rm -f /var/cache/apt/*.bin
apt-get update
....actually removes the apt cache files so that the above Hold or Ignore options work. If you fail to clear the cache then your changes to apt.conf don't appear to take effect.
Problem sorted!!! Now I'm off to sit under an air-conditioner and get a cold beer......
Cheers
CF