Apt-get upgrade wants to replace my compiled packages.

I was getting some messages from my daily apt-get upgrade script telling me some of my ffmpeg debs needed to be upgraded.  Since I had recompiled ffmpeg from the source debs with different options, I re-ran apt-get source ffmpeg to get the latest source.   When nothing downloaded, I checked the latest version with apt-cache and found it matched the version I have installed.  Off to Google I went and found this thread from 9 years ago saying the bogus upgrade messages are normal and I had to increment the version number. 

I still want to be notified when new versions come out (via my daily upgrade script) so I can recompile it, so I updated the version as little as possible by adding an “a” to the end of it.  

In the source directory, I edited debian/changelog .  The first line said

 

ffmpeg (3:0.cvs20070307-5ubuntu7.3) hardy-security; urgency=low

So I changed it to 
ffmpeg (3:0.cvs20070307-5ubuntu7.3a) hardy-security; urgency=low
Then I ran fakeroot debian/rules binary and installed the resulting packages.  Now apt-get upgrade tells me I have nothing to upgrade.  As long as the ffmpeg package maintainer doesn’t use 3:0.cvs20070307-5ubuntu7.3a as the new version number, I’ll still know when a new release comes out. 
This entry was posted in sysadmin and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *