John Forkosh
2019-08-31 09:26:07 UTC
First, please see
https://unix.stackexchange.com/questions/538188/
for background (subject: rsync-like-delete-functionality-with-wget).
Briefly, on 20-March-2019 I mirrored -current using
wget -r -np -R "index.html*"
https://mirror.slackbuilds.org/slackware/slackware64-current/
and recently, on 29-Aug, I updated/refreshed my mirror by
adding the -N option to the otherwise-identical wget command.
So that worked, except that my updated mirror now contains both
older and newer versions of many packages, e.g.,
SDL2_mixer-2.0.4-x86_64-1.txz
SDL2_mixer-2.0.4-x86_64-2.txz
libcddb-1.3.2-x86_64-5.txz
libcddb-1.3.2-x86_64-6.txz
and lots, lots more.
So how to --delete the old ones??? That's the overall problem
I'm trying to solve.
The stackexchange post contains a tentative solution by @roaima,
which I'm in the middle of testing. But it wasn't quite working
right. So I went back to my original, un-updated 20-March mirror,
and tried the procedure on it, figuring the FILELIST.TXT there
should exactly match the actual files comprising the mirror.
Guess what (you already guessed, didn't you?:). As far as I can
tell, there are 345 files in the 20-March FILELIST.TXT that aren't
in the 20-March mirror. The very first few are
./source/a/eudev/config/modprobe.d/8139cp.conf
./source/a/eudev/config/modprobe.d/README
./source/a/eudev/config/modprobe.d/bcm43xx.conf
./source/a/eudev/config/modprobe.d/edac.conf
./source/a/eudev/config/modprobe.d/eepro100.conf
./source/a/eudev/config/modprobe.d/eth1394.conf
./source/a/eudev/config/modprobe.d/evbug.conf
Indeed, my mirror's ./source/a/eudev/config/ directory contains
several subdirectories, all of which are entirely empty.
But FILELIST.TXT contains files in each and every one of those
subdirectories. Moreover, conversely, my mirror contains (again,
that's "as far as I can tell" so far) 64 files not in FILELIST.TXT.
So, @roaima's suggestion is kind of moot without an accurate
FILELIST.TXT to begin with. Is there any way to get one,
or am I wrong about it being wrong, or what?
And, even better, as per the original stackexchange question,
is there a more straightforward way of updating my slackbuilds.org
mirror, and --delete'ing any old files/package-versions from
my mirror that no longer exist in -current? Thanks,
https://unix.stackexchange.com/questions/538188/
for background (subject: rsync-like-delete-functionality-with-wget).
Briefly, on 20-March-2019 I mirrored -current using
wget -r -np -R "index.html*"
https://mirror.slackbuilds.org/slackware/slackware64-current/
and recently, on 29-Aug, I updated/refreshed my mirror by
adding the -N option to the otherwise-identical wget command.
So that worked, except that my updated mirror now contains both
older and newer versions of many packages, e.g.,
SDL2_mixer-2.0.4-x86_64-1.txz
SDL2_mixer-2.0.4-x86_64-2.txz
libcddb-1.3.2-x86_64-5.txz
libcddb-1.3.2-x86_64-6.txz
and lots, lots more.
So how to --delete the old ones??? That's the overall problem
I'm trying to solve.
The stackexchange post contains a tentative solution by @roaima,
which I'm in the middle of testing. But it wasn't quite working
right. So I went back to my original, un-updated 20-March mirror,
and tried the procedure on it, figuring the FILELIST.TXT there
should exactly match the actual files comprising the mirror.
Guess what (you already guessed, didn't you?:). As far as I can
tell, there are 345 files in the 20-March FILELIST.TXT that aren't
in the 20-March mirror. The very first few are
./source/a/eudev/config/modprobe.d/8139cp.conf
./source/a/eudev/config/modprobe.d/README
./source/a/eudev/config/modprobe.d/bcm43xx.conf
./source/a/eudev/config/modprobe.d/edac.conf
./source/a/eudev/config/modprobe.d/eepro100.conf
./source/a/eudev/config/modprobe.d/eth1394.conf
./source/a/eudev/config/modprobe.d/evbug.conf
Indeed, my mirror's ./source/a/eudev/config/ directory contains
several subdirectories, all of which are entirely empty.
But FILELIST.TXT contains files in each and every one of those
subdirectories. Moreover, conversely, my mirror contains (again,
that's "as far as I can tell" so far) 64 files not in FILELIST.TXT.
So, @roaima's suggestion is kind of moot without an accurate
FILELIST.TXT to begin with. Is there any way to get one,
or am I wrong about it being wrong, or what?
And, even better, as per the original stackexchange question,
is there a more straightforward way of updating my slackbuilds.org
mirror, and --delete'ing any old files/package-versions from
my mirror that no longer exist in -current? Thanks,
--
John Forkosh ( mailto: ***@f.com where j=john and f=forkosh )
John Forkosh ( mailto: ***@f.com where j=john and f=forkosh )