How to create a list of md5 for every package

jumbophut jumbophut at gmail.com
Fri May 7 02:15:48 PDT 2010


On Fri, May 7, 2010 at 6:08 PM, xinglp wrote:
> like this
> a6de1cc6434cd64038b0a0ae4e252b33  autoconf-2.65.tar.bz2
> c2972c4d9b3e29c03d5f2af86249876f  automake-1.11.1.tar.bz2
> 9800d8724815fd84994d9be65ab5e7b8  bash-4.1.tar.gz
> just like it `make` create wget-list

I may have misunderstood your question, but the following worked for me:

wget "http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html"
wget "http://www.linuxfromscratch.org/lfs/view/stable/chapter03/patches.html"
wget http://www.linuxfromscratch.org/lfs/view/stable/wget-list
# The following 2 lines extract the md5sums from the web pages
# It relies on both the wget-list and html listings being in alphabetical order
# and on a very specific format of the html (probably unwise but works for now).
sed -n -e 's/^.*"literal">\([a-z0-9A-Z]\+\)<\/code>/\1/p' packages.html > md5s
sed -n -e 's/^.*"literal">\([a-z0-9A-Z]\+\)<\/code>/\1/p' patches.html >> md5s
paste md5s wget-list > outfile

'outfile' contains what I think you are asking for (or perhaps md5sums does?).

-- 
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')



More information about the lfs-support mailing list