custom ubuntu repository server on Dell Latitude D600

Derek Broughton news at pointerstop.ca
Thu May 1 16:42:49 UTC 2008


<posted & mailed>

Roberto de Sousa wrote:

> Hi Derek,
> Thanks for the reply... Could you please send the config to me? i am bit
> rush to prepare this repository server.
> 
> Derek Broughton <news at pointerstop.ca> wrote: Roberto de Sousa wrote:
> 
> 
> I use apt-move to create the repository, and apache2 to serve it up.  I
> can send you all my configs if you want.

The apt-move.conf is attached - you'll notice mine still says "DIST=feisty"
which shows how little I've ever had to play with this.  It's not
important, but the "gutsy" files I have in the repo show locally as feisty:

$ apt-cache policy apache2
apache2:
  Installed: 2.2.4-3ubuntu0.1
  Candidate: 2.2.4-3ubuntu0.1
  Version table:
 *** 2.2.4-3ubuntu0.1 0
        500 http://bella feisty/main Packages
        500 http://ca.archive.ubuntu.com gutsy-updates/main Packages
        500 http://security.ubuntu.com gutsy-security/main Packages
        100 /var/lib/dpkg/status

This puts everything under /var/www/ubuntu, so your default apache2 install
should find it.

My sources.list includes:

deb http://bella/ubuntu/ feisty main restricted contrib 

(where bella is my host).

/etc/crontab contains:

# apt package cache
10 14 * * 3 root \
apt-move -d feisty update ; /usr/local/bin/apt-move-buildPKG

(those last two lines should be on one).
Where "feisty" is the DIST noted above.  /usr/local/bin/apt-move-buildPKG
(attached) is used to fix up the Packages.gz files because apt-move is
really only setup for Debian.

In your case, if you want a _full_ mirror rather than just a mirror of files
you've already downloaded, use "mirror" instead of "update" in the crontab. 
If you just want to mirror the packages on your own system, you should use:
  apt-move -d feisty sync ; /usr/local/bin/apt-move-buildPKG
once, just to make sure you pick up any packages that aren't currently in
your /var/cache/apt/archives.
-- 
derek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-move-buildPKG
Type: application/x-shellscript
Size: 249 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080501/8ed1feb3/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: apt-move.conf
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080501/8ed1feb3/attachment.ksh>


More information about the ubuntu-users mailing list