Hello, On Mon, 29 Sep 2008, Kruti wrote: > Can someone help me regarding how to install a package in any user defined > folder other than /usr using apt-get?
If you just want to examine the contents of the .deb package then you can download the package (e.g. "aptitude download pkgname") and unpack it using "dpkg -x pkgname target_directory" or using "ar". Installing a package so that it can be used is more complex since it is likely that the pre-compilation configuration of a binary package set the "prefix" for the installation as "/usr". Hence the package may not work as you expect. Here are some possible solutions: 1. Use an schroot (e.g. this is described in my article <http://www.linuxgazette.net/150/kapil.html>) This will still be in "/usr" but under a different directory heirarchy. 2. Use a fakechroot (e.g. this is described in my blog post <http://www.imsc.res.in/~kapil/blog/floss/fakeroot-2008-03-04-10-01> The second solution does not require you to re-install all the dependencies of the package that have already been installed. However, it may not work for all packages. Regards, Kapil. --
signature.asc
Description: Digital signature