Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

is there a way in Ubuntu to preclude the updater (apt-get) from removing certain obsolete libraries?. For instance to keep libstdc++5.so even when it upgrades to libstdc++6. It happened to me recently and another program started complaining it couldn't find the old lib. (Symlinc is an obvous option, but I'd like to now if there's anything "safer".

share|improve this question

2 Answers 2

up vote 1 down vote accepted
echo 'libstdc++5 hold'|dpkg --set-selections

which will prevent that package from being removed/upgraded

share|improve this answer

libstdc++5 and libstdc++6 are separate packages that don't conflict with one another. You can pin packages to a particular version, but since they're different packages that shouldn't matter in this case.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.