apt-get Repository for internal lan

"Sumit Shah" <[email protected]>
Newsgroups gmane.linux.freshrpms.user
Organization IA
Message-ID <op.syzqy8zioi7ik2@test2a242>
Hello group,
I wish to create a mirror repository of FC3 from your website for our
internal LAN.


Homework I did:
I have apt-get installed at server as well as on client machine. httpd
running on our internal server. Downloading from Server is fine.
"apt-get update"
"apt-get upgrade"  is going good.

apt-get is downloading the RPMs in "/var/cache/apt/archives/" directory.
However, client is accessing the RPMs from "/var/apt/fedora/3/en/i386/
RPMS.dag/" directory. I am just coping the RPMs from "/var/cache/apt/
archives/" to "/var/apt/fedora/3/en/i386/RPMS.dag/" through rsync.

Que: Is it good to copy from one directory to other or  should I create a
soft link of "RPMS.dag" directory to "/var/cache/apt/archives/", as
hardlink to a directory is not possible.
PLS suggest?



At client-side.
I have entered our internal server's (192.168.1.100) path in the "/etc/apt/
sources.list.d/dag.list" file. Finally, the "/etc/apt/sources.list.d/
dag.list" file look like this.

### Dag RPM Repository for Fedora Core
  rpm http://192.168.1.100 fedora/3/en/i386 dag





Directory structure of http://192.168.1.100/fedora/3/en/i386/ is like this

  Name                    Last modified      Size  Description
  Parent Directory                             -
  RPMS.dag/               20-Oct-2005 15:02    -
  base/                   21-Oct-2005 10:20    -
  lock                    19-Oct-2005 16:07    0


Index of /fedora/3/en/i386/base
  Name                    Last modified      Size  Description
  Parent Directory                             -
  release                 20-Oct-2005 15:38  297
  release.os              20-Oct-2005 09:58  121
  release.updates         20-Oct-2005 09:58  126

Index of /fedora/3/en/i386/RPMS.dag
  Name                                                     Last
modified      Size  Description
  Parent Directory
                                                               -
  HelixPlayer_1%3a1.0.6-0.fc3.1_i386.rpm                   21-Oct-2005 10:29
   3.8M
  ImageMagick-c++-devel_6.2.2.0-2.fc3_i386.rpm             21-Oct-2005 10:29
   176K
..........so on and so forth.........


At first I get an error <pkglist.dag Not Found>, while updating client
 from synaptic. I rectified this by coping the "pkglist.dag" file from your
website to our "..base/" directory.

Que:When I run update from the client side, synaptic says <whatever.is.rpm
Not Found>, instead of having the rpm file in that directory.

for instance

[root@test2a242 rpm]# apt-get  install celestia
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package celestia


PLS HELP us to make a local repository of apt-get.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.