difficulties configuring a local repository
Hello All,
I have difficulties configuring a local repository.
I installed Debian net-inst on a PC that doesn't have internet access.
I then downloaded the full installation DVD's (3 DVD's)
using Jigdow.
I am trying to set the 1st DVD as a local repository.
I ran the dpkg-scanpackages command on the cd and created
the .gz file which I called packages-dvd1.gz
The exact command I ran is:
dpkg-scanpackages /media/cdrom0 /dev/null | gzip -9c > /usr/local/bin/packages/packages-dvd1.gz
I put the .gz file in: /usr/local/bin/packages .
I also added the line: deb file:/usr/local/bin/packages ./
to the sources.list file and ran the command: apt-get update.
The apt-get update command gives a message that it can't
find the file /usr/local/bin/packages/packages.gz
and it doesn't say anything about packages-dvd1.gz .
But I didn't name my packages file: "packages.gz",
I named it: "packages-dvd1.gz" .
My questions are:
1.
Must the packages.gz file be where the actual packages are
- on the DVD ?
If yes then how do I put it on the DVD, since the DVD is a downloaded
.iso image ?
and in which directory on the DVD ?
2.
Must the packages.gz file be named with this name (packages.gz)
and not any other name ?
Or is it possible to name it: packages-dvd1.gz ? (like I did)
3.
What is the meaning of the " ./ "
at the end of the line that I added to the sources.list:
deb file:/usr/local/bin/packages ./
Any help appreciated.
Babypeng
|