You are not logged in.
Pages: 1
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
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
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
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
i try download with DownThemAll, but speed is too slow i don't know why??
is there a way to download with pacman?
Offline
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)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
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
Where do you live?
Are the computers in your area on a local network?
Offline
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Pages: 1