Tech Support > Operating Systems > Linux / Variants > apt-get for Red Hat and ignoring packages
apt-get for Red Hat and ignoring packages
Posted by Kerry Cox on August 1st, 2003


I've been using apt-get for some time, but would like to have it ignore
certain packages that we compile from source. I don't want the RPMs
conflicting with our own binaries.
I've testing different configs in /etc/apt/apt.conf in the Ignore section
and I can't get it to ignore php, apache and mysql packages. The man pages
are vague on the subject.
Here is an excerpt of what I currently have:

RPM {
Ignore { "^php$"; "^php-" };
Hold { };
Allow-Duplicated { "^kernel$"; "^kernel-"; "^alsa-kernel";
"^gpg-pubkey$" };
Options { };
Install-Options "";
Erase-Options "";
Source {
Build-Command "rpmbuild --rebuild";
};

I'm copying the format of the Allow-Duplicated option and it does not seem
to work. It still wants to install the PHP packages when I do a "apt-get
dist-upgrade".
Any suggestions?
KJ


Similar Posts