I have installed a custom compiled version of gnumeric using apt-source (I needed more rows than the usual 65000) and I am having problems preventing it from being replaced with the version in the repositories.

The problem is that the version I compiled is the same version number as the one in the repositories and apt/synaptic tries to replace it with the version from the repositories.

I have tried pinning it in synaptic.

I have tried pinning it in the apt preferences file. I tried pinning it based on the source (gutsy) but this doesn't seem to work either.

The problem is that I can't pin it on the version number as it is the same for the installed version and the available version.

One solution would be to change the version number of the compiled package but I am not sure how to do this.

I have googled and searched the forums but I can't seem to find a solution so I hope someone here can help.