Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

Is there anyway or any popular tool that can allow me to create an isolated package environment for apt-get similar to what virtualenv does for pip and python packages?

share|improve this question
up vote 2 down vote accepted

I think what you're looking after is the combination of schroot and debootstrap. Schroot is a utility that essentially lets you run a Linux distribution inside another. Debootstrap is a utility to install a (Debian-based) distribution inside another. See How do I run 32-bit programs on a 64-bit Ubuntu? (which is easily generalized to running a Debian or Ubuntu-based distribution inside another).

share|improve this answer

See pbuilder and cowbuilder for example.

See also Package builders and Isolated build environments.

The last link has a succinct overview of pbuilder and sbuild.

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.