Thanks for the tips, Jacob. Debian is so nice...
Apt-move now works perfectly after I punched a hole in my firewall for
port 873 (rsync). Apt-get is perfectly happy doing http or ftp, but
apparently apt-move requires rsync to get the Packages.gz files.
At 08:51 PM 4/23/2001 -0700, Jacob Meuser <[EMAIL PROTECTED]> wrote:
>On Mon, Apr 23, 2001 at 01:08:59PM -0700, Ralph Zeller wrote:
>>
>> So far, I've tried apt-move and dpkg-scanpackages but those commands have
>> require parameters I don't understand. I've read the manuals but I'm
>> still not completely clear on how to do this.
>>
>> Has anyone tried creating a local, partial mirror of the debian archives,
>> who could give me ideas?
>>
>> Ralph
>>
>apt-move is EXACTLY what you want. It moves the files from
>/var/cache/apt/archives to a "debian package directory tree".
>The tree can be used to set up a http or ftp package server.
>It can also be used to create a Debian cd.
>I'll assume that since you were thinking of setting up a local
>mirror, you either have httpd or ftpd running. The easiest
>thing to do would be to use /path/to/server/root/debian as
>the base directory for your package tree. Then use:
>
>deb http://my.local.httpd/debian stable main contrib non-free
>or
>deb ftp://my.local.ftpd/debian stable main contrib non-free
>
>in the /etc/apt/sources.list file of boxen that will use the
>mirror. To use the mirror during install, choose "Manually edit
>apt sources". This lets you edit sources.list, so you can add
>your mirror as above.
>
>main apt-move commands:
>Usage: apt-move <command>
>get - Get the appropriate Packages.gz files. Packages.gz,
> in short, is a list of packages for each package catagory.
>move - Use the info in the Packages.gz files to move the packages
> from cache to package tree.
>packages - Create local versions of Packages.gz.
>delete - Remove obsolete packages from the tree.
>update - Alias for 'apt-move get && apt-move move && apt-move \
> packages && apt-move delete'
>
>You will need to edit /etc/apt-move.conf, but there are many
>comments in the file that do a good job of explaining what the
>parameters do.
>
><[EMAIL PROTECTED]>
>
>PS The apt-move in "unstable" is far superior to the apt-move in
>"potato". You may want to make a backup copy of your cache.
>Another thing you can do is add a deb-src line to sources.list
>that tracks "unstable":
>
>apt-src http://http.us.debian.org/debian unstable main contrib non-free
>
>do an apt-get update then cd to a directory you want to build
>custom packages in and do 'apt-get source apt-move'. Then
>'cd apt-move-* && debian/rules binary'. This way you can build
>packages from the "unstable" sources, and have them linked to your
>"potato" libraries. You will need to 'apt-get install debhelper'
>to build most debian packages. You may also need deb-make.
>Probably also a good idea to read the debian packaging manual,
>/usr/share/doc/packaging-manual, I believe, if you have installed
>the packaging-manual .deb.
>
><[EMAIL PROTECTED]>
>