I have a lot of packages compiled by myself in Ubuntu instance. Within each upgrade/distribution upgrade there is possibility those my compiled packages (libraries) are overwritten.

I would like to know some suggestions how to suppress to install and/or upgrade some specific packages ?

URLs, tips and tricks are welcomed. No gui software, only in terminal.

thank you very much for help,
kind regards,