Counting Packages


13 posts
by elatllat » Fri Oct 12, 2012 2:41 pm
URL=http://us.mirror.archlinuxarm.org/armv6h/
DIRS=$(curl $URL 2>/dev/null |grep ">Directory<" |grep -v "Parent Directory" | perl -p -e 's/.*href="([^"]+)".*/$1/g')
COUNT="0"
for ADIR in $DIRS; do
N=$(curl $URL$ADIR 2>/dev/null | grep ".pkg.tar.xz" | wc -l | perl -p -e 's/[^0-9]+//g')
COUNT=$COUNT"+$N";
done
echo $COUNT | bc
#4604
Posts: 890
Joined: Sat Dec 17, 2011 5:05 pm
by elatllat » Fri Oct 12, 2012 3:00 pm
or
wget --spider --force-html -r -l1 http://us.mirror.archlinuxarm.org/armv6h/ 2>&1 | grep 'Saving to:' | perl -p -e 's/.* .(.*).$/$1/g;s/index.html//g' | while read LINE; do wget -O - http://$LINE 2>/dev/null | grep .pkg.tar.xz; done | wc -l
#4604
Posts: 890
Joined: Sat Dec 17, 2011 5:05 pm
by sdjf » Sun Oct 14, 2012 5:21 pm
Does this mean that none of the packages I have downloaded in advance from:

http://us.mirror.archlinuxarm.org/arm/

will work on the new image? Do I have to start all over again because all packages have to be coded for hard float?

BTW, I counted 4968 packages that end in xz in the plain arm mirror as of about 9 hours ago.

Pi has not come yet.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1258
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by maribu » Sun Oct 14, 2012 7:02 pm
Yes ;-)

Actually the packages are not coded for hard float. The have to be compiled again to work with hard float. If you're wondering how the packages are rebuild you may want to look at: https://wiki.archlinux.org/index.php/ABS

Regards,
Maribu
User avatar
Posts: 143
Joined: Mon Feb 13, 2012 9:56 pm
by pepedog » Sun Oct 14, 2012 7:52 pm
Posts: 940
Joined: Fri Oct 07, 2011 9:55 am
by sdjf » Mon Oct 15, 2012 2:12 am
Thank you both, I am trying to keep from groaning, thinking about having to redo the downloads, but have written some scripts that will help me automate the process.

For those whose Pis will have Internet access, and high speed connections, it is not such a big deal, but I have neither.

But I do see about 20 files I have gotten from the old repository, that end with "any.pkg.tar.xz", those should be okay, shouldn't they? Isn't that what "any" means?

Thanks!
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1258
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by pepedog » Mon Oct 15, 2012 7:32 am
Yes, any means both, or even x86
Posts: 940
Joined: Fri Oct 07, 2011 9:55 am
by tawalker » Mon Oct 15, 2012 1:02 pm
I've encountered a couple of instances where there are packages missing from the official armv6h repos, which come up in the package search at the Arch Linux ARM site. No "showstoppers" from my perspective (and sadly I can't remember specific examples), and I imagine the "hard float" Arch will catch up in time, but I think it's as well to be aware of the minor differences in packages currently available.

For me, it's still worth running "hard float" Arch, just to gain the performance increase :)
---
Raspberry Pi Model B ("ryo-ohki") - Arch Linux/ARM (hard float)
Visit Eee 701 Planetoid (http://eee701planetoid.wordpress.com/) for continuing adventures with an Eee 701SD and Raspberry Pi...
---
Posts: 180
Joined: Tue Jan 17, 2012 9:02 am
by sdjf » Tue Oct 16, 2012 10:30 am
Thanks Pepedog, that is good news about the "any" packages.

@tawalker: About packages at the old archlinuxarm vs. the armv6h repositories, I see four I have the soft float versions of, which are not available for armv6h:

dia
epdfview
kspread
tightvnc

I may have to use the old March image I still have a copy of, when I want to run dia or tightvnc...there may be some alternate packages that will meet my needs in armv6h, but dia and tightvnc are fairly unique in certain respects.

Different people do the packages for arm and armv6h?
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1258
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by pepedog » Tue Oct 16, 2012 1:31 pm
No, it's the same guy. He's working thru difficult stuff now.
If you are sure something is missing, post here
https://github.com/archlinuxarm/PKGBUILDs/issues
Posts: 940
Joined: Fri Oct 07, 2011 9:55 am
by sdjf » Tue Oct 16, 2012 4:05 pm
That is good news, patience should pay off.

I was just able to sign up for github but am afraid to post as it says my email will be public and the help files make no sense at all. I will just wait.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1258
Joined: Fri Mar 16, 2012 5:20 am
Location: California
by pepedog » Tue Oct 16, 2012 6:56 pm
dia has glib.h problems
Kspread, part of koffice, this has been dropped from upstream arch
Epdfview, problems with latest cups
Tightvnc, looking into that
Posts: 940
Joined: Fri Oct 07, 2011 9:55 am
by sdjf » Wed Oct 17, 2012 2:27 am
Thanks so much Pepedog. I hope dia can get fixed, I wanted to try all possible pdf viewers and spreadsheets, I guess kspread and epdfviewer will not be as critical but dia for diagrams and tightvnc for webserver, are more critical for me. Yeah, there are alternatives, but dia is pretty cool and I really want to try tightvnc.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
Posts: 1258
Joined: Fri Mar 16, 2012 5:20 am
Location: California