Take the 2-minute tour ×
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.

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

2 Answers 2

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.