Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to use two different versions of some program in Linux. I can switch between two program versions via alternatives --config "program-name". So my question is how I cat do this command for current bash session locally without changing global system settings?

I think it kinda chroot command.

share|improve this question

1 Answer

This might not be sufficient, but you could add

alternatives --auto program-name

to your .bash_logout file. Then use alternatives --config program-name. This would make it a global change, but return it to its previous state when you log out.

share|improve this answer
Thanks. A very useful hack. – proofit404 Feb 25 at 17:24

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.