LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2015, 03:09 AM   #1
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Mirroring slackware-current


Hi,

I'd like to make an ISO from slackware-current on a fairly regular basis. I don't have access to rsync, so need to use HTTP/FTP. I am looking for the script that tells me I have a good, consistent set of files, e.g. scanning PACKAGES.TXT, MANIFEST.bz2, CHECKSUMS.md5 and checking that everything matches, in case I happen to be downloading when someone is updating the source, and to verify the downloads.

Does such a script exist?

many thanks,
Biff.
 
Old 06-16-2015, 04:05 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
to sync and create my isos I personally use mirror-slackware-current.sh from Alien Bob but by default it uses rsync.

you can also use it with the -i option (that creates the iso without downloading anything) if you have an up-to-date local mirror.

read it to see configurable variables and switches.

to check the hashes maybe the best option for you is to use directly the file CHECKSUMS.md5 in the root directory of your mirror: read that too for instructions.

Last edited by ponce; 06-16-2015 at 04:12 AM.
 
Old 06-16-2015, 04:32 AM   #3
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
OK, so let me get this right - I still run the risk that CHECKSUMS.md5 is still being updating when I read it, and/or it doesn't include files that have been referenced in PACKAGES.TXT, which I presume drives the install, and is the important one. Is that right?

I guess most people just assume the updates don't occur very often and that they won't hit one and hope for the best!

regards,
Biff.
 
Old 06-16-2015, 05:42 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Use CHECKSUMS.md5.asc to check that CHECKSUMS.md5 is OK.
 
Old 06-16-2015, 06:54 AM   #5
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
I saw that, but how do I know that PACKAGES.TXT is consistent with it? And does it matter?
 
Old 06-16-2015, 07:18 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by bifferos View Post
OK, so let me get this right - I still run the risk that CHECKSUMS.md5 is still being updating when I read it, and/or it doesn't include files that have been referenced in PACKAGES.TXT, which I presume drives the install, and is the important one. Is that right?

I guess most people just assume the updates don't occur very often and that they won't hit one and hope for the best!

regards,
Biff.
You could check the timestamp of the most recent entry in ChangeLog.txt? Usually the mirrors synchronize within a day of an update on the master server.

Also, the mirror-slackware-current script does two rsync-s in a row, if the first rsync runs while the remote server is still being updated, the second rsync should show activity (it will sync the files that got added or changed after the first rsync started).
If you really want to know what happens you add a "-v" parameter and watch what the script does.

Lastly, you can check if you have mirrored everything correctly by following the instructions from the header of the CHECKSUMS.md5 file:

Code:
These are the MD5 message digests for the files in this directory.
If you want to test your files, use 'md5sum' and compare the values to
the ones listed here.

To test all these files, use this command:

tail +13 CHECKSUMS.md5 | md5sum -c --quiet - | less
 
Old 06-16-2015, 08:09 PM   #7
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by bifferos View Post
I don't have access to rsync
If all you have is Windows, you can install cygwin and that will install rsync.

https://cygwin.com/

https://cygwin.com/cgi-bin2/package-...Frsync-3.1.1-1
 
Old 06-17-2015, 02:36 AM   #8
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by ttk View Post
you can install cygwin and that will install rsync.
rsync is blocked by the firewall, I do have the binaries.

I came to the conclusion I should roll my own mirror script that does exactly what I want.

Thanks for all the replies.

Biff.
 
Old 06-22-2015, 02:38 PM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Depending on how often you need/want to make it, you could just use Eric's pre-built ISO if it falls within the dates/updates needed.

http://taper.alienbase.nl/mirrors/slackware/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware ARM (current) epic mistake: the current Android kernels are kicked out! Darth Vader Slackware 16 08-25-2013 04:36 PM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
Mirroring Slackware 12.1 servers Zafoid Linux - Newbie 3 12-10-2008 05:48 AM
Mirroring drives without RAID on Slackware 10.2 Jeiku Slackware 8 01-23-2008 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration