Software install thru Synaptic from harddrive

Ewan Mac Mahon ewan at macmahon.me.uk
Fri Mar 24 23:08:29 UTC 2006


On Fri, Mar 24, 2006 at 05:38:05PM +0530, Mayank Garg wrote:
> Hi Friends
> I am having slow internet connection at my home and it takes lot of
> time to install any software thru apt-get install command.  Is there
> any way to install softwares by copying package files(*.deb) on hard
> drive or from removable media like Cd,USb devise etc.
Yup, there's a few steps to go through though:

1) Use your slow connection to do 'apt-get update'
2) Then get apt to generate a list of the packages it need to download,
but not download them:
$ sudo apt-get -qq --print-uris install whatever | cut -d\' -f 2 > urilist
 
   this gives you a file 'urilist' with a list of files to download.

3) Take your list to a machine with a fast internet connection and get
the packages:
$ wget -i < urilist

4) Take your newly downloaded debs home and copy them into
   /var/cache/apt/archives/

5) Rerun the same apt-get command, but without any special parameters:
$ sudo apt-get install whatever

  apt-get should tell you the quantity of packages that it will install,
  and how much it will download. The download amount should be zero since
  the packages are already downloaded.

> I am using Ubuntu Linux for just two months and slowly reducing my
> dependence on windows
>
If you've only been at it for two months I'd say you're doing pretty
well. Hope this helps you on the way :-)


Ewan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060324/d00d33ee/attachment.sig>


More information about the ubuntu-users mailing list