You are not logged in.
hi all,
slight background: i have just moved to arch-linux approx 1 week back (from gentoo) so far i am loving it!
one difference with-respect-to gentoo is that i cannot seem to have simultaneous 'pacman' sessions going on (due to pacman-db being locked). so all the installs need to be serialized. is it possible to have it done parallely ?
please pardon me if this question has already been discussed before. in which case, can you please point me in the right direction ? thanks !
anupam
Offline
You can't install multiple things in parallel, no. Pacman will allow you to do some operations without DB-locking - mostly read-only ops - but multiple installs at the same time isn't possible.
Offline
ok. also, on a (slightly) related note: is it possible to do a parallel-fetch of the packages ? i couldn't find anything in the man page for pacman.
thanks
Offline
Well, if you run pacman -Sw it will download the packages, but not install them. I don't know if it locks the DB while doing this though - you could check.
Offline
Well, if you run pacman -Sw it will download the packages, but not install them. I don't know if it locks the DB while doing this though - you could check.
The db is currently always locked as soon as a transaction is started.
But if an exception was made for that particular -Sw case, what would downloading the same package twice do?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I have been utilizing a cachedir on a flash drive for downloading via pacman.
This is accomplished with :
pacman --cachedir /media/disk/pkg -Sw (package name)
Then to install from cachedir;
pacman -Udf (package name)
Perhaps using a second cachedir will permit a doubled pacman download? Dumb idea?
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
really, i don't think sugesting options d and f is the best idea
Offline
Use it for local cachedir with no prob.....
Cachedir can be organized with all depends included with mainpackage folder.
Perhaps my entry in earlier post was incomplete....
pacman -Udf (package .pkg.tar.gz)
Further,
pacman --cachedir /media/disk/pkg -Syw (package names)
This will download all depends.
Last edited by lilsirecho (2008-01-11 19:25:13)
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline