Server Fault is a question and answer site for system and network administrators. 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

I have a .deb which politely installs itself in /opt. For my purposes I would prefer it acted like a first-class citizen and installed itself in the regular filesystem locations.

Is there a way to do this?

This is Ubuntu 10.04.4


I have tried --root=/, it doesn't change the installation location.

share|improve this question
up vote 4 down vote accepted

This is not possible without rebuilding the Debian package--which is certainly an option if you want to create your own directory hierarchy. The package was--presumably--built and tested based on the directory structure in /opt, and without knowing details about the package, it may not even be ABLE to be run without being in that directory.

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.