Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To install a library I do sudo apt-get install libmysqlclient-dev and it is installed at some default location. I want to install it at some location other then default location. Is it possible to do so.

Or I can also build it from source but I am unable to find source code of this library.

Please help!!

share|improve this question
up vote 2 down vote accepted
  1. No, it is not possible to change the locations of files using apt-get. Paths are part of the package. To change them you will need to modify the package itself (which might or might not be easy, depending on the package).
  2. To download the source code for your package, all you need to do is sudo apt-get source libmysqlclient-dev.

Hope this helps

share|improve this answer

Your Answer


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.