Lock version and synaptic

Here is how to do the equivalent of synaptic “Lock version” from command line:

echo "paquet hold" | dpkg --set-selections

References: http://www.debian-administration.org/articles/67

#debian