Thursday, August 21, 2008

Pegging packages in debian and ubuntu

I have a .deb package I built from sources, but I found that after installing, when I ran "apt-get upgrade" or "apt-get dist-upgrade" it wanted to reinstall the stock package. It took some searching, but I found the answer here:

http://www.debian-administration.org/articles/332

To prevent a package from being upgraded,

$ sudo echo packagename hold | dpkg --set-selections

No comments: