You are not logged in.

#1 2008-10-06 19:05:59

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

pacman question?

im sure i know what the answer is to this already, but i figure its worth asking

basically, i have my desktop at home running 64bit arch, but its on a dialup connection

now my laptop is running 32bit, and i can easily bring it out and jump on a highspeed connection to do updates.

what i want to know is, is there an easy way for me to take the list of updates my desktop needs, and download them to my laptop so i can bring home and throw them in the pacman cache on my desktop?

i've been having to go through the repos and download them all manually, but when theres 130 updates, its a bit tedious


this is a signature

Offline

#2 2008-10-06 19:49:25

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: pacman question?

Hello,

Onyour x86_64 machine, do the following:

sudo pacman -Suyp | grep "pkg.tar.gz" > newpkgs.txt

That will give you a file containing the urls of new packages to be downloaded.  Put the file on your laptop, go to your high speed connection, then run

wget -i newpkgs.txt

That should download all the new packages, then you can transfer them to your desktop machine and install them with pacman.
Ciao

Offline

#3 2008-10-06 19:52:53

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: pacman question?

Also, what you can do is dump those packages in /var/cache/pacman/pkg on your x86_64, then just run pacman -Su - it'll do the full intelligent update, but just pull the packages from your cache instead of from the net.  smile

Offline

#4 2008-10-06 22:43:54

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,128
Website

Re: pacman question?

Inspired by this thread, I added an option to powerpill to save the metalink to a file for downloading on another computer. If you're downloading the packages on a high-speed connection, using a metalink to grab everything will speed up the download remarkably.

Here's the powerpill thread for info about it and the AUR link: http://bbs.archlinux.org/viewtopic.php?pid=396623

To get the metalink for all your pkg upgrades, do this:

powerpill -Syu --get-metalink upgrade.metalink

Transfer the metalink file to the other computer, then grab the files using something that support metalinks. I'd recommend aria2 because it's in the extra repo (pkg name is aria2, binary is aria2c), but anything that support metalinks should work. E.g.

aria2c -p update.metalink

The "-p" option is to enable passive ftp, which seems to be necessary for most of the mirrors. If you use some other metalink downloader, check if you need to enable passive ftp.

I hope this helps.

Offline

#5 2008-10-07 00:01:35

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: pacman question?

thats awesome, thanks guy, i was expecting a simple know. but i figured there had to be a way. to bad i didn't get the responses earlier, i just got back from downloading them all manually


this is a signature

Offline

Board footer

Powered by FluxBB