[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to install package using apt-get in folder other than /usr



On Mon, 29 Sep 2008 05:45:20 -0700 (PDT)
Kruti <kruti.shah26@gmail.com> wrote:

> 
> Hi..
> Can someone help me regarding how to install a package in any user defined
> folder other than /usr using apt-get?

Not using apt, using dpkg-deb -x.

       -x, --extract archive directory
              Extracts  the  filesystem  tree  from a package archive
into the specified directory.

apt-cross can help you get the actual .deb (whether the architecture
matches or not) or you can just go to the packages.debian.org website
and download the .deb directly from the mirrors.

Or use a chroot and install the package normally inside it:

$ sudo pbuilder create
$ sudo pbuilder login
# apt-get install foo
# exit

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpuq7ivDsmBj.pgp
Description: PGP signature


Reply to: