Advice on configuring a (partial) local mirror
Andre Costa <[email protected]> Wed, 29 Sep 2004 10:23:20 -0300
| Newsgroups | gmane.linux.conectiva.apt-rpm |
|---|---|
| Organization | TecGraf |
| Message-ID | <[email protected]> |
Hi all,
I am trying to setup a "partial" local mirror for upgrades using apt-get
here. Let me explain it a little further:
we have 10-20 boxes running Linux (FC1) here on our lab; I would like to
configure just one of them to upgrade directly from the "official"
repositories (i.e. the ones on the net), and I would like to point all
the others to grab updates from this same machine only.
I have successfully configured this "master" node (with genbasedir), and
I linked RPMS.updates to /var/cache/apt/archives (... I know, this
really doesn't seem the right thing to do). Apache is also configured
right, and initial testing went reasonably fine -- aside from files with
URL-encoded chars in it (like nmap_2%3a3.70-2.1.fc1.fr_i386.rpm):
# apt-cache policy nmap
nmap:
Installed: 2:3.48-1
Candidate: 2:3.70-2.1.fc1.fr
Version Table:
2:3.70-2.1.fc1.fr 0
500 http://camboinhas redhat/FC1/i386/updates pkglist
*** 2:3.48-1 0
100 RPM Database
# apt-get install nmap
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
nmap
1 upgraded, 0 newly installed, 0 removed and 35 not upgraded.
Need to get 593kB of archives.
After unpacking 633kB of additional disk space will be used.
Err http://camboinhas redhat/FC1/i386/updates nmap 2:3.70-2.1.fc1.fr
404 Not Found
Failed to fetch
http://camboinhas/apt/redhat/FC1/i386/RPMS.updates/nmap_2%3a3.70-2.1.fc1.fr_i386.rpm
404 Not Found E: Unable to fetch some archives, maybe run apt-get
update or try with --fix-missing?
(nmap_2%3a3.70-2.1.fc1.fr_i386.rpm _does_ exist on the "master" server)
So, what's your advice on this situation? Am I overlooking something
obvious? Should I write a script to make symlinks with correct names to
the files instead of simply linking to the whole
/var/cache/apt/archives? Should I do something completely different?
Sorry for the "question-flood" =}
(before anyone suggests, setting up a full mirror here is out of the
question...)
TIA
Andre
--
Andre Oliveira da Costa
([email protected])