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

Re: Option to call apt install package to local directory

On 05/10/2008 06:00 AM, hce wrote:

What is the command to make "apt-get install package" to install the
package to my local directory rather than /usr?

Thank you.

Kind Regards,


There is no single command to do this. You would use several simple commands instead.

First use this to get the URL:
apt-get --print-uris package

Then select the URL and use wget to download it:
wget "URL"

Then use dpkg to extract the package contents:
dpkg -X packagefile


Reply to: