You are not logged in.
Folks, i am posting a rather convenient way for upgrading packages, when the internet speed isn't too high.
I recently moved to a new location, and there isn't any broadband provider here. So, i am having to make do with a excruciatingly slow gprs connection.
Initially i tried to do the usual pacman -Syu method for updating the system. But, this wasn't very convenient as the connection timed out often (gprs trouble), and pacman didn't behave properly, when pressing ctrl-c to abort the process.
Then I found on the forums, a very good pacman switch --print or -p, which prints the actual location of the packages.
Now, to update the system, i do
pacman -Syy
pacman -Sup > arch.updateThis saves the location of the packages to be updated, in a text file named arch.update.
Now, i simply download the packages using
wget -i arch.updateThis way, if i have to interrupt a download (due to connection problems, mainly), then a simple ctrl-c does the trick. And, i can continue downloading that package later with wget's --continue option.
After the packages are downloaded, i move them to /var/cache/pacman/pkg. And a simple
pacman -Suupdates the system ![]()
Since the speed is very slow, 2-3 KBps, it takes many hours to download a few Megabytes of updates, but this does the trick.
I am just praying, that i get a faster connection soon ![]()
Offline
Maybe this delta mirror would be of interest to you.
Offline
+1 for delta repo.
'pacman -Sw':
-w, --downloadonly download packages but do not install/upgrade anything
Maybe you can download the packages at a different location, put them on a USB stick and install them at home?
Last edited by karol (2010-11-23 13:40:44)
Offline
+1 for delta repo.
'pacman -Sw':
-w, --downloadonly download packages but do not install/upgrade anythingMaybe you can download the packages at a different location, put them on a USB stick and install them at home?
Not sure how that's really convenient... he would need to bring his local DB with him to figure out what to download at the other location.
Perhaps a cron job to run -Syuw overnight and then you can manually install the next day? Arch isn't really a friendly distro if your internet connection is slow.
Offline
@ falconindy
I mean he can do
wget -i arch.updatee.g. at work. He only needs to bring the file with the urls.
Offline
Hmm.., i had heard of the delta option for pacman, but didn't know that a repo existed. I'll take a look at that. Thanks, stqn.
@ karol,
unfortunately, i don't have access to internet anywhere else, so i am out of luck, at least for now ![]()
PS: The good thing is that i have a limited number of packages. And the heavy ones, i've put to IgnorePkg, so i don't have to download hundreds of MBs of updates.
Offline
PS: The good thing is that i have a limited number of packages. And the heavy ones, i've put to IgnorePkg, so i don't have to download hundreds of MBs of updates.
One day your system is guaranteed to break then. If you update a small shared library that requires the "heavy ones" to be rebuilt but you have blocked them, then your heavy apps will crash until you update them. Just the nature of a rolling release.
Offline
One day your system is guaranteed to break then. If you update a small shared library that requires the "heavy ones" to be rebuilt but you have blocked them, then your heavy apps will crash until you update them. Just the nature of a rolling release.
Yup, i know that. But the thing is that, the only packages i have in IgnorePkg are go-openoffice, which i rarely use. and jre, jdk. These are the heaviest packages, in my system.
Offline