You are not logged in.

#1 2009-08-12 00:28:14

Archvenian
Member
Registered: 2009-08-12
Posts: 6

Download all Archlinux official package

Hallo all!
i used Arch for 6 monts, and its rock!

is hard to have internet connection in my country
i just wondering if i can download all Archlinux official package,how?
so me and other people can taste a beauty of Archlinux
without need internet connection

thanks for everything

Offline

#2 2009-08-12 00:36:11

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Download all Archlinux official package

You do realize that this is a rolling release, right? Why not try something like debian or ubuntu, which would mean that updates would occur far less frequently.

Offline

#3 2009-08-12 00:40:46

Archvenian
Member
Registered: 2009-08-12
Posts: 6

Re: Download all Archlinux official package

yeah i relize it..it's alright if i used an outdated package..
and i plan to download the package every month
although i know its not good..

Offline

#4 2009-08-12 00:47:52

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Download all Archlinux official package

You can go to your country's mirror from /etc/pacman.d/mirrorlist in a web browser like firefox and download all the packages with a download manager, such as DownThemAll for Firefox, i suppose.

Ie, if you have this in mirrorlist as the first uncommented mirror:

http://archlinux.unixheads.org/$repo/os/i686

Obviously, $repo is filled out by pacman, and you would change i686 to x86_64 if you're on 64 bit arch.

So you'd just replace $repo with core, extra, and/or community, whatever you need from your local mirror's URL, and download that stuff with DownThemAll in Firefox or an equivalent download manager.

Last edited by FrozenFox (2009-08-12 00:49:20)

Offline

#5 2009-08-12 00:52:28

Archvenian
Member
Registered: 2009-08-12
Posts: 6

Re: Download all Archlinux official package

i try download with DownThemAll, but speed is too slow i don't know why??
is there a way to download with pacman?

Offline

#6 2009-08-12 01:15:19

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Download all Archlinux official package

wget -r -l1 --no-parent -A.pkg.tar.gz http://your.local.mirror/core/os/i686
wget -r -l1 --no-parent -A.pkg.tar.gz http://your.local.mirror/extra/os/i686
wget -r -l1 --no-parent -A.pkg.tar.gz http://your.local.mirror/community/os/i686

Yes, it will take a long time.

Core ~ 180mb
Extra ~ 5.2gb
Community ~ 12gb

Even better, for you and your mirror provider, would be to use rsync if they provide it, that way you don't download things that haven't been changed:

rsync -a --links --delete rsync://mirror.your.country.com/archlinux/core /srv/arch-repo
rsync -a --links --delete rsync://mirror.your.country.com/archlinux/extra /srv/arch-repo
rsync -a --links --delete rsync://mirror.your.country.com/archlinux/community /srv/arch-repo

I sync 'core' and 'extra' to my home server each night. The initial sync took ages, but now the nightly updates only take 1 to 2 hours (over a 1500 ADSL connection)

Offline

#7 2009-08-12 01:45:12

Archvenian
Member
Registered: 2009-08-12
Posts: 6

Re: Download all Archlinux official package

yeah i think it will be better if i have my own local mirror..
i do this because,open source community in my district
not have enough money to build server
plus, no internet connection..coz its very expensive

thanks for everything all..

Offline

#8 2009-08-12 14:28:21

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Download all Archlinux official package

I use nightly downloads of core/extra/community using lftp and the mirror command (can't use rsync because of employer restrictions). After the initial download - it's a breeze and it has the advantage of rsync in that only changes are downloaded. Being a rolling release though - the less often you download the more updates there will be ...

[edit]
here's the script I use for the nightly downloads ...

#!/bin/sh

# function defs
say()   { echo -e "$*"; }
tod()   { date '+%H:%M:%S'; }
doit() { # args: 1) server, 2) source, 3) target, 4) filemask
        test -d $3 || ( mkdir -p $3; chmod a+rwx $3; )
        ( say "open $1"
          say "mirror -L -v -r -e -i \"$4\" $2 $3"
          say "quit"
        ) >$chatf
        ( lftp -f $chatf || {
                say "-- 'lftp' error!!"; cat $chatf
                rm $chatf; return 1
        } ) | tr -d [\'\`] | sed \
                -e 's/Transferring file/++/' -e 's/Removing old file/--/'
        rm $chatf
}

# definitions
chatf=/tmp/chatf.$$
home=/usb/linux
base=archlinux
test -d $home/$base || {
        say "-- $home/$base not found!!"
        exit 1
}
server=archlinux.unixheads.org
versions="core extra community"
arch="i686 x86_64"
files=".tar.gz\$"

# do the needfull
say "\n## date: `date '+%a (%V/%j) %Y-%m-%d %H:%M:%S'`"
for v in $versions; do
        for a in $arch; do
                path="$base/$v/os/$a"
                say "#+ /$path @ `tod`"
                doit $server /$path $home/$path $files
                say "#- done @ `tod`"
        done
done
exit 0

Obviously, you can put this in crontab and have it all automated - redirect stdout to a logfile and you can see what's been updated ;-)

Last edited by perbh (2009-08-12 15:18:51)

Offline

#9 2009-08-12 15:20:08

hrobeers
Member
From: Belgium
Registered: 2008-11-05
Posts: 79

Re: Download all Archlinux official package

Where do you live?
Are the computers in your area on a local network?

Offline

#10 2009-08-12 19:36:24

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Download all Archlinux official package

powerpill -Swd --cachedir /path/to/dir $(pacman -Sql core extra)

Just add "community" after "extra" if you need that too, but remember that it's big.

You can grab powerpill from [community] but I had to update it to handle erlang's funky version number, so it might not hit the mirrors for a few hours. You can still grab the latest version from my site (linked in my sig).


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB