[Ilugc] Installed Ubuntu Successfully

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Wed Jul 12 12:58:29 2006

On 7/12/06, Chakkaradeep C C <chaks.yoper@xxxxxxxxx> wrote:

Is it not possible to put the local location in the sources.list and do apt
update and then install those packages?

apt does not look at the packages (debs) themselves.  It looks for the
Packages(.gz) index file.  As Kumar suggested, you need to use
dpkg-scanpackages to create it.  There are subtle issues with versioning
etc that you can run into if you are not careful.  dpkg-scanpackages is
really for advanced users (and people who have an affection towards man
pages!)

To the OP:  copying your *.deb files into your friends
/var/cache/apt/archives and then running apt/synaptic should work.  If the
debs are found in the said directory, apt will not attempt to download the
files again.  However, you still need to run the equivalent of "apt-get update"
first.  You don't need to run dpkg-scanpackages if you do it this way.

If you don't want to copy the debs to /var/cache/apt/archives, you can
set the Dir::Cache::Archives config item appropriately.  I think this can
specified on the cmd line for one-off runs, but I've never done it this
way.  I'm interested in knowing if this works for you.

On Debian, /usr/share/doc-base/apt-offline-usage-guide would be a good
read.

- Raja

Other related posts: